# Kibana Discover view is very slow after upgrade - not compressing HTTP responses

**URL:** <https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991>\
**Category:** Kibana\
**Created:** [June 25, 2021, 12:26am UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991 "2021-06-25T00:26:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![salvoj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/salvoj/32/85302_2.png) [@salvoj](https://discuss.elastic.co/u/salvoj)\
**Post date:** [June 25, 2021, 12:26am UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/1 "2021-06-25T00:26:12Z")

</div>

We have updated from 7.4.0 to 7.13.2 a few days ago. Performance in Discover view has greatly deteriorated.

Query times are still good. Problem seems to be the long time it takes to render page:

- Query time: 1.3 sec
- Time to render full page: 31.sec

 ![Inspect](https://us1.discourse-cdn.com/elastic/original/3X/5/4/546b06b9b47ee7eea162e1d17f31c288a5a920e8.gif)

I checked response headers. Kibana is no compressing the response queries - as explained in topic '[Kibana not compressing HTTP responses](https://discuss.elastic.co/t/kibana-not-compressing-http-responses/266989)'

Is this issue fixed in 7.13.2? Do I have to update any settings in Kibana?

Thanks,  
Jorge

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [June 25, 2021, 2:29am UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/2 "2021-06-25T02:29:48Z")

</div>

this might not be related. but I had this unusal slow opration of kibana for everything and anything on it.

Turn out that they have turn on fleet by default. ( I believe that was from 7.12+)  
and that means your kibana is trying to go out and update fleet and if you don't have internet connection it is just spinning for long time.

disable fleet on kibana  
xpack.fleet.enabled: false

Again this might not be the case in your situation.

---

<div class="post-metadata">

**Author:** ![salvoj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/salvoj/32/85302_2.png) [@salvoj](https://discuss.elastic.co/u/salvoj)\
**Post date:** [June 26, 2021, 12:05am UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/3 "2021-06-26T00:05:31Z")

</div>

Hi Sachin,  
I'm afraid adding fleet setting didn't help.

It is clear to me the reason Discover view in 7.13.2 is slower than in 7.4.0 is because the size of the response is much bigger, since it doesn't use 'gzip' for content encoding.

Is this the expected behavior now? Or is there a way to improve response times in Discover view?

Thanks!

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 26, 2021, 6:02pm UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/4 "2021-06-26T18:02:59Z")

</div>

Looks like the fix, [https://github.com/elastic/kibana/pull/97994](https://github.com/elastic/kibana/pull/97994), has been merged into 7.14 branch. I am not sure if this fix will be backported to 7.13.

---

<div class="post-metadata">

**Author:** ![salvoj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/salvoj/32/85302_2.png) [@salvoj](https://discuss.elastic.co/u/salvoj)\
**Post date:** [June 26, 2021, 11:09pm UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/5 "2021-06-26T23:09:23Z")

</div>

Thanks for the information Nathan. It is very helpful.  
I guess we’ll have to wait for 7.14 release.

---

<div class="post-metadata">

**Author:** ![salvoj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/salvoj/32/85302_2.png) [@salvoj](https://discuss.elastic.co/u/salvoj)\
**Post date:** [June 28, 2021, 3:39pm UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/6 "2021-06-28T15:39:40Z")

</div>

To improve performance of Discover View I have updated setting 'Number of rows' (discover:sampleSize) in Advance Settings. Default value is 500 - new value 50.  
This reduce response time from 31 seconds to only 7 seconds 😀

I suppose time reduced will depend on the size of the records - in our case documents are quite large.

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [June 30, 2021, 1:57pm UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/7 "2021-06-30T13:57:56Z")

</div>

Hi

Do you have many multi fields in your mappings? could you record and share a Chrome performance profile when loading Discover?  
Many thx!  
Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![salvoj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/salvoj/32/85302_2.png) [@salvoj](https://discuss.elastic.co/u/salvoj)\
**Post date:** [June 30, 2021, 11:01pm UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/8 "2021-06-30T23:01:30Z")

</div>

Hi Matthias,  
Yes, we do have many multi fields and we are working to reduce these.  
Here you have details from Chrome when Number of Rows is set to 500:

![elastic](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5cf31f47d0ed0ae7c6af875cfde0af36b7c87919.gif)

 ![elastic2](https://us1.discourse-cdn.com/elastic/original/3X/a/d/adcd3b29ed43990b63556b03dd3c1bf4c647c8f8.gif)

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [July 5, 2021, 1:47pm UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/9 "2021-07-05T13:47:17Z")

</div>

thx, can you test, if performance gets better if you set `discover:searchFieldsFromSource` to `on` ? thx!

---

<div class="post-metadata">

**Author:** ![salvoj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/salvoj/32/85302_2.png) [@salvoj](https://discuss.elastic.co/u/salvoj)\
**Post date:** [July 5, 2021, 8:28pm UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/10 "2021-07-05T20:28:34Z")

</div>

Hi Matthias,  
There is a small improvement after setting `discover:searchFieldsFromSource` to `on`, as response size is smaller. However, discover view is still much slower than version 7.4.0.  
For the moment we'll keep `discover:sampleSize` set to `50` till 7.14 is released. This give us decent performance.

Thanks!  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5fec39349c2b331f990cb00e4f94c65ff5cbc58.gif)

---

<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:** [August 2, 2021, 8:29pm UTC](https://discuss.elastic.co/t/kibana-discover-view-is-very-slow-after-upgrade-not-compressing-http-responses/276991/11 "2021-08-02T20:29:25Z")

</div>

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