Bug 453678

Summary: Startup extremely laggy and slow due to long library scan
Product: [Applications] Elisa Reporter: Danny Medina <lyrixcaz>
Component: balooAssignee: Matthieu Gallien <matthieu_gallien>
Status: RESOLVED FIXED    
Severity: major CC: bugseforuns, local10, nate, trmdi
Priority: VHI Keywords: usability
Version First Reported In: 22.04.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: This is how it looks when you try to use it upon launching..
This is how it looks when you try to use it upon launching.

Description Danny Medina 2022-05-11 23:09:15 UTC
Created attachment 148748 [details]
This is how it looks when you try to use it upon launching..

SUMMARY
***
Elisa conducts a startup scan [which in my opinion should be in the options to toggle on/off] I have alot of music and i find myself having to wait almost a minute to actually operate the UI  otherwise there will be alot of UI latency and sluggishness. I tried setting elisa to use direct scanning to see if the issue remained but it still does it.
***


STEPS TO REPRODUCE
1. close and quit Elisa
2. launch elisa
3. behold

OBSERVED RESULT
Sluggishnes, click delays, top-right notification in elisa says "Scanning music..." for somewhat of a long time until it finishes. 

EXPECTED RESULT
The UI is responsive after it finished scanning for music.. this happens every single time elisa is launched. Naturally there would be some UI sluggishness because its scanning, but it doesnt need to scan every single time i launch it, it hurts the experience.

Operating System: openSUSE Tumbleweed 20220509
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.2
Kernel Version: 5.17.5-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION

Nothing else pertaining to this but, as an addition, the music player clementine has the option to allow you to continue playing from the track you left off and is quick and responsive and allows you to conduct on demand scanning to not slow things down. Elisa should be able to do the same indeed, but this scanning issue is preventing that from happening  [I think if you have alot of music in  your home folder this happens since it scans all music upon startup]
Comment 1 Danny Medina 2022-05-11 23:12:03 UTC
Created attachment 148749 [details]
This is how it looks when you try to use it upon launching.

This is how it looks when you try to use it upon launching..
Comment 2 Nate Graham 2022-05-12 15:07:29 UTC
Yeah, can confirm.
Comment 3 trmdi 2022-05-16 18:55:53 UTC
Does it scan whenever it is launched? Shouldn't it only scan on the first launch?
Comment 4 Nate Graham 2022-05-16 19:01:49 UTC
It has to re-scan to find any music you've added since it was last launched.

It shouldn't be so slow and intrusive, though.
Comment 5 Patrick Silva 2022-05-16 19:21:44 UTC
My music library has thousands of files stored in a slow and almost full hard disk, and I rarely add/remove files to/from it.
Baloo is disabled and the scan that Elisa does every time it starts makes my system slower and barely usable.
I think we should have an option to disable automatic scan when Elisa starts.
Comment 6 Nate Graham 2022-05-16 19:24:25 UTC
See https://invent.kde.org/multimedia/elisa/-/merge_requests/256 for that.
Comment 7 Patrick Silva 2022-05-29 11:58:32 UTC
(In reply to Nate Graham from comment #6)
> See https://invent.kde.org/multimedia/elisa/-/merge_requests/256 for that.

it was merged.
Comment 8 Patrick Silva 2022-08-05 15:12:38 UTC
*** Bug 457510 has been marked as a duplicate of this bug. ***