What is the meaning of 'documentSize' field in collection figures?

31 views
Skip to first unread message

Kevin Lv

unread,
Sep 26, 2022, 10:21:35 AM9/26/22
to ArangoDB
Hi, 
When I use HTTP GET /_api/collection/{collection-name}/figures to count one collection size(https://www.arangodb.com/docs/3.5/http/collection-getting.html#return-statistics-for-a-collection), 
it returns as below:

{ "error": false, "code": 200, "type": 2, "status": 3, "name": "tag", "waitForSync": false, "objectId": "1209032", "cacheEnabled": false, "figures": { "indexes": { "count": 3, "size": 179944 }, "documentsSize": 1855548, "cacheInUse": false, "cacheSize": 0, "cacheUsage": 0 }, "keyOptions": { "allowUserKeys": true, "type": "traditional", "lastValue": 5537 }, "globallyUniqueId": "c287039421/", "statusString": "loaded", "id": "1209033", "count": 3161, "isSystem": false }

I found that this response format not as the note described, I guess the 'documentSize' may intend to the result I want to kown about this collection, could anyone explains this to me?

P.S. I am using ArangDB 3.5.2(Community Edition).

Thanks,
Kevin

Wilfried Gösgens

unread,
Sep 26, 2022, 11:03:17 AM9/26/22
to aran...@googlegroups.com
Hi,
Please note that ArangoDB 3.5 has been EOLed for over two years.
Please upgrade to at least ArangoDB 3.8

--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arangodb/94c0b64f-672a-4711-a4ab-9b9bcb194f3en%40googlegroups.com.

Kevin Lv

unread,
Sep 28, 2022, 11:16:42 AM9/28/22
to aran...@googlegroups.com
Thanks for your advice, I am considering  it.

I want to backup my data, at first I want to get data statistics easily.

Thanks & Regards

Wilfried Gösgens <doth...@gmail.com> 于2022年9月26日周一 23:03写道:
You received this message because you are subscribed to a topic in the Google Groups "ArangoDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/arangodb/soelgRSILDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to arangodb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arangodb/CACOvXe1XNHaLmgDzpo2NWCLuAmaspNaGQtq_r85PeXv2_kZbcA%40mail.gmail.com.

Simran Spiller

unread,
Dec 6, 2022, 6:27:26 AM12/6/22
to ArangoDB
The documentsSize attribute is only available if you use the RocksDB storage engine. It's an approximation in bytes that takes the files and memtables of the Document column family into account.

With the MMFiles storage engine, you can take a look at the datafiles.fileSize figure. You can also check the size of all files in the "databases" folder in the database directory.
Reply all
Reply to author
Forward
0 new messages