View Single Post
Old 09-14-2021, 08:02 AM   #701
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,198
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Question: I have several cleanup chains that modify multiple columns in a row. Unfortunately Last Modified seems to trigger for all of them which causes a slight pause between each action; running the chain with my column turned off sped things up considerably.

Is there a way to alleviate this, such as making it trigger only on the last change?
I think I have a solution for this now. I will add a hibernation mode for the Last Modified plugin, which can be activated by other plugins. During this hibernation period, the plugin will listen to and cache db events without taking any action. After getting out of the hibernation mode, it will re-emit one db event per field (for all books) to enhance performance.

This will need modifications to both Last Modified and Action Chains, and will only be released after the release of the next version of calibre.

Last edited by capink; 09-14-2021 at 08:28 AM.
capink is offline   Reply With Quote