Skip to content

LIMS-2510: Speed up container list - #1103

Open
ndg63276 wants to merge 1 commit into
masterfrom
improvement/LIMS-2510/speed-up-container-list
Open

ndg63276 wants to merge 1 commit into
masterfrom
improvement/LIMS-2510/speed-up-container-list

Conversation

@ndg63276

Copy link
Copy Markdown
Collaborator

JIRA ticket: LIMS-2510

Summary:

If you go to proposal nt37104, and then go to /containers, it takes 13s to load.

Changes:

  • Use common table expressions (CTEs) to temporarily create tables inspection_summary, sample_summary and queue_summary
  • Add joins and selects to those tables
  • Remove the subqueries (these speed things up for small searches but get slower and slower as the proposal gets bigger), and add joins to those tables
  • Add one of the CTEs to the $tot query that finds the total number of containers

To test:

  • Go to proposal nt37104, then go to the /containers page, check it loads quickly
  • Compare to production, check no data has changed
  • Go to the last page of containers, to check the total matches the actual number of results
  • Check each filter (ie Plates, Pucks. In Imager, Queued etc) still works as expected - there are no pucks on this proposal, so try with mx23694
  • If you don't see the "To Dispose" filter, you may have to give yourself the disp_cont permission, check it works
  • Go to any shipment, check the list of containers loads as expected
  • Go to /admin/imaging, check the list of containers loads as expected
  • Go to any other page you can think of with a list of containers, check it loads as expected

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants