# How to check/estimate the size of the set in namespace

**URL:** <https://discuss.aerospike.com/t/how-to-check-estimate-the-size-of-the-set-in-namespace/5778>\
**Category:** General Discussion\
**Created:** [December 14, 2018, 9:25pm UTC](https://discuss.aerospike.com/t/how-to-check-estimate-the-size-of-the-set-in-namespace/5778 "2018-12-14T21:25:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ren](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@Ren](https://discuss.aerospike.com/u/Ren)\
**Post date:** [December 14, 2018, 9:25pm UTC](https://discuss.aerospike.com/t/how-to-check-estimate-the-size-of-the-set-in-namespace/5778/1 "2018-12-14T21:25:29Z")

</div>

how to check/estimate the size of the set in namespace? is there any formula or info command to check the size of the set?

---

<div class="post-metadata">

**Author:** ![Ren](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@Ren](https://discuss.aerospike.com/u/Ren)\
**Post date:** [December 14, 2018, 9:34pm UTC](https://discuss.aerospike.com/t/how-to-check-estimate-the-size-of-the-set-in-namespace/5778/2 "2018-12-14T21:34:37Z")

</div>

i just found this asinfo -v ‘histogram:namespace=;set=;type=object-size’ but i would calculate the below output?

units=bytes:[128-256)=42268818

units=bytes:[128-256)=42233441

units=bytes:[128-256)=42236756

units=bytes:[128-256)=42233895

units=bytes:[128-256)=42260489

units=bytes:[128-256)=42224362

units=bytes:[128-256)=42236586

126 x 42268818 or 256 x 42268818

PS: i have 7 node cluster

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [December 15, 2018, 4:09am UTC](https://discuss.aerospike.com/t/how-to-check-estimate-the-size-of-the-set-in-namespace/5778/3 "2018-12-15T04:09:24Z")

</div>

There really isn’t a great way… The easiest method I’ve found is to backup the set and restore it to a sandbox, or use an application to scan the data and provide an estimate. It’s possible with the objsz histogram too, to a degree. I’m not sure how to read what you’ve pasted - that doesn’t look right to me. Is that the full output?

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [December 15, 2018, 7:27am UTC](https://discuss.aerospike.com/t/how-to-check-estimate-the-size-of-the-set-in-namespace/5778/4 "2018-12-15T07:27:53Z")

</div>

> [@Ren](#):
>
> units=bytes:[128-256)=42268818

Says that there are 42,268,818 records where 128 \<= size \< 256 bytes.

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [December 17, 2018, 2:40am UTC](https://discuss.aerospike.com/t/how-to-check-estimate-the-size-of-the-set-in-namespace/5778/5 "2018-12-17T02:40:30Z")

</div>

wow that is much different than the last time i looked. I’m gonna have to peak again… good job guys
