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
don't compare hashes of note_reordering entity_changes
zadam18b13657fd31
diff --git a/src/services/content_hash.js b/src/services/content_hash.jsindex b4b0ffe4ef..6a0c7c138d 100644--- a/src/services/content_hash.js+++ b/src/services/content_hash.js@@ -34,7 +34,13 @@ function getSectorHashes(tableName, primaryKeyName, whereBranch) {function getEntityHashes() {const startTime = new Date();- const hashRows = sql.getRows(`SELECT entityName, entityId, hash FROM entity_changes WHERE isSynced = 1`);+ const hashRows = sql.getRows(`+ SELECT entityName,+ entityId,+ hash+ FROM entity_changes+ WHERE isSynced = 1+ AND entityName != 'note_reordering'`);// sorting is faster in memory// sorting by entityId is enough, hashes will be segmented by entityName later on anyway