[pixels-common] replace the kv pairs in the index cache with string types #1192
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.
Load: 16 threads performing load + update operations, each thread loading 1kw and then updating 100w
Benchmark Test
Using String (Thread ID + num) as key, num as value
Cache Pre-experiment
Using IndexProto.IndexKey as key, num as value
Cache Optimization Approach
Key type significantly impacts performance, primarily due to suboptimal custom hash implementation
Attempted to decompose IndexProto.IndexKey: concatenate tableId, indexId, and key into a String for the key; concatenate timestamp and rowId into a String for the value
Cache Optimization
Conducting actual load experiments using the above optimization approach
Test Details