Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
taf2
on Nov 24, 2011
|
parent
|
context
|
favorite
| on:
MongoDB, count() and the big O
it does, if you change your pagination interface to only care if there are more results after this page...
cheald
on Nov 24, 2011
[–]
If your pagination interface is simply "Next", then why not skip the count all together, limit(N+1) documents, and offer the "Next" button if the result set is N+1 large?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: