Getting all pages data from restheart API

时间:2017-08-23 10:34:58

标签: mongodb rest pagination restheart

We know that RESTHEART API for Mongo provides facility to get data by pages and the maximum limit of pages is 1000.

Is there a way in Restheart or outside to get all pages data in single call?

I am just trying to avoid multiple rest calls using restheart for every page.

1 个答案:

答案 0 :(得分:2)

无法通过单个mongodb驱动程序调用检索整个集合。

限制1000以限制http请求。使用最多10兆字节或更多json的文档,它甚至可能导致巨大的有效载荷!

但是,您可以对不同的页面进行并发请求,以加快数据检索...