I am considering using ArangoDB for a new project of mine, but I have been unable to find very much information regarding its scalability.
Specifically, I am looking for some information regarding the count function. Is there a reliable way (perhaps a formula) to approximate how long it will take to count the number of documents in a collection which match a simple Boolean value?
All documents in the collection would have the same fields, however with different values. How can I determine how long would it take to count several hundred million documents?
Just create a collection
users
and insert as many random documents as you need.Then do the count:
And if you use this query in production, make sure to add an index too. On my machine it reduces the execution time by factor > 100x (0.043 sec / 1.1mio documents).
Check your query with EXPLAIN to further estimate how "expensive" the execution will be.