Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify code for presenting list of available image sets #132

Open
brobertson opened this issue Feb 5, 2021 · 2 comments
Open

simplify code for presenting list of available image sets #132

brobertson opened this issue Feb 5, 2021 · 2 comments

Comments

@brobertson
Copy link
Owner

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 brobertson added this to the v0.6.18 milestone Feb 5, 2021
@brobertson
Copy link
Owner Author

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

@brobertson
Copy link
Owner Author

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

@brobertson brobertson removed this from the v0.6.19 milestone Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant