nuttyartist / notes

Fast and beautiful note-taking app written in C++. Write down your thoughts.
https://www.get-notes.com
Mozilla Public License 2.0
3.6k stars 316 forks source link

Noises produced when database is placed on a mechanical HDD. #594

Open glecas opened 1 year ago

glecas commented 1 year ago

Putting the database file on a mechanical HDD produces noise every time I scroll in notes. 😞 Tried two different HDDs... The WD is noisier than the Toshiba. It's normal for them to make noises when being used of course.

They are "traditional" HDDs and I am used to hearing them as they work. But having the sound of a helicopter just at the slightest scroll is very irritating. The noise is loud and lasts as long as I am scrolling. The moment I stop scrolling, the noises stop immediately.

Moving the database to an SSD = of course no sound is produced.

Notes version: 2.1.0 OS: Windows 11 version 22H2 (22621.1848)

HDDs tested:

movrajr commented 11 months ago

There's definitely disk activity when scrolling. Most of it involves writing to notes.db-journal.

image

movrajr commented 11 months ago

Might be caused by writing the scrollbar_position to the database in notelistdelegateeditor.cpp I think.

zjeffer commented 11 months ago

Thanks for reporting. I think we should maybe only write certain data every x seconds, instead of on every change.

nuttyartist commented 11 months ago

Thanks for reporting. I think we should maybe only write certain data every x seconds, instead of on every change.

Especially not everytime the scrolling position changes, I noticed that yesterday as well.