mongodb page split
示例:
var lastest=null;
while(page1.HasNext()){
lastest=page1.Next();
}
var page2=db.foo.find({"date":{"date":{"$gt":lastest.date}});
page2.sort({"date“:-1}).limit(100);
blog comments powered by Disqus
var lastest=null;
while(page1.HasNext()){
lastest=page1.Next();
}
var page2=db.foo.find({"date":{"date":{"$gt":lastest.date}});
page2.sort({"date“:-1}).limit(100);