I'd like to calculate our server requirements for ArangoDB.
I know that ArangoDB stores the indexes in RAM, but how much space do indexes use?
That depend on the kind of index you use.
You can use "figures" to see how many memory is needed:
arangosh [_system]> db.test.ensureSkiplist("attribute1")
arangosh [_system]> db.test.ensureFulltextIndex("attribute2");
arangosh [_system]> db._query("FOR i IN 1 .. 1000 INSERT { 'attribute1': i, 'attribute2': 'Text' } INTO test");
arangosh [_system]> db.test.figures()
...
"indexes" : {
"count" : 3,
"size" : 77376
},
Is the total amount needed for all indexes. There is always the primary index.
For a hash index the memory consumption is roughly:
4 * n * sizeof(void*)
where n is the number of documents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With