# Potential memory overhead of the "Term Lookup" mechanism

**URL:** <https://discuss.elastic.co/t/potential-memory-overhead-of-the-term-lookup-mechanism/20159>\
**Category:** Elasticsearch\
**Created:** [October 9, 2014, 10:17am UTC](https://discuss.elastic.co/t/potential-memory-overhead-of-the-term-lookup-mechanism/20159 "2014-10-09T10:17:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddy\_Mallet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/freddy_mallet/32/1221_2.png) [@Freddy\_Mallet](https://discuss.elastic.co/u/Freddy_Mallet)\
**Post date:** [October 9, 2014, 10:17am UTC](https://discuss.elastic.co/t/potential-memory-overhead-of-the-term-lookup-mechanism/20159/1 "2014-10-09T10:17:17Z")

</div>

Hi Guys,

We're about to use the "Term Lookup" mechanism  
([http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html))  
to do a term filter potentially on a big amount of terms, let's say 5'000  
terms containing each of them 20 characters.

To design the documents everything is clear but before starting using this  
feature (which is a way to do a kind of minimalistic "join" between two  
indexes), we do have a controversial discussion internally about the  
potential memory overhead relating to the use of this mechanism. I just  
have the feeling that the overhead won't be so important but don't have any  
factual arguments.

Is there anyone knowing how to approximate the memory which might be  
consumed by this mechanism ?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/59e91c7f-e0a2-4402-a640-740911c322e5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/59e91c7f-e0a2-4402-a640-740911c322e5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:57am UTC](https://discuss.elastic.co/t/potential-memory-overhead-of-the-term-lookup-mechanism/20159/2 "2017-07-06T00:57:21Z")

</div>

Closed on July 6, 2017, 12:57am UTC


