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 get_tables values #10147

Merged
merged 5 commits into from
Apr 30, 2020

Conversation

surajshetty3416
Copy link
Member

@surajshetty3416 surajshetty3416 commented Apr 29, 2020

  • To avoid redundant DB calls

Difference for the same query
Before
Screenshot 2020-04-29 at 12 51 51 PM

After
Screenshot 2020-04-29 at 12 53 57 PM

- To avoid redundant db calls
@surajshetty3416 surajshetty3416 requested review from a team and Thunderbottom and removed request for a team April 29, 2020 07:29
As indicated by deepsource
frappe/database/database.py Outdated Show resolved Hide resolved
surajshetty3416 and others added 2 commits April 29, 2020 16:43
* use set comprehension instead of generator
* remove redundant else statement

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
@surajshetty3416 surajshetty3416 merged commit 6d17edc into frappe:develop Apr 30, 2020
@surajshetty3416 surajshetty3416 deleted the fix-caching branch April 30, 2020 04:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants