I have a drive file that seems to have a corrupted or leaky realtime document.

When I call realtimeDocument.getModel().getRoot().toString(), the output is {slides: []}, but when I try to insert a new slide (a custom object with 10 or 15 small string properties), I get a size limit error.

Model size limit has been exceeded. Used: 10681723 bytes; Limit: 10485760 bytes

Is there a way I can reinitialize the realtime document or otherwise get it to trim itself down?

This only seems to be happening in one file - all of my other files have reasonable mappings between realtime document size and model complexity.

有帮助吗?

解决方案

Have you previously created and removed a lot of objects from the document? Currently each CollaborativeObject persists in the model forever. Thus, removing it from the root doesn't actually free up the space. (This is because objects can become reattached to the root via collaborator actions or undo.)

In normal operations this shouldn't generally be a problem, but if you are constantly creating and removing objects you could run into issues.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top