简体   繁体   English

获取集合的大小(以字节为单位)

[英]Get size of a collection in bytes

Is there a query to get the size in bytes of a collection ?是否有查询以获取collectionbytes大小? I would like to know how much storage space a certain collection needs.我想知道某个collection需要多少存储空间。

You may call the collection api on a single server or a cluster's coordinator like so:您可以在单个服务器或集群的协调器上调用collection api,如下所示:

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

In arangosh connected to again a single server or cluster's coordinator endpointarangosh中再次连接到单个服务器或集群的协调器端点

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM