简体   繁体   中英

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.

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();

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