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

fix(models/featureevaluationraw): Add index on crated_at #4405

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

gagantrivedi
Copy link
Member

@gagantrivedi gagantrivedi commented Jul 29, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Create index on featureevaluationraw to reduce query time
fixes #4403

How did you test this code?

Before index:

 Planning Time: 0.155 ms
 Execution Time: 18726.876 ms

After index:

 Planning Time: 0.203 ms
 Execution Time: 6.413 ms

@gagantrivedi gagantrivedi requested a review from a team as a code owner July 29, 2024 10:28
@gagantrivedi gagantrivedi requested review from khvn26 and removed request for a team July 29, 2024 10:28
Copy link

vercel bot commented Jul 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Jul 29, 2024 10:32am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Jul 29, 2024 10:32am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Jul 29, 2024 10:32am

@github-actions github-actions bot added api Issue related to the REST API fix labels Jul 29, 2024
Copy link
Contributor

github-actions bot commented Jul 29, 2024

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-4405 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-4405 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-4405 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4405 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-4405 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4405 Finished ✅ Results

Copy link
Contributor

github-actions bot commented Jul 29, 2024

Uffizzi Preview deployment-54734 was deleted.

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.84%. Comparing base (3f745c5) to head (8f43017).
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4405   +/-   ##
=======================================
  Coverage   96.83%   96.84%           
=======================================
  Files        1165     1167    +2     
  Lines       38621    38683   +62     
=======================================
+ Hits        37398    37461   +63     
+ Misses       1223     1222    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gagantrivedi gagantrivedi added this pull request to the merge queue Jul 30, 2024
Merged via the queue into main with commit 1f90900 Jul 30, 2024
34 checks passed
@gagantrivedi gagantrivedi deleted the fix/4403 branch July 30, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow query on app_analytics_featureevaluationraw
2 participants