我正在使用一个MongoDB数据库。 For the front AngularJS。我正在使用猫鼬。Mongoose,AngularJS,NodeJS
我:
app.get("/images", function(req, res) {
mongoose.model('Image').find(function (err, images) {
res.send(images);
});
});
app.listen(3000);
它正常工作,当我去:http://localhost:3000/images
则:
<div ng-repeat="photo in photos">
<!-- My Data List -->
<h3>{{photo.name}}</h3>
</div>
直到这里,一切都很好。
但是我将有如千位和千位的数据显示。 因此,我需要像前面的“无限滚动”的东西,我也需要限制查询范围或分页的API http://localhost:3000/images
???
我该如何着手处理大量数据?
谢谢!
谢谢,我将采取看! – Carlos 2014-10-06 16:02:54