spencerc99/playhtml

reaching durable object storage limit

spencerc99 opened this issue · 1 comments

there's a 2MB limit on durable object storage. When you hit it, it completely stops working

There are two things we can do to help mitigate this:

  1. stop using yjs and switch to native partykit store code (yjs stores entire transaction logs which is inefficient in these use cases where we don't need history). Can possibly pair this with using tinybase's APIs for client access but would need to create custom solution to handle complex objects (tinybase only accepts primitives right now)
  2. use a custom persister that partykit loads from rather than using the naive persist option. Probably an object storage solution

this has been fixed from some work by the partykit team