You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
Desktop: Optimised sidebar rendering speed
This commit is contained in:
@@ -156,6 +156,8 @@ class BaseItem extends BaseModel {
|
||||
}
|
||||
|
||||
static async loadItemsByIds(ids) {
|
||||
if (!ids.length) return [];
|
||||
|
||||
const classes = this.syncItemClassNames();
|
||||
let output = [];
|
||||
for (let i = 0; i < classes.length; i++) {
|
||||
|
||||
@@ -109,6 +109,7 @@ class Tag extends BaseItem {
|
||||
|
||||
static async tagsByNoteId(noteId) {
|
||||
const tagIds = await NoteTag.tagIdsByNoteId(noteId);
|
||||
if (!tagIds.length) return [];
|
||||
return this.modelSelectAll(`SELECT * FROM tags WHERE id IN ("${tagIds.join('","')}")`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user