Re: updates to same value: why they happen?
Re: updates to same value: why they happen?
- Subject: Re: updates to same value: why they happen?
- From: Chuck Hill <email@hidden>
- Date: Tue, 14 Aug 2018 17:37:54 +0000
- Thread-topic: updates to same value: why they happen?
Could there be some place in your code that is changing type between Integer
and Long? EOF would see that as a value change, though the value logged would
appear the same.
Chuck
From: Webobjects-dev
<webobjects-dev-bounces+chill=email@hidden> on behalf of
"ocs@ocs" <email@hidden>
Date: Tuesday, August 14, 2018 at 10:26 AM
To: "email@hidden" <email@hidden>
Subject: updates to same value: why they happen?
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden