-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chronic insertions view in need of optimization #894
Comments
k1o0
added a commit
that referenced
this issue
Jan 7, 2025
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!
|
k1o0
added a commit
that referenced
this issue
Jan 8, 2025
Improvements to several serializers: - FOV - FOVLocation - ProbeInsertion - ChronicProbeInsertion - ImagingStack Chronic probe insertion serializers still not optimal. Also added FOVLocation read REST action.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: