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

audits: Use new audit table for audit filter #369

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

tahini
Copy link
Contributor

@tahini tahini commented Jan 29, 2024

The audit filter uses a subquery to the sv_audits table instead of the audits field of the interviews table.

The list of validation errors come from the sv_audits table as well.

Sequential tests are updated accordingly.

@tahini tahini requested a review from kaligrafy January 29, 2024 19:32
The audit filter uses a subquery to the sv_audits table instead of the
audits field of the interviews table.

The list of validation errors come from the sv_audits table as well.

Sequential tests are updated accordingly.
@tahini tahini force-pushed the updateAuditFilter branch from 30d78cf to c87067d Compare January 29, 2024 19:40
@tahini
Copy link
Contributor Author

tahini commented Jan 29, 2024

This PR adds a subquery to the validation list query. I expect performances will be degraded a bit in our production surveys, but by how much, I am not sure. @kaligrafy, if you have the opportunity, can you try this PR on the complete database and confirm that performances are not so bad, or au contraire, it's impossible to run?

@tahini
Copy link
Contributor Author

tahini commented Feb 5, 2024

I'll merge and when/if performance becomes a problem, we can revisit the queries.

@tahini tahini merged commit 3e2c096 into chairemobilite:main Feb 5, 2024
4 checks passed
@tahini tahini deleted the updateAuditFilter branch February 5, 2024 14:52
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.

2 participants