-
Hi, When I save a large data, about 80G, I got an error, Invalid argument: value is too large, how can I address this? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
Is that 80GB the size of a single value? |
Beta Was this translation helpful? Give feedback.
-
Yes, I try to serialize two dicts, each of which holds about 40G data, and when I put each part in separate keys, I will got this error. |
Beta Was this translation helpful? Give feedback.
-
Just use the 'put' method |
Beta Was this translation helpful? Give feedback.
-
Can you try to print out which key-value pair in particular causes this error? This might give us a clue about the cause. |
Beta Was this translation helpful? Give feedback.
-
Do you mean you are storing them in 2 keys or storing using the inner key-value of the dict? |
Beta Was this translation helpful? Give feedback.
-
If you are storing the 2 dicts in only 2 keys, it will probably cause error. I’d recommend you to store the dicts using the inner keys of the dicts into rocksdict (which is better at storing smaller key-value pairs). |
Beta Was this translation helpful? Give feedback.
-
I define two key-value pair in my code, I iteratively update these to values in these to keys using the new data. Then I will store the updated results into db, But I got the above error. |
Beta Was this translation helpful? Give feedback.
-
You mean I store the data, using this format, like key: {k1: {k2: v}} I store as (key_k1_k2, v) right? |
Beta Was this translation helpful? Give feedback.
-
Yes, key_k1_k2 would work better. Plus you would be able to query key_k1_k2 immediately without reading and loading the large |
Beta Was this translation helpful? Give feedback.
-
Many thanks for your help, making me more familiar with KV database. Thank you! |
Beta Was this translation helpful? Give feedback.
You mean I store the data, using this format, like
key: {k1: {k2: v}}
I store as (key_k1_k2, v)
right?