question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nest performance issue

See original GitHub issue

NEST/Elasticsearch.Net version: 2.3.1

Elasticsearch version: 2.3.1

Description of the problem including expected versus actual behavior:

0 down vote favorite I’m upgrading elasticsearch from 1.6 to 2.3.1 (includes Nest upgrade from 1.6.1 to 2.3.1).

I’m facing a severe performance degradation in aggregation requests. In order to verify it, i have created a console application to compare between the versions.

The performance of Nest 2.3.1 (elastic 2.3.1) is slower by about 100% than 1.6.1 (elastic 1.6). (30 sec to 59 sec)

Then, I have tested the same query directly on elastic 1.6 and 2.3.1 (with Sense) - the performance was similar.

Therefore, as i see it - there is a severe performance issue in Nest (i have tested the most of 2.X Nest versions)

Steps to reproduce:

  1. Create a console application
  2. Create aggregation with many fields, you can see code example:

Provide DebugInformation (if relevant): Interesting insight: When I change query from the lambda syntax to string syntax the performance is much better (1 seconds instead of 12 seconds). (instead of Terms('hi', x=> x.Field(f => f.ProductName)) I do Terms('hi', x=> x.Field("ProductName")))

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
tomsendercommented, Jun 19, 2016

Hey,

Sorry for the late response. I have found the root cause for the performance degradation. In Nest 1.6 the method of creation newtonsoft serializer is a static method, in since NEST 2.0 this method is not static.

In our codebase, we create the elastic client connection in every request (we have an abstraction on elastic). The garbage collector cleans newtonsoft cache and serialization time increase significantly.

We fixed it, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot slow internet on Google Nest Wifi or ...
When the internet or Wi-Fi speeds on your Google Nest Wifi or Google Wifi are slow, it can affect the performance of all...
Read more >
Nest Wifi Pro update fixes speed test issue, improves ...
Google has released a May 2023 update for the Nest Wifi Pro that should fix incorrect speed test results and improve overall performance....
Read more >
Google fixes slow Nest Wifi Pro speeds, but your numbers ...
Google has identified an issue with the Home app's built-in speed test feature.
Read more >
Slow network speed on Google WiFi mesh
I've had a Google nest wifi for some time and have had it consistently slow my Internet speeds. I've had the ISP come...
Read more >
Google's rolling out a Nest Wifi Pro update to fix slow ...
Google says it's rolling out a software update for the new Nest Wifi Pro early next week to address the slow internet speeds...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found