We're adding versioning to several of our objects so that we can do optimistic-locking on our writes. Granted, we should have done this from the start. But... since it would be really expensive in our production databases to set version = 0 for all of the rows, I'm wondering if there is a nice way to handle the fact that at first all of the versions will be NULL.
I've considered triggers in the database, etc but none of that will help because the update statement will be expecting the version to be something other than NULL I believe.
Regards,
Pete
|