Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Identity map pattern

From Wikipedia, the free encyclopedia
Database access design pattern
icon
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

  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.
Gang of Four
patterns
Creational
Structural
Behavioral
Concurrency
patterns
Architectural
patterns
Other
patterns
Books
People
Communities
See also


Stub icon

Thiscomputer science article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Identity_map_pattern&oldid=1320591548"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp