Paging in ActiveRecord
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-05-31T18:42:42Z
Indexed on
2010/06/01
4:43 UTC
Read the original article
Hit count: 286
.NET
|castle-activerecord
Does CastleProject ActiveRecord support paging? I need to load only data which is now seen on the screen. If I use [HasMany], it will be loaded as a whole either immediately or at the first call (if lazy attribute is true). However I only need something like first 100 records (then maybe 100 next records).
Another question is how to load only 100 items. If the collection is too big, memory can reach its limit if we constantly load more and more items.
© Stack Overflow or respective owner