Bug 402182 - Searching for snaps takes a long time
Summary: Searching for snaps takes a long time
Status: REPORTED
Alias: None
Product: Discover
Classification: Applications
Component: Snap Backend (show other bugs)
Version: 5.15.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-16 08:10 UTC by Felipe Peter
Modified: 2024-07-09 11:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Peter 2018-12-16 08:10:45 UTC
SUMMARY
Searching for snaps like PyCharm and CLion takes a very long time compared to CLI output.

STEPS TO REPRODUCE
1. Start Discover and search for "clion"

OBSERVED RESULT
The search result for the snap appears after 3:48 minutes. 

EXPECTED RESULT
Comparable search time to using "snap find clion" in konsole.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.14
KDE Plasma Version: 5.14.4
Qt Version: 5.11.2
KDE Frameworks Version: 5.53.0
Kernel Version: 4.15.0-42-generic
OS Type: 64-bit

ADDITIONAL INFORMATION
Initially searching for PyCharm and CLion took ages, but after that the search was a lot faster, even for other snaps. While Discover was taking its time to find the snaps I tried the CLI option and found the snaps immediately, so snapcraft was definitely available.
Comment 1 blackfireburn 2018-12-17 19:38:38 UTC
just tested on my kde neon 5.14.4 searched for snaps i have never looked for before and they came up within a second.
i am using and SSD
KDE Frameworks 5.53.0
Qt 5.11.2 (built against 5.11.2)

what hardware are you running this on?
Comment 2 Felipe Peter 2018-12-18 01:31:24 UTC
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 15.6 GiB of RAM
256GB SSD

I just rebooted my computer, started Discover and searched for PyCharm. It took 3 minutes to get search results. Again, using the CLI yielded results in <1 second. After finding PyCharm, all subsequent searches for snaps in Discover also returned results within a second.

Let me know if I can somehow help tracking down the problem.
Comment 3 Felipe Peter 2019-02-26 14:05:35 UTC
Still existent in 5.15.1.

CLI search for snap finishes in <1s. Discover takes >1 min.

Is there a way to debug this?