[Rails] Re: Concurrecy question with ActiveRecord
Gleb Arshinov
gleb at barsook.com
Fri Dec 10 02:34:38 GMT 2004
>>>>> "Michael" == Michael Koziarski <koziarski at gmail.com> writes:
>> Version number (incrementing integer) or version timestamp work
>> well and are conceptually very simple (win-win). I've seen it
>> done as a version number, but otherwise exactly as you
>> describe.
Michael> Version numbers are useful, and are usually very fast too
Michael> (easy indexing). However, there's useful information in
Michael> the 'last_modified' column, you can see *when* things
Michael> happened
I wasn't suggesting not having last_modified, it is useful in itself.
I was thinking of additional version number column (which is also
interesting information, beyond its use for conflict resolution).
Gleb
More information about the Rails
mailing list