Followup to [#4449]. The mongo queries on /nf/admin/add_subscribers take too long to run in production (over 30 seconds).
My recommendation for a speedup would be this: after determining the tool/app from the URL, get the package name (e.g. for tickets, the package is "forgetracker"). Then when checking the Artifact models, only do artifacts whose packages starts with "forgetracker". That should limit the number of queries quite a bit.
created #124: [#4567] Speedups needed for /nf/admin/add_subscribers (1cp)
Related
Tickets:
#4567closed #124, changes are in 42cc_4567
We have reduced the number of requests from ~30 to ~2-5 on our testing database. This should be much better, but we think that the most faster solution would be using separate input boxes for neighborhood, project, tool mount point, ticket number.
We shouldn't have a hardcoded list of tools for get_tool_package. Allura is flexible and allows many tools to be installed, so this needs to be dynamic. I think you can use
g.entry_points['tool']
to do a dynamic lookupcreated #129: [#4567] Use dynamic list of tools (1cp)
Related
Tickets:
#4567closed #129, updated 42cc_4567