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: stop loading donor notes when create Give_donor object #3994

Closed
2 tasks done
ravinderk opened this issue Feb 8, 2019 · 0 comments
Closed
2 tasks done

fix: stop loading donor notes when create Give_donor object #3994

ravinderk opened this issue Feb 8, 2019 · 0 comments
Assignees

Comments

@ravinderk
Copy link
Collaborator

ravinderk commented Feb 8, 2019

Performance Improvement Request

User Story

As a site owner, I want my donation form to load faster.

Current Behavior

when donor logged in then on the donation form page, I can see one extra query which we can neglect

Expected Behavior

Run queries only which are useful

Visuals

image

Possible Solution

Do not load notes when creating Give_Donor object. Move them to on-demand functionality. I think we can use the class __get function to set and fetch donor notes dynamically instead of object creation

Acceptance Criteria

  • Give_Donor object has empty notes when creating an object
  • Return notes when developer access notes property of Give_Donor class
DevinWalker pushed a commit that referenced this issue Feb 26, 2019
fix: stop loading donor notes when create Give_donor object #3994
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

No branches or pull requests

2 participants