support of modifing the content in the dictionary storage #167
Unanswered
marcos0318
asked this question in
Q&A
Replies: 2 comments
-
That’s right! It maybe confusing but it is as expected. When you modify the data that’s returned by rocksdb, you are modifying a local copy of the data. So you’ll always have to store the modified data back for the update to be memorized on disk. |
Beta Was this translation helpful? Give feedback.
0 replies
-
var_d = db[“d”] # read (slow) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you so much for developing this wonderful tool that is so easy to use!!!
However, I have found that there is something not intuitive to use when storing the dictionaries. The current version seems to support modifying the dictionary content in the DB.
Here is an example:
When trying to modify the key values in dictionary storage, there is no error or warning saying this will not be reflected in the DB storage, and the storage will remain the same.
The modification has to be done as a whole diction assignment.
This feature takes me a long time to debug when I try to process my data, and I was wondering if there should be some warnings or errors telling the users that this is not a good practice to directly modify the content in dictionary storage.
Thank you very much!!
Best
Beta Was this translation helpful? Give feedback.
All reactions