[go: up one dir, main page]

Skip to content
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

fix(delete_chapter): Excessive number of pending callbacks warn #481

Merged
merged 3 commits into from
Nov 26, 2022
Merged

fix(delete_chapter): Excessive number of pending callbacks warn #481

merged 3 commits into from
Nov 26, 2022

Conversation

SkillGG
Copy link
Collaborator
@SkillGG SkillGG commented Nov 25, 2022

Make deleting chapters do 5 coccurent deletion at a time, thus removing the Excessive number of pending callbacks warn.

Sometimes there would be "Excessive number of pending callbacks" warn shown.
Removing chapters in batches of 10 (I tried 30 but it was still an issue) seems to work fine now.
TODO: Add some icon about deletion status and make it not lag the entire app.
Make deleting chapters do 3 coccurent deletion at a time making it work similarly to bluebird's `Promise.map(,{coccurent:3})` and removing the `Excessive number of pending callbacks` warn gone.
Copy link
Member
@rajarsheechatterjee rajarsheechatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we should use a single SQLite query to delete multiple records.

@rajarsheechatterjee rajarsheechatterjee merged commit 3cb5736 into LNReader:main Nov 26, 2022
@SkillGG
Copy link
Collaborator Author
SkillGG commented Nov 26, 2022

Oh yeah. I forgot something like that was an option. I learned fuck ton of SQL in school. I'm going to try and do that tomorrow and see if it works

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants