Possible Duplicate:
Slow pagination over tons of records in mongo
I created a simple test:
> db.t.count()
7852054
> db.t.find().skip( 1500000 ).limit(1)
{ "_id" : ObjectId("4fc078aa82618808f416e372"), "value" : 1500000 }
>
To do paging using skip and limit takes too long in huge collections.
Is there any better way to do that?