Deno KV: Should I expect 'value too large' errors inserting a JSON file with kv.set?
I was trying out kv and quickly ran into something I found surprising;
hieroglyphs.json
is not huge (360K), and yet I get this error:
I feel like I’m missing something obvious; am I trying to do something kv wasn’t designed for?
TIA5 Replies
Error is obvious, you can put maximum 65536 bytes of data and apparently your data is bigger than that.
forgive my ignorance.
that's the maximum size that can be inserted as a value? that seems very small to me.
KV is still an unstable feature, so it's subject to change, maybe you can create a discussion about it on GitHub or at #general
There are plans for Blob storage. Also you could break that up into 64k chunks and use a key sequence to fetch (get) the chunks.
I see, thank you both