• Starting point with :start => id? • Only “order by id” (numeric primary key) • find_each: Yields each instantiated row • find_in_batches: Yields array of :batch_size instantiated objects to the block Wednesday, July 11, 2012
• CURSOR_TUPLE_FRACTION=1 • Default: 0.1 (Optimizes for 10% of rows) • Can be set by app during transaction • SET ‘work_mem’ TO ‘100MB’ Wednesday, July 11, 2012