'Get size of a collection in bytes

Is there a query to get the size in bytes of a collection? I would like to know how much storage space a certain collection needs.



Solution 1:[1]

You may call the collection api on a single server or a cluster's coordinator like so:

<endpoint>/_db/<database>/_api/collection/<collection>/figures

In arangosh connected to again a single server or cluster's coordinator endpoint

> db._useDatabase("<database>");
> db.<collection>.figures();

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kaveh Vahedipour