-
-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Describe the bug
I've been using the persister-durable-object-sql-storage for a little while and all of a sudden I've started getting cloudflare errors, "Durable Object storage operation exceeded timeout which caused object to be reset." I've been using "fragmented" mode, which, after reading the code, I'm noticing is storing every individual CELL separately. I switched to JSON mode and it no longer times out, but I've realized I'm at 225kb of data. I think I'll eventually be hitting that 2MB row limit as time continues on (my app gets more data each day).
What do you think about updating fragmented mode to be per row, instead of per cell? I imagine that would greatly increase write speed (and decrease write costs!), and also help with row limits.
I don't think there's really a good 200kb+ storage option right now here.
Also going to tag @acoreyj since he was the original author of the sql storage implementation.