# Storing associated data

**URL:** <https://discuss.elastic.co/t/storing-associated-data/121756>\
**Category:** Elasticsearch\
**Created:** [February 28, 2018, 12:49am UTC](https://discuss.elastic.co/t/storing-associated-data/121756 "2018-02-28T00:49:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimc](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jimc](https://discuss.elastic.co/u/jimc)\
**Post date:** [February 28, 2018, 12:49am UTC](https://discuss.elastic.co/t/storing-associated-data/121756/1 "2018-02-28T00:49:04Z")

</div>

Hi. I have a situation where I need to associate supplementary data with documents indexed in Elasticsearch. This extra data won't be searched, it won't be retrieved except in select cases, and its size per document could range from a handful of bytes to tens of megabytes. It could be represented in a couple of fields consisting of a long list of numbers or a long string.

I am trying to determine whether adding this supplementary data to the corresponding index items as fields that are not indexed or included in `_all` is a viable approach. Are there any big costs to this, aside from the obvious (i.e. disk space, transfer time)? Elasticsearch is not being used as a primary data store in this scenario, and the extra data only has meaning in the context of the indexed items.

Using a separate data store for the associated data is certainly an option, however I would prefer to avoid the extra complexity that would introduce if at all practical.

Thanks in advance for any opinions or other feedback.

Jim

---

<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:** [March 28, 2018, 12:49am UTC](https://discuss.elastic.co/t/storing-associated-data/121756/2 "2018-03-28T00:49:23Z")

</div>

Closed on March 28, 2018, 12:49am UTC

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