kb/data/en.wikipedia.org/wiki/Identity_map_pattern-0.md

917 B

title chunk source category tags date_saved instance
Identity map pattern 1/1 https://en.wikipedia.org/wiki/Identity_map_pattern reference science, encyclopedia 2026-05-05T11:34:35.993384+00:00 kb-cron

In database design, 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. 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 Identity function Map (mathematics) Lazy loading

== References ==