-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Can't delete huge libraries #1848
Comments
can you provide the full log file with the exception ? |
how many series do you have ? |
As many series as books so 88k. Used "/" on the oneshot pattern to force it that way. Here's the log. I truncated a portion of it because it literally prints every series ID when trying to delete so goes well beyond the limits of pastebin I must admit that was some testing I did once I now I have a more sane library size. Just wanted to get rid of the existing old one without nuking my entire database. |
i've got a fair idea where the issue lies, trying to reproduce on my end |
I managed to reproduce, a massive number of series is actually required to trigger this error. With 54k series it would not trigger, had to go up to 100K series to get it. |
I've applied a quick fix. The Library deletion API is still synchronous, and thus the webui could hang for a while or even timeout while the deletion is happening. In a future version the deletion should happen asynchronously as to not block the frontend. |
Built a docker image from master, successfully deleted the library this time and then run a vacuum to recover the space without hiccups. Thanks a lot!
|
🎉 This issue has been resolved in |
Steps to reproduce
Expected behavior
The library should be gone.
Actual behavior
It fails because of SQLITE_TOOBIG:
I guess the deletion should be broken down in smaller statements to avoid failures.
Logs
Komga version
v1.19.0-master
Operating system
Arch Linux
Installation method
Docker
Other details
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: