Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Identity map pattern
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{One source|date=April 2020}} In the design of [[database|DBMS]], the '''identity map pattern''' is a database access [[Software design pattern|design pattern]] used to improve performance by providing a context-specific, in-memory [[database caching|cache]] to prevent duplicate retrieval of the same object data from the database.<ref>{{cite book | last = Fowler | first = Martin | title = Patterns of Enterprise Application Architecture | pages = 195β199 | publisher = Addison-Wesley | isbn = 0-321-12742-0 | year = 2003 }}</ref> 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 #Explicit #Generic #Session #Class == See also == * [[Active record pattern|Active record]] * [[Identity function]] * [[Map (mathematics)]] * [[Lazy loading]] == References == {{reflist}} {{Design Patterns Patterns}} [[Category:Architectural pattern (computer science)]] [[Category:Software design patterns]] {{comp-sci-stub}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite book
(
edit
)
Template:Comp-sci-stub
(
edit
)
Template:Design Patterns Patterns
(
edit
)
Template:One source
(
edit
)
Template:Reflist
(
edit
)