mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
caching initial noteset to improve search times
This commit is contained in:
@@ -95,7 +95,7 @@ class Note extends AbstractEntity {
|
||||
/** @param {Attribute[]} */
|
||||
this.targetRelations = [];
|
||||
|
||||
this.becca.notes[this.noteId] = this;
|
||||
this.becca.addNote(this.noteId, this);
|
||||
|
||||
/** @param {Note[]|null} */
|
||||
this.ancestorCache = null;
|
||||
@@ -1087,7 +1087,7 @@ class Note extends AbstractEntity {
|
||||
beforeSaving() {
|
||||
super.beforeSaving();
|
||||
|
||||
this.becca.notes[this.noteId] = this;
|
||||
this.becca.addNote(this.noteId, this);
|
||||
|
||||
this.dateModified = dateUtils.localNowDateTime();
|
||||
this.utcDateModified = dateUtils.utcNowDateTime();
|
||||
|
||||
Reference in New Issue
Block a user