We have a ton of data in project manager and logger and it is starting to get quite slow so I've been trying to optimize a lot of the queries by adding some missing indexes. So far the changes have sped up project manager quite a bit and I hope to add them into the next release.
There is still however one query that I haven't been able to speed up. On my machine it takes on average 5 seconds to execute pretty much nullifying the rest of the speed games.
The query is select_users from logger/lib/entries.xql.
If anyone has any suggestions I'd love to hear them.
Here it is:
select submitter.first_names || ' ' || submitter.last_name as label,
submitter.user_id as user_id
from cc_users submitter,
logger_entries le,
acs_objects ao
where ao.object_id = le.entry_id
and submitter.user_id = ao.creation_user
and exists (select 1
from logger_project_pkg_map
where project_id = le.project_id
and package_id = :package_id)
group by submitter.user_id, submitter.first_names, submitter.last_name