Because it’s not trying to do anything different (the select itself
will be cached). The subject comes up every now and again, but
activerecord does not yet have an identity map
Where I could find clear and detailed info about these topics?
The objects are the results of selects. Some other program may have
changed
the value in between. So the values may be different. Rails does know
what
other programs are accessing the database. Only the database server
knows.
And it can cache the result. So two calls to the DB, possibly two
different
results.
Jeffrey
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.