View Single Post
Old 03-30-2021, 09:32 PM   #466
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by capink View Post
I am not familiar with the count pages plugin, so I cannot give a definitive answer to this.

All I can say, since those changes are going to happen on different actions, there is no risk of corruption, unless count pages starts another thread. And even in the event of a separate threads, calibre is thread safe to the best of my understanding.
Count pages should be safe. It does run in a job, so if something else updated the same columns, while it was running, you would lose that change.

Also, Count Pages supports being called directly from plugins with support for choosing which statistics to calculate and a callback function for the results. I don't remember if there is an option to suppress the prompt. It's been a while since I needed to look at it. I added this at the request of another developer for a private plugin they had.
davidfor is offline   Reply With Quote