简体   繁体   English

从Restheart API获取所有页面数据

[英]Getting all pages data from restheart API

We know that RESTHEART API for Mongo provides facility to get data by pages and the maximum limit of pages is 1000. 我们知道RESTHEART API for Mongo提供了按页面获取数据的功能,页面的最大限制为1000。

Is there a way in Restheart or outside to get all pages data in single call? 在Restheart或外部是否可以通过一次调用获取所有页面数据?

I am just trying to avoid multiple rest calls using restheart for every page. 我只是想避免在每个页面上使用restheart进行多次rest调用。

It is not possible as it is not possible to retrieve an entire collection with a single mongodb driver call. 这是不可能的,因为不可能通过单个mongodb驱动程序调用来检索整个集合。

The limit of 1000 is imposed to bound the http request. 限制为1000以限制http请求。 With documents up to 10 megabytes or more of json it could even result in a huge payload! 如果文档的json大小高达10 MB或更多,甚至可能导致巨大的负载!

You can however make concurrent requests for different pages to speed up the data retrieval... 但是,您可以同时请求不同的页面,以加快数据检索的速度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM