简体   繁体   中英

How receive over 1000 documents from ArangoDB collection?

I have a collection. My collection has 30 000 000 documents. I want to receive all its by means AQL query. I do so:

FOR c FROM MyCollection SORT c.value ASC LIMIT 30000000 RETURN c.id

But I receives no more 1001 documents. Why?

The AQL editor in the web interface has a select box at the bottom that allows specifying the maximum number of documents to receive. The selected value defaults to 1000, so only 1000 documents will be fetched.

You can increase the number up to 5000 results using the select box. This value is an arbitrary limit, however, it protects you from actions such as trying to fetch 30M documents into your browser, which is an operation that will not work (your browser will likely run out of memory or it will come to a grinding halt when trying to render the HTML for 30M rows).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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