Lace2 icon indicating copy to clipboard operation
Lace2 copied to clipboard

simplify code for presenting list of available image sets

Open brobertson opened this issue 4 years ago • 2 comments

This is a 5x speedup:

for $imageset in //lace:imagecollection
    let $text := $imageset/dc:identifier
    order by $imageset/dc:creator[0]
    return 
        if (exists(//lace:run[dc:identifier = $text]))
        then
            <yes>{$text}</yes>
        else 
           <no>{$text}</no>

brobertson avatar Feb 05 '21 15:02 brobertson

fix also app:countCatalog and app:get-lace-version

brobertson avatar Feb 05 '21 15:02 brobertson

in general, check for 'collection('/db/apps')' because this is something that really drags things down.

brobertson avatar Feb 05 '21 15:02 brobertson