Thanks for clarifying why it happens. That has to be it since I just made quite a few columns from other columns and some of them are custom columns from others behaving like tags. The more complicated ones aren't checked to show in tag browser.
I have like 4 columns which are categorized tags: I extract genres, character qualities and similar from tags and shelves to make more manageable lists. The most complicated one combines two lists and extracts 3 previous made lists. So I get that it might take a lot of cpu.
Quote:
Originally Posted by chaley
]One thing you might try: general program mode templates ("program: ...") evaluate faster than the other modes because they are lexically analyzed once instead of on each use. If translating a template to GPM isn't too hard, then you might consider doing that.
|
Damn I just yesterday started getting the hang of templates

. Will have to see the program mode templates, hope it isn't much harder. For me the "grammar" is hardest to get, after that it's not hard.
If it's too hard I can live with freezing up a little

. Can be smart and use search instead of tag browser while editing metadata.
So making a lot of columns is ok, as long as they aren't composite columns from other columns, behaving like tags? Only these make it harder? Just don't want to redo a lot to have the same result

. I already removed many columns as I thought they could be the cause (didn't lose any data, just changed how it is shown). Simple columns from other columns are ok too?
And is it possible to remove items from preferenes>look and feel>book details? It's a mess, I have trouble finding things. It seems that even if I just rename a column, the old title remains in there, so renaming column leaves me with 2 columns in that list. I have almost 30 unnecessary columns in there.
Update. Damn. I just read Using general program mode and have no idea how to use it. I'm useless without examples

. And is it an example in there
http://manual.calibre-ebook.com/temp...l-program-mode ? Like you post all that and get a result? Where do you even post it?
I just checked and I think that 3 of the 4 my mentioned columns are made with GPM

(if indication is the word 'program:"). I'm not familiar enough to separate them yet by anything else. So only one column (behaving like tags) made with simple template. Will see if it's possible to remake.
Here how they look (all 3 basically the same only values different):
Code:
program:
list_union(
list_intersection(field('tags'), 'Action, Adventure, Contemporary, Crime', ','),
list_intersection(field('#shelf'), 'Action, Adventure, Contemporary, ', ','),
',')
So maybe I do have an example
I think I did it (not neatly but it works):
Code:
program:
list_sort(
list_difference(list_union(field('#shelf'), field('tags'), ','),
list_union(list_union(field('#genre'), field('#length'), ','), field('#character'), ','), ','),0,',')
So this is GPM? Or no? Where else could I find info on it? Since it looks almost completely the same, just word program in beginning and a few tweaks.
Is this better than:
Code:
{:'list_sort(list_difference(list_union(field('#shelf'), field('tags'), ','), list_union(list_union(field('#genre'), field('#length'), ','), field('#character'), ','),','),0,',')'}
Performance doesn't seem to have changed. Might be slower now

. Definitely slower, up to 3-4 mins instead of 2...

But moving to another library works smoothly now... It used to freeze too. Now freezes only for metadata changes but longer
Update. I edited the code, there was no space in original, just here