mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	many changes related to #1192:
- use CSS contain wherever possible to reduce subtrees of forced reflows - reduced dependency between note and note_contents updates which will reduce number of updates to components - optimization of "many rows" querying
This commit is contained in:
		| @@ -466,7 +466,6 @@ function saveNoteRevision(note) { | ||||
|             noteId: note.noteId, | ||||
|             // title and text should be decrypted now | ||||
|             title: note.title, | ||||
|             contentLength: -1, // will be updated in .setContent() | ||||
|             type: note.type, | ||||
|             mime: note.mime, | ||||
|             isProtected: false, // will be fixed in the protectNoteRevisions() call | ||||
| @@ -699,7 +698,6 @@ function eraseDeletedNotes() { | ||||
|     sql.executeMany(` | ||||
|         UPDATE notes  | ||||
|         SET title = '[deleted]', | ||||
|             contentLength = 0, | ||||
|             isProtected = 0, | ||||
|             isErased = 1 | ||||
|         WHERE noteId IN (???)`, noteIdsToErase); | ||||
| @@ -719,8 +717,7 @@ function eraseDeletedNotes() { | ||||
|     sql.executeMany(` | ||||
|         UPDATE note_revisions  | ||||
|         SET isErased = 1, | ||||
|             title = NULL, | ||||
|             contentLength = 0 | ||||
|             title = NULL | ||||
|         WHERE isErased = 0 AND noteId IN (???)`, noteIdsToErase); | ||||
|  | ||||
|     sql.executeMany(` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user