-
Notifications
You must be signed in to change notification settings - Fork 4
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
3075-latency-parsing-errors #3236
Conversation
As part of this spike, I investigated the timing of admin page tables, which uses boilerplate django settings to query models and show them in tables.
which is intended to limit the display columns to four listed columns, but the ParserError model has 15 columns. Additionally, one of the fields is JSON field, which generally takes more time to query. By changing the query set, I could limit the fields in the query to the ones listed for display. This improved the query time by 10-15%. With data in DB to start growing, we will need to start looking into improving efficiency of querysets using methods descrbed in here |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3236 +/- ##
========================================
Coverage 90.65% 90.66%
========================================
Files 299 299
Lines 8490 8493 +3
Branches 794 794
========================================
+ Hits 7697 7700 +3
Misses 676 676
Partials 117 117
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
volumes: | ||
- .:/tdpapp | ||
- logs:/tmp | ||
- logs:/logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: remove before merge, only for testing
@@ -53,7 +53,7 @@ class Local(Common): | |||
from sentry_sdk.integrations.django import DjangoIntegration | |||
from sentry_sdk.integrations.logging import LoggingIntegration | |||
sentry_sdk.init( | |||
dsn="http://[email protected]:9001/2", | |||
dsn="http://[email protected]:9001/1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: this is for my personal environment. change it for your environment if you are planning to look at Sentry yourself.
…com:raft-tech/TANF-app into 3075-latency-clicking-parsing-errors-column
Summary of Changes
Provide a brief summary of changes
Pull request closes #3075 _
How to Test
List the steps to test the PR
These steps are generic, please adjust as necessary.
Deliverables
More details on how deliverables herein are assessed included here.
Deliverable 1: Accepted Features
Checklist of ACs:
lfrohlich
and/oradpennington
confirmed that ACs are met.Deliverable 2: Tested Code
CodeCov Report
comment in PR)CodeCov Report
comment in PR)Deliverable 3: Properly Styled Code
Deliverable 4: Accessible
iamjolly
andttran-hub
using Accessibility Insights reveal any errors introduced in this PR?Deliverable 5: Deployed
Deliverable 6: Documented
Deliverable 7: Secure
Deliverable 8: User Research
Research product(s) clearly articulate(s):