mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
don't compare hashes of note_reordering entity_changes
This commit is contained in:
parent
43ac712fca
commit
18b13657fd
@ -34,7 +34,13 @@ function getSectorHashes(tableName, primaryKeyName, whereBranch) {
|
|||||||
function getEntityHashes() {
|
function getEntityHashes() {
|
||||||
const startTime = new Date();
|
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 is faster in memory
|
||||||
// sorting by entityId is enough, hashes will be segmented by entityName later on anyway
|
// sorting by entityId is enough, hashes will be segmented by entityName later on anyway
|
||||||
|
Loading…
x
Reference in New Issue
Block a user