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
Having an ORDER BY primary key if no explicit sort order is specified is a good default.
We can potentially add opt-ins for "I don't care about query order", like OrderExpression.unordered(schema>)/EntityExpressions.unordered(<entity type>)/OrderBuilder.unordered() and YqlOrderBy.unordered(). Implementation for InMemory might be a no-op (and continue sorting) or (IMHO a better option) it might apply a Collections.shuffle() on the results, to uncover ordering assumptions early in the testing phase.
@dvilker Hi Dmitry, is the opt-in variant of "don't sort the query results" suitable for your needs? If yes, it seems reasonably easy to add to YOJ, and we'll do it.
Now, if you do not specify any YqlOrderBy, then ORM itself will add sorting by the primary key. But this is not always necessary.
The text was updated successfully, but these errors were encountered: