# Index Memory management user-wise

**URL:** <https://discuss.elastic.co/t/index-memory-management-user-wise/7631>\
**Category:** Elasticsearch\
**Created:** [May 10, 2012, 11:31am UTC](https://discuss.elastic.co/t/index-memory-management-user-wise/7631 "2012-05-10T11:31:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arien](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@arien](https://discuss.elastic.co/u/arien)\
**Post date:** [May 10, 2012, 11:31am UTC](https://discuss.elastic.co/t/index-memory-management-user-wise/7631/1 "2012-05-10T11:31:35Z")

</div>

Hi all  
I have some weird to do involving memory management for each user in  
individual index.  
Lets say i have some user field on each record to be inserted in an  
index and when trying to index documents for that user i want to  
restrict him/her to index upto only 1 gb per say, not more than that.  
So my question is it possible to get the memory taken in an index by  
any user like firing a query against user field.  
Please give your suggestions on this.

Thanks;

---

<div class="post-metadata">

**Author:** ![Andrew\_at\_DataFeedFi](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrew\_at\_DataFeedFi](https://discuss.elastic.co/u/Andrew_at_DataFeedFi)\
**Post date:** [May 10, 2012, 3:23pm UTC](https://discuss.elastic.co/t/index-memory-management-user-wise/7631/2 "2012-05-10T15:23:39Z")

</div>

Arien,

If you use one index per user than you can use the index stats api

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

the option you are interested in is 'store', so your URL should look  
like this:

[http://localhost:9200/index1/\_stats?store=true](http://localhost:9200/index1/_stats?store=true)

--Andrew

On May 10, 6:31 am, arien [ajaypa...@gmail.com](mailto:ajaypa...@gmail.com) wrote:

> Hi all  
> I have some weird to do involving memory management for each user in  
> individual index.  
> Lets say i have some user field on each record to be inserted in an  
> index and when trying to index documents for that user i want to  
> restrict him/her to index upto only 1 gb per say, not more than that.  
> So my question is it possible to get the memory taken in an index by  
> any user like firing a query against user field.  
> Please give your suggestions on this.
> 
> Thanks;

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:29am UTC](https://discuss.elastic.co/t/index-memory-management-user-wise/7631/3 "2017-07-06T03:29:25Z")

</div>

Closed on July 6, 2017, 3:29am UTC


