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

Remove unnecessary filter from database queries #3287

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

jnm
Copy link
Member

@jnm jnm commented Jun 14, 2021

Checklist

  1. If you've added code that should be tested, add tests
  2. If you've changed APIs, update (or create!) the documentation
  3. Ensure the tests pass
  4. Make sure that your code lints and that you've followed our coding style
  5. Write a description of your work suitable for publishing on our forum
  6. Mention any related issues in this repository (as #ISSUE) and in other repositories (as kobotoolbox/other#ISSUE)

Description

When deleting submissions through the legacy KoBoCAT UI, a special marker was applied to the "deleted" submissions instead of removing them outright. This meant that every query to retrieve submitted data needed to filter out submissions having this marker. We now always remove submissions outright when deleting and therefore no longer need this extra filter, which caused high database overhead.

Related issues

Part of kobotoolbox/kobocat#696

@noliveleger noliveleger merged commit 1540994 into master Jun 15, 2021
@noliveleger noliveleger deleted the stop-querying-deleted-at branch June 15, 2021 19:21
jdugh pushed a commit to geohyd/kpi that referenced this pull request Nov 21, 2022
…leted-at

Remove unnecessary filter from database queries
jdugh pushed a commit to geohyd/kpi that referenced this pull request Nov 13, 2023
…leted-at

Remove unnecessary filter from database queries
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