You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Guys, Is there any way to define the key value data type in rocksdb ?
Beccause I need to store an unordered_map as value for the key string in rocksdb, I cant do it. I've searched for it. But all suggests to convert it to string first and and then storing. In my use case converting unordered_map to string and then storing it and when getting again converting string to unordered_map is a costliest operation and affecting performance.
Kindly help me with this ?
The text was updated successfully, but these errors were encountered:
RocksDB just stores byte arrays (or strings as you put). It is the
responsibility of the user to serialize/deserialize their keys and values
as they need.
That being said, I wrote a custom merge operator that might cover your use
case, you can find it here - #3620
On Thu, 21 Dec 2023 at 19:04, Athi2019rit ***@***.***> wrote:
Hi Guys, Is there any way to define the key value data type in rocksdb ?
Beccause I need to store an unordered_map as value for the key string in
rocksdb, I cant do it. I've searched for it. But all suggests to convert it
to string first and and then storing. In my use case converting
unordered_map to string and then storing it and when getting again
converting string to unordered_map is a costliest operation and affecting
performance.
Kindly help me with this ?
—
Reply to this email directly, view it on GitHub
<#12172>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJUTOIJ7N32FFRL4PPGPBDYKR2ZRAVCNFSM6AAAAABA6YNHWSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TEOBVHE4DMOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Hi Guys, Is there any way to define the key value data type in rocksdb ?
Beccause I need to store an unordered_map as value for the key string in rocksdb, I cant do it. I've searched for it. But all suggests to convert it to string first and and then storing. In my use case converting unordered_map to string and then storing it and when getting again converting string to unordered_map is a costliest operation and affecting performance.
Kindly help me with this ?
The text was updated successfully, but these errors were encountered: