mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	optimizations and fixes
This commit is contained in:
		
							parent
							
								
									be543737a9
								
							
						
					
					
						commit
						199d89c1a6
					
				| @ -22,7 +22,7 @@ function getNotesAndBranchesAndAttributes(noteIds) { | ||||
|             branches.prefix, | ||||
|             branches.isExpanded | ||||
|         FROM param_list | ||||
|         JOIN branches ON param_list.paramId = branches.noteId OR param_list.paramId = branches.parentNoteId | ||||
|         JOIN branches ON param_list.paramId = branches.parentNoteId | ||||
|         JOIN notes AS child ON child.noteId = branches.noteId | ||||
|         WHERE branches.isDeleted = 0`);
 | ||||
| 
 | ||||
|  | ||||
| @ -116,7 +116,7 @@ function fillAllEntityChanges() { | ||||
| } | ||||
| 
 | ||||
| module.exports = { | ||||
|     addNoteReorderingEntityChange: (parentNoteId, sourceId) => addEntityChange("note_reordering", parentNoteId, sourceId), | ||||
|     addNoteReorderingEntityChange: (parentNoteId, sourceId) => addEntityChange("note_reordering", parentNoteId, '', sourceId), | ||||
|     moveEntityChangeToTop, | ||||
|     addEntityChange, | ||||
|     fillAllEntityChanges, | ||||
|  | ||||
| @ -219,7 +219,7 @@ function wrap(query, func) { | ||||
|             log.info(`Slow recursive query took ${milliseconds}ms.`); | ||||
|         } | ||||
|         else { | ||||
|             log.info(`Slow query took ${milliseconds}ms: ${query}`); | ||||
|             log.info(`Slow query took ${milliseconds}ms: ${query.trim().replace(/\s+/g, " ")}`); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam