pagy-cursor
pagy-cursor copied to clipboard
Optimize Query without has more requery
@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 can you help in this contribution?
@yunanhelmy can you help in this contribution?
@Uysim I'll help this one.
@Uysim what about adding vars[:lazy] using default = true. Developer can pass { lazy: false } if they want to return an array.