View Single Post
Old 12-24-2021, 06:44 AM   #248
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,050
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Mainly out of curiosity: Suppose you have a column with a single unmodified function, e.g. virtual_libraries(). Would there be any performance impacts involved in calling the #virtual_library column rather than the function directly?

(I'm also thinking -- if for some reason I were to change the column in the future, calling #virtual_libraries would avoid needing to change the function on all the templates calling it.)

Also, I can't quite remember: In search, it's possible to do inclusive ands/ors with parentheses, e.g.:
#columnA:foobar AND (#columnB:foo OR #columnC:bar)

Would the best way to do this would to with a "IF foobar THEN foo||bar" type thing, or can the checks be done in the first IF?

Thanks and merry Christmas (or whatever holiday you celebrate).

Last edited by ownedbycats; 12-24-2021 at 06:46 AM.
ownedbycats is offline   Reply With Quote