v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

Update SQL statement must include modified properties only

Issue Details

Log in to Track Changes or Edit
AS5031
Suggestion
Nick (DevExpress Support)
Yes
Processed
Implemented
.NET
eXpress Persistent Objects
v2006 vol 2.1
11/16/2010 11:38:19 AM
-> Created, Processed (Accepted - release TBD) by DevExpress Team 6/20/2006 10:51:51 AM

I am experiencing very slow update performance using XPO for large tables.
The reason is clear: XPO always stores all persistent fields whenever they are modified or not. So by changing a single property and saving the object, XPO creates the UPDATE statement which includes all properties!

<- Reactivated by DevExpress Team 7/4/2006 8:09:18 AM
<- Processed (Implemented) by DevExpress Team 7/4/2006 8:29:22 AM

The next version (XPO 6.2) will provide a Session.GetPropertiesListForUpdateInsert virtual method. You will be able to inherit the Session class and override the GetPropertiesListForUpdateInsert method to return a list of fields which must be included in the Update SQL.

Thank you

<- Updated by DevExpress Team 10/22/2010 1:32:48 PM

With v2010 vol 2, you can assign true to the UpdateModifiedOnly parameter of the DelayedAttribute, to ensure that the related delayed property is only sent to the database for update if it has actually been modified. To learn more, refer to Suggestion ID: S35995, Provide the capability to update delayed properties only if they were modified.

Thanks,
DevExpress XPO Team

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips