-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query with multiple hashtags very slow #112
Comments
I tested this a bit and can confirm that query performance degrades when using multiple tags. However in my tests (also on a RPie 4) I would need to add a lot more than 2 tags and even then the query would resolve in a few seconds (which is still too slow IMO, but far better than what you are experiencing). Specifically for the use-case described here - for 500 bookmarks and 2 tags in the query 1 minute would be extremely bad. I see two possible issues here:
|
Hi, |
I found that the search speed is ok if I comment the below lines 98-101 from bookmarks/queries.py. Can some optimization be done on those lines?
|
ulixxe's suggestion solves the problem in my case, too. |
I am running linkding in a docker container (following the instructions on this page) on a Raspberry4 under a current RaspianOS 32bit with ~500 bookmarks which works very well so far.
The response is quick when searching for a single hashtag, however it can be very long (up to a minute) when combining multiple hashtags in a query (#tag1 #tag2). This is particularly true when that query yields more than just a few results.
I was wonderung whether the database query can be optimized for speed.
Kind regards,
(PS great project).
The text was updated successfully, but these errors were encountered: