attempt to make updating clients via websocket faster

This commit is contained in:
zadam
2019-12-02 22:27:06 +01:00
parent dc063983ea
commit eb8c296e62
5 changed files with 73 additions and 35 deletions

View File

@@ -125,7 +125,8 @@ async function getEditedNotesOnDate(req) {
SELECT noteId FROM note_revisions
WHERE note_revisions.dateLastEdited LIKE '${date}%'
)
ORDER BY isDeleted`);
ORDER BY isDeleted
LIMIT 50`);
for (const note of notes) {
const notePath = noteCacheService.getNotePath(note.noteId);