[odb-users] Persisting objects after ID change

Boris Kolpackov boris at codesynthesis.com
Wed Dec 31 12:39:11 EST 2014


Hi Erez,

Erez Pics <picserez at gmail.com> writes:

> Do you think that there is a problem with my update query and ODB
> using the new object id after the change ?

There is nothing wrong with executing a custom UPDATE statement. One
advantage of my method, however, is that it uses prepared statements
and therefore could be more efficient. Also, you will need to think
about other ODB facilities that may mis-function (or need adjustment)
after the id change. One that comes to mind off the top of my head
is the object cache, if you are using it.

Boris
 



More information about the odb-users mailing list