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

Create an IdentityMap for each entity #20

Closed
vartanbeno opened this issue Nov 18, 2018 · 1 comment
Closed

Create an IdentityMap for each entity #20

vartanbeno opened this issue Nov 18, 2018 · 1 comment
Assignees
Labels
duplicate This issue or pull request already exists enhancement New feature or request requirement

Comments

@vartanbeno
Copy link
Owner

The identity map design pattern is a means of improving performance by using an in-memory cache to prevent multiple retrievals of the same item from a database.

Example:
The first time we fetch the user with ID 1, we query the database and the User object is stored in the IdentityMap. Every subsequent call to fetch this same user will fetch it directly from the IdentityMap, which stores its objects in a Map.

@vartanbeno vartanbeno added enhancement New feature or request requirement labels Nov 18, 2018
@vartanbeno vartanbeno self-assigned this Nov 18, 2018
@vartanbeno vartanbeno added the duplicate This issue or pull request already exists label Nov 18, 2018
@vartanbeno
Copy link
Owner Author

Closed, see #24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request requirement
Projects
None yet
Development

No branches or pull requests

1 participant