Open hotrush opened 2 weeks ago
Hi @hotrush
I've tested your snippet and something comes to my attention, you are passing a raw request and setting the size
at the same time. Size is trying to be set in the body but fails because raw takes precedence. Hence size is not properly propagated to the body of the request and you are effectively returning the full match of your request on the first call.
Can you check this assumption? If that is so I'll work on a way of preventing that.
Hello. We recently upgraded our cluster from v7 to v8 and had to migrate from olivere/elastic package to this official client at some service.
But after that we met serious performance degradation, service started responding 6-8 times longer than with client we used before (after reverting to olivere/elastic degradation is gone so this is confirmed).
Our code is pretty simple, we just scroll searches in goroutine and push data to a channel, see code below:
this is how client created
this is how we build initial query
this is how it is processed
Code is pretty simple and i can't understand what can cause such a big performance difference, am I doing anything wrong?