mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-03 21:34:30 +08:00
The function was doing a full table scan of all private role-to-email mappings on every call, even though each caller only needs a small subset. On large instances like usegalaxy.org this scans hundreds of thousands of rows unnecessarily. Pass role_ids at all non-admin call sites so the query uses an IN clause instead of scanning the entire user_role_association table. Fixes https://github.com/galaxyproject/galaxy/issues/20469 Fixes GALAXY-MAIN-11Q0