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

Reintroduce caching into models #350

Merged
merged 7 commits into from
Jul 28, 2015
Merged

Reintroduce caching into models #350

merged 7 commits into from
Jul 28, 2015

Conversation

yl3w
Copy link
Contributor

@yl3w yl3w commented Jul 27, 2015

In testing in production, it was necessary to have domain model
caching to avoid overwhelming the db with queries. This commit
introduces caching back for domain models, in doing so makes
the code more type checkable and adds fairly substantial and
complete unit test.

This also make the following changes.

(a) When returning the results for a Asset.find call, load all assets
from database using a single query

(b) Use transient for lazy vals and caching of queries objects to
avoid making a db call for each invocation (where applicable)

(c) Introduce a permission to clear cache.

(d) Minor changes for uniform property access.

@Primer42 @defect @byxorna @roymarantz

Bhaskar Maddala added 7 commits July 22, 2015 16:09
Summary:
In testing in production, it was necessary to have domain model
caching to avoid overwhelming the db with queries. This commit
introduces caching back for domain models, in doing so makes
the code more type checkable and adds fairly substantial and
complete unit test.
yl3w added a commit that referenced this pull request Jul 28, 2015
@yl3w yl3w merged commit 964f9ee into master Jul 28, 2015
@yl3w yl3w deleted the bhaskar-lazy-loading branch July 28, 2015 23:42
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.

1 participant