mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +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:
		| @@ -9,8 +9,12 @@ const path = require('path'); | ||||
|  | ||||
| function getNoteRevisions(req) { | ||||
|     return repository.getEntities(` | ||||
|         SELECT * FROM note_revisions  | ||||
|         WHERE noteId = ? AND isErased = 0 | ||||
|         SELECT note_revisions.*, | ||||
|                LENGTH(note_revision_contents.content) AS contentLength | ||||
|         FROM note_revisions | ||||
|         JOIN note_revision_contents ON note_revisions.noteRevisionId = note_revision_contents.noteRevisionId  | ||||
|         WHERE noteId = ?  | ||||
|           AND isErased = 0 | ||||
|         ORDER BY utcDateCreated DESC`, [req.params.noteId]); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user