Repository navigation
DataAccess config for type and load - #2440
Merged
Merged
Conversation
karussell
commented
Oct 25, 2021
| dataAccessType = DAType.fromString(graphDATypeStr); | ||
| dataAccessDefaultType = DAType.fromString(ghConfig.getString("graph.dataaccess", "RAM_STORE")); | ||
| for (Map.Entry<String, Object> entry : ghConfig.asPMap().toMap().entrySet()) { | ||
| if (entry.getKey().equals("graph.dataaccess.segment_size")) continue; |
Member
Author
There was a problem hiding this comment.
Should we use a different prefix like graph.dataaccess.type... to avoid this? But then this would be a bit inconsistent with the default DAType ala graph.dataaccess: RAM_STORE
Member
There was a problem hiding this comment.
Yes, I like it better with the prefix. Maybe rename graph.dataaccess to graph.dataaccess.default_type?
Member
Author
There was a problem hiding this comment.
Ok. Will do. Will also try to support some simple pattern matching to reduce config hassle for multiple CH profiles.
Member
Author
|
Ok. When we use this new config style (with pattern matching) and a separate preload entry would this work better for you @easbar ? graph.dataaccess.default_type: RAM_STORE
# default preload for MMAP is 0%
graph.dataaccess.type.nodes_ch.*: MMAP
graph.dataaccess.type.shortcuts_.*: MMAP
# first rule matches
graph.dataaccess.mmap.preload.nodes_ch_car.*: 100
graph.dataaccess.mmap.preload.nodes_ch.*: 30
graph.dataaccess.mmap.preload.shortcuts_.*: 30
# so this rule would be ignored for car:
graph.dataaccess.mmap.preload.shortcuts_car.*: 100 |
Member
|
Yes! |
Member
|
Thanks! |
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.
Fixes #2416 and was discussed in #2432.
Use the following config:
old config:
Details