wbernard / Memorado

Memorize anything
https://bernard.im/memorado
GNU General Public License v3.0
15 stars 6 forks source link

Performance issue (delayed typing) in the deck name field #63

Open amethystgosling163 opened 3 months ago

amethystgosling163 commented 3 months ago

https://github.com/user-attachments/assets/e42b81ea-419e-4f29-b2af-5f84ad9a300b

As you can see the performance issue only exists in the flashcard front and back input field but not in the deck name field.

My System Information


Hardware Information:

Software Information:

valeb commented 1 month ago

The issue is linked to the fact that the SQL DB is called on every keystroke. This could be refactored to perform a "cheap" update on keystroke and only call SQL to "save". Help is appreciated :)