perf: Don't load CRDT state from database by default (#3215)
This commit is contained in:
@@ -20,7 +20,11 @@ export default class Persistence {
|
||||
return;
|
||||
}
|
||||
|
||||
const document = await Document.findByPk(documentId);
|
||||
const document = await Document.scope("withState").findOne({
|
||||
where: {
|
||||
id: documentId,
|
||||
},
|
||||
});
|
||||
invariant(document, "Document not found");
|
||||
|
||||
if (document.state) {
|
||||
|
||||
Reference in New Issue
Block a user