Bug 425980 - Search freezes on large collection
Summary: Search freezes on large collection
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Engine (show other bugs)
Version: 7.0.0
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-30 12:54 UTC by james
Modified: 2023-10-23 20:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description james 2020-08-30 12:54:32 UTC
SUMMARY


STEPS TO REPRODUCE
1. Start digikam with a large collection (say, 374,690 images)
2. Click Tools -> Search
3. There's no step 3

OBSERVED RESULT

Digikam freezes for 2-5 minutes while showing the first few photos of the collection. When the UI unfreezes, the status bar shows "(1 of 374,690)". Typing one letter into the search box causes the UI to freeze again. Waiting again eventually allows text entry, and the search to complete.

Additionally, if you exit digikam at this point, upon next launch it will start on the search screen and commence the 2-5 minute wait again.

EXPECTED RESULT

The search UI remains responsive and allows the user to enter a search term and then search for it.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 20.04.1 running XFCE
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Hardware: Database on Samsung EVO 970 EVO Plus SSD, images on btrfs RAID1 HDDs, Ryzen 3700X CPU, 32GB RAM.

I speculate that the initially empty search box is causing digikam to attempt to process every item in the collection, which becomes infeasible for a large collection.
Comment 1 Maik Qualmann 2020-08-30 13:07:29 UTC
*** This bug has been marked as a duplicate of bug 411099 ***
Comment 2 caulier.gilles 2023-10-23 14:48:46 UTC
@James,

The digiKam 8.2.0 pre-release for Windows is available for testing :

https://files.kde.org/digikam/

Problem still reproducible on your computer ?

Thanks in advance

Gilles Caulier
Comment 3 james 2023-10-23 20:23:01 UTC
I re-tested with 8.0 and there is no longer a freeze when opening the search tool. Thank you!
Comment 4 caulier.gilles 2023-10-23 20:23:38 UTC
Fixed with 411099