You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plucking specific columns (eg, SELECT "organisations"."id" FROM "organisations") using pagination leads to a different set of data than loading the whole record (eg, SELECT "organisations".* FROM "organisations").
As a developer you would expect the results of those to be consistent, but they lead to completely different data as shown in the screenshot.
Enforcing a .order(:id) fixes the issue, but since your gem shows many use cases without using order it should be assumed that you dont have to use order to get consistent results.
The text was updated successfully, but these errors were encountered:
Ran into a very puzzling issue when using
.page
Plucking specific columns (eg,
SELECT "organisations"."id" FROM "organisations"
) using pagination leads to a different set of data than loading the whole record (eg,SELECT "organisations".* FROM "organisations"
).This is very bad as demonstrated by the use case
As a developer you would expect the results of those to be consistent, but they lead to completely different data as shown in the screenshot.
Enforcing a
.order(:id)
fixes the issue, but since your gem shows many use cases without usingorder
it should be assumed that you dont have to useorder
to get consistent results.The text was updated successfully, but these errors were encountered: