Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ perform(Connection, MigrationOpts) ->
perform_batch(Connection, 0, BatchSize).

perform_batch(Connection, Offset, Limit) ->
SQL = "SELECT process_id, aux_state FROM bender_sequence_processes ORDER BY created_at OFFSET $1 LIMIT $2",
SQL = "SELECT process_id, aux_state FROM bender_sequence_processes ORDER BY ctid OFFSET $1 LIMIT $2",
case epg_pool:query(Connection, SQL, [Offset, Limit]) of
{ok, _, []} ->
ok;
Expand Down
Loading