You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider adding some additional DB indices for performance on the dashboard.
On the dashboard, a few queries look expensive, and indices look like they would help.
However, the overall page load is not slow and the indices seem to only help marginally.
As a result, adding these at the moment is probably not worth doing. But in future if things are slow, these are potential improvements.
Querying a member's role on a slice by member URN and slice URN would be faster given and index on sa_slice(slice_urn, slice_id) as it joins across that table.
Sample query:
Fetching the member URN for a list of member_ids is slow. Adding an index on ma_member_attribute(member_id, name, value) helps a bit. Sample query:
SELECTma_member_attribute.valueAS ma_member_attribute_value, ma_member_attribute.member_idAS ma_member_attribute_member_id
FROM ma_member_attribute
WHERE ma_member_attribute.member_id IN ('f4dfc8c6-0b1e-4453-a438-b8ff58fafdae', 'f4dfc8c6-0b1e-4453-a438-b8ff58fafdae', 'f4dfc8c6-0b1e-4453-a438-b8ff58fafdae', 'f4dfc8c6-0b1e-4453-a438-b8ff58fafdae', 'f4dfc8c6-0b1e-4453-a438-b8ff58fafdae', 'd2909ac7-11ff-4206-8fb6-0ef88c6b945b', 'c9c4db82-8b12-4f2e-af68-a7abeb0da5d7', 'd2909ac7-11ff-4206-8fb6-0ef88c6b945b', 'd2909ac7-11ff-4206-8fb6-0ef88c6b945b', 'f4dfc8c6-0b1e-4453-a438-b8ff58fafdae', '41dc9c8e-80a7-44ca-ae3c-8c2ad4fe52b4', 'd2909ac7-11ff-4206-8fb6-0ef88c6b945b', '41dc9c8e-80a7-44ca-ae3c-8c2ad4fe52b4', 'd2909ac7-11ff-4206-8fb6-0ef88c6b945b', '41dc9c8e-80a7-44ca-ae3c-8c2ad4fe52b4', '41dc9c8e-80a7-44ca-ae3c-8c2ad4fe52b4', 'c9c4db82-8b12-4f2e-af68-a7abeb0da5d7', '41dc9c8e-80a7-44ca-ae3c-8c2ad4fe52b4', '41dc9c8e-80a7-44ca-ae3c-8c2ad4fe52b4', '41dc9c8e-80a7-44ca-ae3c-8c2ad4fe52b4', 'c9c4db82-8b12-4f2e-af68-a7abeb0da5d7', 'df275ee5-1029-41f3-ad3a-fbd5758987cb', 'f4dfc8c6-0b1e-4453-a438-b8ff58fafdae', 'd2909ac7-11ff-4206-8fb6-0ef88c6b945b', '1f1b1246-e8f5-4f03-bf72-118d9564a05b') AND ma_member_attribute.name = 'urn'
Getting open join requests by project lead (not project) gets better with an index on pa_project_member_request(requestor, context_id, status). Sample sql:
SELECTpa_project_member_request.statusAS pa_project_member_request_status, ma_member_attribute_1.valueAS lead_urn, ma_member_attribute_2.valueAS requestor_urn
FROM pa_project_member_request, ma_member_attribute AS ma_member_attribute_1, ma_member_attribute AS ma_member_attribute_2, pa_project_member AS pa_project_member_1
WHEREpa_project_member_1.member_id=ma_member_attribute_1.member_idANDpa_project_member_request.requestor=ma_member_attribute_2.member_idANDma_member_attribute_1.name='urn'ANDma_member_attribute_2.name='urn'ANDma_member_attribute_1.valueIN ('urn:publicid:IDN+ch1.gpolab.bbn.com+user+agosain', 'urn:publicid:IDN+ch1.gpolab.bbn.com+user+nriga', 'urn:publicid:IDN+ch1.gpolab.bbn.com+user+ahelsing', 'urn:publicid:IDN+ch1.gpolab.bbn.com+user+hdempsey', 'urn:publicid:IDN+ch1.gpolab.bbn.com+user+tmitchel', 'urn:publicid:IDN+ch1.gpolab.bbn.com+user+sedwards', 'urn:publicid:IDN+ch1.gpolab.bbn.com+user+mbrinn') ANDma_member_attribute_2.valueIN ('urn:publicid:IDN+ch1.gpolab.bbn.com+user+ahelsing') ANDpa_project_member_request.context_id=pa_project_member_1.project_idANDpa_project_member_1.roleIN (1, 2) ANDpa_project_member_request.status=0
The text was updated successfully, but these errors were encountered:
Consider adding some additional DB indices for performance on the dashboard.
On the dashboard, a few queries look expensive, and indices look like they would help.
However, the overall page load is not slow and the indices seem to only help marginally.
As a result, adding these at the moment is probably not worth doing. But in future if things are slow, these are potential improvements.
sa_slice(slice_urn, slice_id)
as it joins across that table.Sample query:
ma_member_attribute(member_id, name, value)
helps a bit. Sample query:pa_project_member_request(requestor, context_id, status)
. Sample sql:The text was updated successfully, but these errors were encountered: