Replies: 6 comments 2 replies
|
I think this already is the fastest way. Use raw mode too. |
|
All data have to be retrieved from the disk, since this is by design what rocksdb does. It assumes that there is difficulty storing everything inside main memory. However, from what I can see, in your use case, there is no difficulty keeping all keys within main memory. So, what you can do is perhaps just keep all your keys in memory, and also perhaps separately deserialize all your keys in another format for fast batch retrieval. |
|
BTW, I don't understand the specific need about your use case yet. Why reading all keys into a list? |
|
You may also want to try BLOB DB which is supported in It is possible that this can improve the efficiency of your use case. |
|
Thank you very much for all the information, I'll try your suggestions. BTW, why do you suggest to use raw mode, it that better ? thanks |
|
Thanks @Congyuwang took a long time. Maybe I missing something? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The only method that I say is:
list(Rdict(f'...DBS/rocksdict/{date}',options=opt).keys())but it takes a lot of time, from what I understand it iterate over all the data.
Thanks,
All reactions