Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
optimizations and fixes
zadam199d89c1a6ed
diff --git a/src/routes/api/tree.js b/src/routes/api/tree.jsindex 53578079aa..3a5a4b21b6 100644--- a/src/routes/api/tree.js+++ b/src/routes/api/tree.js@@ -22,7 +22,7 @@ function getNotesAndBranchesAndAttributes(noteIds) {branches.prefix,branches.isExpandedFROM param_list- JOIN branches ON param_list.paramId = branches.noteId OR param_list.paramId = branches.parentNoteId+ JOIN branches ON param_list.paramId = branches.parentNoteIdJOIN notes AS child ON child.noteId = branches.noteIdWHERE branches.isDeleted = 0`);diff --git a/src/services/entity_changes.js b/src/services/entity_changes.jsindex 4cdec89209..576a0a40f1 100644--- a/src/services/entity_changes.js+++ b/src/services/entity_changes.js@@ -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,diff --git a/src/services/sql.js b/src/services/sql.jsindex 1f8ae1be29..e825113b42 100644--- a/src/services/sql.js+++ b/src/services/sql.js@@ -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, " ")}`);}}