Hubbry Logo
search button
Sign in
Identity map pattern
Identity map pattern
Comunity Hub
History
arrow-down
starMore
arrow-down
bob

Bob

Have a question related to this hub?

bob

Alice

Got something to say related to this hub?
Share it here.

#general is a chat channel to discuss anything related to the hub.
Hubbry Logo
search button
Sign in
Identity map pattern
Community hub for the Wikipedia article
logoWikipedian hub
Welcome to the community hub built on top of the Identity map pattern Wikipedia article. Here, you can discuss, collect, and organize anything related to Identity map pattern. The purpose of the hub is to...
Add your contribution
Identity map pattern

In the design of DBMS, the identity map pattern is a database access design pattern used to improve performance by providing a context-specific, in-memory cache to prevent duplicate retrieval of the same object data from the database.[1]

If the requested data has already been loaded from the database, the identity map returns the same instance of the already instantiated object, but if it has not been loaded yet, it loads it and stores the new object in the map. In this way, it follows a similar principle to lazy loading.

There are 4 types of identity maps

  1. Explicit
  2. Generic
  3. Session
  4. Class

See also

[edit]

References

[edit]
  1. ^ Fowler, Martin (2003). Patterns of Enterprise Application Architecture. Addison-Wesley. pp. 195–199. ISBN 0-321-12742-0.