Repository navigation
perf(drivers): cut browse round trips on Redis, Memcached, Elasticsearch and MongoDB - #4332
Merged
Merged
Conversation
…sticsearch and MongoDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SCAN COUNTsized to the keys it keeps, 1,000 to 10,000. The 100 key sample stays at 1,000.gets. A request splits at 1,000 keys, a 64 KiB line or 16 MiB of listed item bytes._source: falseon batches that end before the page. New productTableProElasticsearchCore.findsendsbatchSize = limit + 1. A script's ownbatchSizeis kept, and a read with no row cap keeps the server default.MemcachedKeyListingTestsupdated on purpose: a listed entry now carries the item size.check-stream-idle-pacing.shlinks the new Elasticsearch product.Test plan
find+getMorebefore,findalone after.RedisKeyScanCountTests,MemcachedValueBatchesTests,ElasticsearchDeepPageWalkTests,MongoDBFirstBatchTests.MongoDBFirstBatchTestsneeds an iOS simulator, which this Mac lacks, so CI is its first full run. The same cases in a local harness fail on main and pass here.