# What is the maximum size of an array of objects?

**URL:** <https://discuss.elastic.co/t/what-is-the-maximum-size-of-an-array-of-objects/133595>\
**Category:** Elasticsearch\
**Created:** [May 28, 2018, 11:57pm UTC](https://discuss.elastic.co/t/what-is-the-maximum-size-of-an-array-of-objects/133595 "2018-05-28T23:57:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vflopes](https://avatars.discourse-cdn.com/v4/letter/v/df788c/32.png) [@vflopes](https://discuss.elastic.co/u/vflopes)\
**Post date:** [May 28, 2018, 11:57pm UTC](https://discuss.elastic.co/t/what-is-the-maximum-size-of-an-array-of-objects/133595/1 "2018-05-28T23:57:16Z")

</div>

I have a project using Elasticsearch as "primary database" (I know, some people will disagree with it) and we need ACL control per document, including document search visibility. We find the best way to do this by creating an ACL array per document with the policy applied to each user. But thinking about environments with thousands of users and each with some policy applied to each document I ended up with a question: what is the maximum size of an array field where each item is an object (if there is a maximum)?

---

<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:** [June 25, 2018, 11:58pm UTC](https://discuss.elastic.co/t/what-is-the-maximum-size-of-an-array-of-objects/133595/2 "2018-06-25T23:58:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
