-
Notifications
You must be signed in to change notification settings - Fork 596
optimize: Optimize rockdb batch query performance #2982
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
Open
lokidundun
wants to merge
16
commits into
apache:master
Choose a base branch
from
lokidundun:improvequery
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5ba6d4a
optimize: Optimize RocksDB batch query performance
lokidundun f5405a0
Refactor getByIds to queryByIds in RocksDBTable
lokidundun 939ace0
Modify queryByIds to use super method temporarily
lokidundun 502c7df
Refactor queryByIds to getByIds with HashSet
lokidundun 352f66b
Update RocksDBTables.java
lokidundun 0d9052d
fix: fix ci
lokidundun 45298f9
optimize: optimize the batch query
lokidundun 223fb28
optimize: optimize rockDb query
lokidundun ce4e2cb
fix: fix ci test
lokidundun 6fe08a7
fix: preserve input id multiplicity in RocksDB multi-get path
Copilot 0391069
fix: fallback getByIds when rocksdb session has pending changes
Copilot ce802b9
revert: restore rocksdb query files to ce4e2cb state
Copilot c06225c
fix: fix wrong usage
lokidundun a99491b
Merge branch 'improvequery' of https://github.com/lokidundun/incubato…
lokidundun 10cb0a4
test: add test for new multi-get path
lokidundun d33123e
add test for session.hasChanges()
lokidundun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set<Id>→Collection<Id>语义变化需注意原方法接收
Set<Id>(天然去重),改为Collection<Id>后,传入List时若含重复 ID,RocksDBmultiGet会对同一 key 重复查询并返回重复结果。测试
testVertexQueryByIdsWithDuplicateIds验证了这个行为(id1 返回 2 次),但这与原Set语义不一致。需要确认上层IdQuery的 ids 是否可能含重复——如果含重复,行为变更可能导致上层重复处理数据。建议:在
getByIds入口去重以保持原语义,或者明确文档说明Collection含重复返回的行为变更。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added LinkedHashSet deduplication at the getByIds() entry point while preserving input order; skips if Set is already passed. Test updated to verify dedup behavior. The
backend deduplication does not affect final semantics since GraphTransaction reassembles results by the original input order.