-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Chronic insertions view in need of optimization #894
Comments
Improvements to several serializers: - FOV - FOVLocation - ProbeInsertion - ChronicProbeInsertion - ImagingStack Chronic probe insertion serializers still not optimal. Also added FOVLocation read REST action.
Commit 6688bd1 provides some improvements to the various serializers. Some of my changes made only a marginal difference, others were substantial. NB: The below times are from single queries so are noisy!
|
Improvements to several serializers: - FOV - FOVLocation - ProbeInsertion - ChronicProbeInsertion - ImagingStack Chronic probe insertion serializers still not optimal. Also added FOVLocation read REST action.
The chronic-insertions list endpoint is still slow and comprises hundreds of queries. This is likely because of the subject, lab, and name fields in addition to a probe_insertion field containing the same fields within session_info. This could surely be optimized further... |
The chronic-insertions list endpoint is extremely slow and produces over 9000 queries! The detail view is also inefficient, requiring 111 queries. I attempted to improve the setup_eager_loading method of ChronicProbeInsertionListSerializer with the following:
However this does not appear to improve the situation.
What's more, the chronic probe insertion contains subject, lab, and name fields in addition to a probe_insertion field containing the same fields within session_info.
The text was updated successfully, but these errors were encountered: