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
The case is probably due to unique option from paginate is not propagated down to the sqlakeyset's implementation of the cursor pagination. So no _maybe_unique function is invoked leading to this error.
Maybe there is a way of workaround this issue without dropping use of lazy loading?
The text was updated successfully, but these errors were encountered:
When using
lazy="joined"
in sqlalchemy model relationship with cursor pagination, the pagination will fail with the message:The unique() method must be invoked on this Result, as it contains results that include joined eager loads against collections
Example (slightly modified test case initial condition):
The case is probably due to
unique
option frompaginate
is not propagated down to thesqlakeyset
's implementation of the cursor pagination. So no_maybe_unique
function is invoked leading to this error.Maybe there is a way of workaround this issue without dropping use of lazy loading?
The text was updated successfully, but these errors were encountered: