mirror of
https://github.com/zadam/trilium.git
synced 2025-01-17 20:48:12 +08:00
optimizations and fixes
This commit is contained in:
parent
be543737a9
commit
199d89c1a6
3 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue