@yunanhelmy had optimize this with PR #19. But from result issue #28 which lead us to revert back to ActiveRecord::Relation. Even so, I still think some developer need to optimize this query.
I think we should have two extra modules pagy_cursor/pagy/extras/optimal_cursor and pagy_cursor/pagy/extras/optimal_uuid_cursor which behave the same as #19 and return Ruby Array.
From that implementation developer able to pick the implementation that he want.
@yunanhelmy had optimize this with PR #19. But from result issue #28 which lead us to revert back to ActiveRecord::Relation. Even so, I still think some developer need to optimize this query.
I think we should have two extra modules
pagy_cursor/pagy/extras/optimal_cursorandpagy_cursor/pagy/extras/optimal_uuid_cursorwhich behave the same as #19 and return Ruby Array.From that implementation developer able to pick the implementation that he want.