Hi Timon and OpenLP Team,
First off, thank you for all the work you’ve put into OpenLP—it’s been a fantastic tool for our church, and version 3.0.2 has served us reliably.
I have been trying to look at what the issue was with 3.1.6 , if you reduce the size of the SONG database it does get faster when clearing the search or deleting the text. its always the last letter to be deleted which causes CPU to go to 50% for X seconds .
but the issue Specifically seems to be:
- Typing a search term like “Where You Go I Go” works fine.
- But deleting the search string—especially down to a single letter like “w”—causes OpenLP to freeze or become unresponsive for several seconds.
- It appears that the live search is triggered on every keystroke, including deletes, and attempts to match all songs containing that single character. This overwhelms the CPU and causes delays.
Suggested Fix:
A simple solution might be to implement a minimum search length threshold (e.g. 3 characters) before triggering the live search. This would prevent unnecessary queries on single letters and improve performance for users with large databases.
I'm not a coder so don't know if what you have done is a better solution or if this would improve things further as there is little point in searching the whole Database for a single letter or even 2.
I’d be happy to help test or provide logs if needed. Thanks again for your work on this project—it’s deeply appreciated.
Best regards,
Marcus