Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using db.XX.count in pager to count results #104

Merged
merged 1 commit into from
Dec 25, 2013

Conversation

pborreli
Copy link
Contributor

Closes #103

Before:

db.book.find().sort({ "title.name": 1 });
db.book.find().skip(0).limit(25).sort({ "title.name": 1 });

After:

db.book.count();
db.book.find().skip(0).limit(25).sort({ "title.name": 1 });

dunglas added a commit that referenced this pull request Dec 25, 2013
Using db.XX.count in pager to count results
@dunglas dunglas merged commit 0625d6d into sonata-project:master Dec 25, 2013
@dunglas
Copy link
Contributor

dunglas commented Dec 25, 2013

Thanks.

@pborreli pborreli deleted the patch-4 branch December 25, 2013 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants