Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max reader algo #1352

Merged
merged 17 commits into from
Feb 6, 2025
Merged

Max reader algo #1352

merged 17 commits into from
Feb 6, 2025

Conversation

jsnoble
Copy link
Member

@jsnoble jsnoble commented Jan 29, 2025

For date and id slicer/reader
two new feature flags for experimentation:

  • total_optimization: defaults to false, if set to true, will will change the track_total_hits parameter inside the query to not find the exact total count for a given query. This is useful for dealing with slices and reads of significant data density. Setting this to true, you do not gain much benefit at all with the recurse_optimization flag so its advised not to use them both together.
  • recurse_optimization: defaults to false, if set to true, it attempts to lower the amount of times it has to recount a query to make a slice by make smarter chunk sizes based off the total count instead of its simple splitting logic, only really useful if total_optimization is set to false

For spaces slicer/reader
The two new feature flags for experimentation are the same except that total_optimization defaults to true as per the current usage of this does so in spaces

@lesleydreyer
Copy link
Contributor

lesleydreyer commented Feb 1, 2025

In the ElasticsearchReaderApi getIndexDate function - i think you can set track_total_hits: false there too

@lesleydreyer
Copy link
Contributor

I think in SpacesReaderClient getDataType you can just set track_total_hits: false

@godber godber merged commit 4570745 into master Feb 6, 2025
18 checks passed
@godber godber deleted the max_reader_algo branch February 6, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants