Support paginate(:total_entries => n) for DataMapper #358

Merged
merged 1 commit into from Feb 6, 2014

Conversation

Projects
None yet
2 participants
Contributor

phuesler commented Feb 5, 2014

Useful in combination with Postgres and a data set that is bigger than the available memory, since Postgres cannot always answer a select count(*) by looking at the index. Instead it has to go through every row in the result set to check it's visibility information.

@mislav mislav added a commit that referenced this pull request Feb 6, 2014

@mislav mislav Merge pull request #358 from phuesler/dm_total_entries
Support paginate(:total_entries => n) for DataMapper
ca7d45f

@mislav mislav merged commit ca7d45f into mislav:master Feb 6, 2014

1 check passed

default The Travis CI build passed
Details
Owner

mislav commented Feb 6, 2014

Thanks! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment