Is there anyway to use the active record pagination feature to only hold a subset of the total records in memory, and to retrieve others as needed. Something akin to hibernate''s "scroll" feature. If this feature is missing, has anyone thought of how they wanted to implement it? Is this considered outside the current desired featureset of active record? Thanks so much, Jesper
Michael Koziarski
2005-Jun-24 03:05 UTC
Re: can active record pagninate over a remote recordset
On 6/24/05, Jesper Andersen <jesper-QNaEfV2wIaBecWObE8pWBKxOck334EZe@public.gmane.org> wrote:> Is there anyway to use the active record pagination feature to only hold > a subset of the total records in memory, and to retrieve others as > needed. Something akin to hibernate''s "scroll" feature.I believe that this would require us to use a cursor, and hold on to it between requests. So there''d need to be a pretty fundamental change in AR. Definitely too fundamental to hold up the 1.0 release, but perhaps after that.> If this feature is missing, has anyone thought of how they wanted to > implement it? Is this considered outside the current desired > featureset of active record?It''s outside the featureset for AR 1.0. After that who knows?> Thanks so much, > > Jesper > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers Koz