Is there any speed difference basing a virtual library query on a composite column, or on a direct template?
Example:
#readstatus
Code:
program:
status = readstatus();
times = $$#timesread;
switch_if(
status=='currentlyreading' && times>#0, 'Currently Rereading',
status=='currentlyreading', 'Currently Reading',
status=='toberead' && times>#0, 'To Be Reread',
status=='toberead', 'To Be Read',
status=='read', 'Read',
status=='unread' && 'readinggoal:' in $#admintags, 'Backlog',
status=='unread', 'Unread',
status=='didnotfinish', 'Did Not Finish',
''
)
Either I can use
#readstatus:"=Backlog"
or
a template search with
program: readstatus()=='unread' && 'readinggoal:' in $#admintags