This articlerelies largely or entirely on asingle source. Relevant discussion may be found on thetalk page. Please helpimprove this article byintroducing citations to additional sources. Find sources: "Identity map pattern" – news ·newspapers ·books ·scholar ·JSTOR(April 2020) |
Indatabase design, theidentity map pattern is a database accessdesign pattern used to improve performance by providing a context-specific, in-memorycache 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 tolazy loading.
There are 4 types of identity maps
Thiscomputer science article is astub. You can help Wikipedia byadding missing information. |