Replies: 1 comment
-
You cannot because we need to be able to iterate over records efficiently, and the way to do that is to go through records in primary key order, keeping the id as a cursor and using WHERE and LIMIT instead of OFFSET. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe I'm missing something obvious, but I'm trying to create my collection in descending order using
Model.where(conditions).order(created_at: :desc)
, but it gives me this error:How can I set the order of my collection?
Beta Was this translation helpful? Give feedback.
All reactions