View Single Post
Old 09-21-2024, 04:52 PM   #718
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,466
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Comfy.n View Post
Hi!

I got a chain that runs on event 'Book list Double Clicked". It works fine but I wonder if there's some hacky advancement that could accelerate it.

First action is open book.

Second action is a standard Single field edit that just sets a #lastread column date.

Third action is:
program:
$$#timesread + 1


Fourth action is:
program:
list_union(strcat(format_date($$#lastread, 'dd-MM-yyyy hh:mm:ss')), $#readdates, ',')


I remember I've asked chaley to convert some advanced emblem rules for cover grid to PTM instead of GPM. Would this be a case where such a conversion can produce speed improvements?
If this is run on a single book when double-clicked then I wouldn't worry about performance. It only runs once per double-click. The template processing time will be swamped by the time required to open the book.

I assume that actions 3 and 4 are Single Field Edit where the result of the computation is stored in the appropriate cell for the current book -- the one double-clicked.
chaley is offline   Reply With Quote