Jul 31, 2016

fps01

Identity map trait for ActiveRecord

An extension gives an ability to use identity map pattern for any ActiveRecord model. The idea is, once model is retrieved, to save its data to a map and, if it's retrieved second time (even using different method), reuse it insttead of querying database again.

Comments (2)

  1. Aug 2, 2016

    Is it someting like cache or what?

  2. Aug 4, 2016

    It's like local in memory per-request cache.

Signup in order to comment.