Skip to content
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

Optimize SourceInventoryView queries #1317

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

jacobdgm
Copy link
Contributor

@jacobdgm jacobdgm commented Feb 15, 2024

This PR does two things:

As far as I can tell, the renaming of ChantIndexView -> SourceInventoryView was going on for a period of time. While it was in progress, @ahankinson applied an optimization to the ChantIndexView, whereas the old code had already been copied into the new SourceInventoryView. Once the paths/views in urls.py were updated, we switched back to using unoptimized code.

It took me a while to figure out why changes I was making to ChantInventoryView were not having any effect on our SQL queries whenever I visited /source/123627/inventory/ - it will be a good thing to have the old view deleted, to prevent others from going through similar confusion.

I ran test_views, and all comprising tests pass.

This PR should properly resolve #1238.

which is no longer used and has been superseded by the SourceInventoryView
@jacobdgm jacobdgm merged commit e434c0f into DDMAL:develop Feb 15, 2024
@jacobdgm jacobdgm deleted the 1238-inventory-optimize branch February 16, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/index pages take a long time to load and sometimes stall
2 participants