# Query suggestion performance time

**URL:** <https://discuss.elastic.co/t/query-suggestion-performance-time/292692>\
**Category:** Elastic Search\
**Created:** [December 22, 2021, 1:51pm UTC](https://discuss.elastic.co/t/query-suggestion-performance-time/292692 "2021-12-22T13:51:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miki\_haiat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miki_haiat/32/83361_2.png) [@miki\_haiat](https://discuss.elastic.co/u/miki_haiat)\
**Post date:** [December 22, 2021, 1:51pm UTC](https://discuss.elastic.co/t/query-suggestion-performance-time/292692/1 "2021-12-22T13:51:00Z")

</div>

I have a meta engine that contains 1.8 M docs im assuming that the size of the engine is around 1.5GB.

i tried to tune as much as i can via UI result setting and adding gzip compression.  
The best result i got was ~200ms but most of them are above ~750ms.

Im thinking of adding more shards and maybe split the data so smaller engines as some post suggested .

Any other suggestions ?

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [December 22, 2021, 2:11pm UTC](https://discuss.elastic.co/t/query-suggestion-performance-time/292692/2 "2021-12-22T14:11:13Z")

</div>

Check out this article on some tips for tuning:

> **[Tune for search speed | Elasticsearch Guide \[7.16\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-search-speed.html)**

How many shards/replicaes do you currently have for your index? How many data nodes are there? What kind of searches are you doing?

These are all really important questions to consider. Elasticsearch is super easy to use and setup but can be a real pain to optimize correctly 😛

---

<div class="post-metadata">

**Author:** ![miki\_haiat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miki_haiat/32/83361_2.png) [@miki\_haiat](https://discuss.elastic.co/u/miki_haiat)\
**Post date:** [December 22, 2021, 2:55pm UTC](https://discuss.elastic.co/t/query-suggestion-performance-time/292692/3 "2021-12-22T14:55:10Z")

</div>

I created an engine via UI ,  
I cant figure out how to configure shards like normal index...

I have 3 node cluster with 2GB RAM on elastic cloud.

the search is pretty simple i have an "Location" engine and im looking for field "city"

> {  
> "query": "san d",  
> "types": {  
> "documents": {  
> "fields": [  
> "city"  
> ]  
> }  
> },  
> "size": 5  
> }

---

<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:** [November 4, 2022, 8:33am UTC](https://discuss.elastic.co/t/query-suggestion-performance-time/292692/4 "2022-11-04T08:33:31Z")

</div>


