ocs@ocs
2018-08-14 17:26:21 UTC
Gentlemen,
my code logs out all database changes in the databaseContextWillPerformAdaptorOperations delegate method.
Lately from these logs I have found that one of my applications tends to pretty often update an attribute to the same value it used to have before, like this:
===
249 /tmp> fgrep "UPDATE on 'DBAuction' ((uid = 1002533)" LOG
13:38:25.214|WorkerThread7 - 4: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
09:02:58.136|WorkerThread2 - 1: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
09:55:57.970|WorkerThread5 - 2: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
10:09:37.079|WorkerThread22 - 2: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
10:14:31.399|WorkerThread11 - 2: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
251 /tmp>
===
Can you see what might be the culprit?
I understand this would happen if the value in the object itself does not change, whilst the value in the snapshot would; but how could change the attribute value of the snapshot without being written out to the database (which, if happened, would be logged as well)?
Thanks a lot for any advice,
OC
my code logs out all database changes in the databaseContextWillPerformAdaptorOperations delegate method.
Lately from these logs I have found that one of my applications tends to pretty often update an attribute to the same value it used to have before, like this:
===
249 /tmp> fgrep "UPDATE on 'DBAuction' ((uid = 1002533)" LOG
13:38:25.214|WorkerThread7 - 4: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
09:02:58.136|WorkerThread2 - 1: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
09:55:57.970|WorkerThread5 - 2: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
10:09:37.079|WorkerThread22 - 2: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
10:14:31.399|WorkerThread11 - 2: UPDATE on 'DBAuction' ((uid = 1002533)) 1{originalAmount:11058}
251 /tmp>
===
Can you see what might be the culprit?
I understand this would happen if the value in the object itself does not change, whilst the value in the snapshot would; but how could change the attribute value of the snapshot without being written out to the database (which, if happened, would be logged as well)?
Thanks a lot for any advice,
OC