-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
SQLiteException: [SQLITE_TOOBIG] When searching for ♾ symbol #1428
Comments
How many books have this ♾ symbol in their name ? |
Looks like the lucene query returns 97602 results for that symbol, is that accurate ? |
That was the question I was trying to answer by searching. Off the top of my head I think like 3 have it. |
would you be able to check in the DB directly maybe ?
|
Do you have any hints as to what table to look at for this? With there being so few entries that might have this, I'm not sure where to start looking. |
select *
from BOOK_METADATA
where TITLE like '%♾%'; should do the trick |
Returned 0 results. I know there is a at least 1 that has it. However I was able to reproduce the same behavior with Database returns 1 result, while komga throws the SQLITE_TOOBIG error and seems to return every single series that exists. |
This is different. The Lucene parser does not register |
I'll need to go through my library another way then and find the issue that has the ♾ in it. Normally komga is how I search for stuff like this. Once I find it I'll bring it up here. |
For context, here is how the API works:
What i can't understand is why the lucene query returns so many results in your case when using The way it's done is not the best admittedly, but is the only way to ensure there's enough results when searching with both a search term and some conditions. Fixing this would require splitting the search API in 2, with one endpoint exclusively for full text search via lucene, and one endpoint allowing for multiple conditions, but no lucene search, only a classic SQL 'like' search. |
i was thinking of capping the search results to 1000 at max. That would prevent the If your search returns more than 1000 results, it's probably not a good criteria for searching, right? |
That sounds good to me. Having a cap also makes sense so you don't try to return the entire catalog. I wrote a few scripts to look for the ♾symbol but couldn't find it. It might not of been in the filename, but something that was included in the metadata for an issue. |
* deps(webui): bump sanitize-html from 2.11.0 to 2.12.1 in /komga-webui Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1. - [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md) - [Commits](apostrophecms/sanitize-html@2.11.0...2.12.1) --- updated-dependencies: - dependency-name: sanitize-html dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix(api): cap search results to avoid SQLITE_TOOBIG Closes: gotson#1428 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gauthier Roebroeck <[email protected]>
* deps(webui): bump sanitize-html from 2.11.0 to 2.12.1 in /komga-webui Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1. - [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md) - [Commits](apostrophecms/sanitize-html@2.11.0...2.12.1) --- updated-dependencies: - dependency-name: sanitize-html dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix(api): cap search results to avoid SQLITE_TOOBIG Closes: gotson#1428 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gauthier Roebroeck <[email protected]>
* deps(webui): bump sanitize-html from 2.11.0 to 2.12.1 in /komga-webui Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1. - [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md) - [Commits](apostrophecms/sanitize-html@2.11.0...2.12.1) --- updated-dependencies: - dependency-name: sanitize-html dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix(api): cap search results to avoid SQLITE_TOOBIG Closes: gotson#1428 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gauthier Roebroeck <[email protected]>
* deps(webui): bump sanitize-html from 2.11.0 to 2.12.1 in /komga-webui Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1. - [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md) - [Commits](apostrophecms/sanitize-html@2.11.0...2.12.1) --- updated-dependencies: - dependency-name: sanitize-html dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix(api): cap search results to avoid SQLITE_TOOBIG Closes: gotson#1428 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gauthier Roebroeck <[email protected]>
* deps(webui): bump sanitize-html from 2.11.0 to 2.12.1 in /komga-webui Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1. - [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md) - [Commits](apostrophecms/sanitize-html@2.11.0...2.12.1) --- updated-dependencies: - dependency-name: sanitize-html dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix(api): cap search results to avoid SQLITE_TOOBIG Closes: gotson#1428 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gauthier Roebroeck <[email protected]>
* deps(webui): bump sanitize-html from 2.11.0 to 2.12.1 in /komga-webui Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1. - [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md) - [Commits](apostrophecms/sanitize-html@2.11.0...2.12.1) --- updated-dependencies: - dependency-name: sanitize-html dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix(api): cap search results to avoid SQLITE_TOOBIG Closes: gotson#1428 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gauthier Roebroeck <[email protected]>
* deps(webui): bump sanitize-html from 2.11.0 to 2.12.1 in /komga-webui Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1. - [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md) - [Commits](apostrophecms/sanitize-html@2.11.0...2.12.1) --- updated-dependencies: - dependency-name: sanitize-html dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix(api): cap search results to avoid SQLITE_TOOBIG Closes: gotson#1428 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gauthier Roebroeck <[email protected]>
🎉 This issue has been resolved in |
Steps to reproduce
Search for ♾symbol in komga search bar
Expected behavior
Issues that have the emoji in them should show up
Actual behavior
A 3MB error log is produced. I've linked to it in the discord channel.
https://discord.com/channels/678794935368941569/678795177393127424/1206719317782306897
Logs
https://discord.com/channels/678794935368941569/678795177393127424/1206719445632819250
Komga version
1.10.3
Operating system
Linux
Installation method
Docker
Other details
Looks like this might be similar to #940
Acknowledgements
The text was updated successfully, but these errors were encountered: