canvas-lms/script
Cody Cutrer 2deb504378 useful find_each
* automatically does with_exclusive_scope
 * if the scope has an order or group by, use an alternate
   implementation so it's not broken
 * alternate methods are cursors (postresql only) or temporary
   tables. if a transaction is already open, or we're on a slave,
   prefer a cursor (even over the normal method, since the query
   might be slow even without an order or group by)

test plan:
 * migrations should still work (especially data fixups)
 * lots of account reports use find_each; make sure they still run

Change-Id: If876b7b3401e6cda1d41f1c94b93af4810b78cf4
Reviewed-on: https://gerrit.instructure.com/22364
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2013-07-18 22:26:46 +00:00
..
performance add File.expand_path for ruby version compatibility 2013-03-18 12:25:14 -06:00
process add File.expand_path for ruby version compatibility 2013-03-18 12:25:14 -06:00
about Initial commit. 2011-01-31 18:57:29 -07:00
autospec remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
canvas_init oh whoops, bash might not always be the default shell 2011-02-11 12:33:24 -07:00
console Initial commit. 2011-01-31 18:57:29 -07:00
dbconsole Initial commit. 2011-01-31 18:57:29 -07:00
delayed_job new jobs admin area 2011-05-19 10:49:37 -06:00
destroy Initial commit. 2011-01-31 18:57:29 -07:00
generate Initial commit. 2011-01-31 18:57:29 -07:00
migration_lint useful find_each 2013-07-18 22:26:46 +00:00
plugin Initial commit. 2011-01-31 18:57:29 -07:00
process_incoming_emails improve robustness of incoming message processor 2013-04-29 14:47:09 +00:00
rails start adding rails 3.0 support 2013-03-22 19:08:40 +00:00
runner adds user search API to courses 2013-01-25 09:42:30 -07:00
server remove deprecated rails constant usage 2013-03-11 12:14:08 -06:00
spec remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
ssl_server remove deprecated rails constant usage 2013-03-11 12:14:08 -06:00
startup.bat start adding rails 3.0 support 2013-03-22 19:08:40 +00:00