Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Initial filter query inefficiency with `_msearch` #1502
Comments
|
@mitchgillin We already have that issue in our top priority. For now you can try the following things:
|
|
Would it not be more efficient if ReactiveSearch sent one search request to ES, compiled from the needs of all components, and then each component subscribes to the result and pulls out "their" data? Or do you have a use case where you'll update a filter widget without updating the main search result or the opposite? |
|
@janhoy This is how ReactiveSearch works, it generates a combined query (via |
Affected Projects
React
Library Version: x.y.z
3.11.4
Describe the bug
Initial load of app is causing a
_msearchto fire for each filter. Having large doc sizes in ES and having multiple filters in place is causing crashes to my infra.To Reproduce
Have ~15 filters in place and hit an ES node with large files.
Expected behavior
ReactiveSearch should batch all queries on first render to perform an efficient
_msearchDesktop (please complete the following information):