Page 1 of 1

Optimized update

PostPosted: Sat Dec 11, 2010 1:25 pm
by ruddy32
Hi,
Is there a way to optimize update query by updating changed fields only? or telling fields to update?
Thanks

Re: Optimized update

PostPosted: Mon Dec 13, 2010 8:44 am
by QxOrm admin
Hi,

No this is not a feature provided by QxOrm 1.1.3 today (equivalent to "dynamic-update" of Hibernate).

I don't know what is the best way to implement it in QxOrm (???).
But this is very interesting and will provide to developpers a "isDirty()" method.

If you have idea... :)

Re: Optimized update

PostPosted: Tue Jan 18, 2011 11:49 am
by QxOrm admin
"Optimized update" feature is available with QxOrm 1.1.4 :
- using new "qx::dao::ptr" smart-pointer
- or using new parameter in function "qx::dao::update"