Closed scott-eddy closed 1 year ago
This was caused because in my "YPG" folder I had numerous sub-folders that contained e.g. software repositories that didn't have markdown files but also had their own sub-directories for e.g. virtual environments. I (perhaps naively) thought QOwnNotes would be able to rapidly walk these sub-directories to look for markdown files and only load these.
When moving these non markdown notes folders out of the parent-directory transitioning between folders works smoothly as expected.
Going to close this since no action is really necessary. Perhaps adding a warning about sub-directories not containing notes in the documentation would be useful, but certainly not a bug
Traversing a huge amount of files always takes time. 😅 And since attachments and media files are also in the note folder a warning wouldn't make sense.
Expected behaviour
Changing between notes folders should happen quickly with little CPU load
Actual behaviour
When changing between folders I have loaded for notes my system experiences high CPU load by the QOwnNotes process and the UI becomes unresponsive. For reference I have the following folders loaded into QOwnNotes: When transitioning folders from "default" to "YPG" I experience the most notable UI freeze and high system load The UI freeze persists for about 3 minutes 35 seconds but after the application becomes responsive again the system load reduces substantially: As a point of reference the "YPG" folder has 3510 untagged notes (these were markdown files I created prior to using QOwnNotes).
Note that switching back to the "default" folder also experiences a ui freeze and high system load but only for 8seconds. This folder only has 1 note
Steps to reproduce
switch between folders and observe a UI delay and high system load, especially present on folders with large amounts of notes
Output from the debug section in the settings dialog
Expand
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Thu Sep 7 13:19:26 2023` **Version**: `23.9.0` **Build date**: `Aug 31 2023` **Build number**: `1051` **Platform**: `macosx` **Operating System**: `macOS 12.6` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `/Users/escott/Library/Preferences/com.pbe.QOwnNotes.plist` **Application database path**: `/Users/escott/Library/Application Support/PBE/QOwnNotes/QOwnNotes.sqlite` **Application arguments**: `/Applications/QOwnNotes.app/Contents/MacOS/QOwnNotes` **Qt Debug**: `0` **Locale (system)**: `en_US` **Locale (interface)**: *empty* **Primary screen resolution**: `2560x1080` **Screen resolution(s)**: `2560x1080, 1920x1080` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `3510` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info **serverUrl**: *empty* **appIsValid**: `yes` **notesPathExists**: *empty* **serverVersion**: *empty* **appVersion**: *empty* ## Spellchecking **Enabled**: `false` **Selected language**: *empty* **Language codes**: *empty* **Language names**: *empty* **Application dictionaries path**: `/Users/escott/Library/Application Support/PBE/QOwnNotes/dicts` ## Note folders **currentNoteFolderId**: `4` ### Note folder `default` **id**: `1` **isCurrent**: `no` **activeTagId**: `-1` **localPath**: `/Users/escott/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/Users/escott/Notes/notes.sqlite` ### Note folder `GroupLead` **id**: `2` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `/Users/escott/GroupLead` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/Users/escott/GroupLead/notes.sqlite` ### Note folder `DivisionLead` **id**: `3` **isCurrent**: `no` **activeTagId**: `-1` **localPath**: `/Users/escott/DivisionLead` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/Users/escott/DivisionLead/notes.sqlite` ### Note folder `YPG` **id**: `4` **isCurrent**: `yes` **activeTagId**: `0` **localPath**: `/Users/escott/YPG` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/Users/escott/YPG/notes.sqlite` ## Cloud connections ### Cloud connection `Default` **id**: `1` **isCurrent**: `yes` **serverUrl**: *empty* **username**: *empty* **accountId**: *empty* ## Enabled scripts ## Settings **646F6E7A_00000000_00000001_6E7A6361_696D6963** (qlonglong): `0` **AKLastCheckInAttemptDate** (QDateTime): `2020-06-22T09:02:00.520` **AKLastCheckInSuccessDate** (QDateTime): `2020-06-22T09:02:34.636` **AKLastEmailListRequestDateKey** (QDateTime): `2021-02-27T21:06:21.281` **AKLastIDMSEnvironment** (qlonglong): `0` **ASIX Elec/ Corp/ AX88179** (QString): `1` **ASIX Elec/ Corp/ AX88772B** (QString): `1` **ATMEL ASF CDC Virtual Com** (QString): `1` **ATMEL ASF CDC and MSC** (QString): `1` **ATMEL AVRISP mkII** (QString): `1` **ATMEL HIDBLDR** (QString): `1` **ActiveNoteHistoryItem** (NoteHistoryItem): `