Writing the Yjs model must be done in a non-blocking way without removing any existing information. The database transaction is a Redis Lua script (this way we have conditions - only write if no new content is overwritten):