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

perf(cache): fix active SLA doctype caching #26861

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

ankush
Copy link
Member

@ankush ankush commented Aug 9, 2021

Screenshot 2021-08-09 at 11 30 36 AM

If no SLA is configured then this query runs on EVERY validate call.

Root cause: if no active SLA doctypes exist then not [] evaluates to True and causes query to run again.

If no SLA is configured then this query runs on EVERY `validate` call.

Root cause: if not active SLA doctypes exist then `not []` evalutes to
true and causes query to run again.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 42.77% when pulling 0038d65 on ankush:perf_sla_caching into 7ba8c82 on frappe:develop.

@ruchamahabal ruchamahabal merged commit 5e428f0 into frappe:develop Aug 9, 2021
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
If no SLA is configured then this query runs on EVERY `validate` call.

Root cause: if not active SLA doctypes exist then `not []` evalutes to
true and causes query to run again.
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.

None yet

3 participants