Optimistic-lock="version"

HI Team,

using optimistic-lock=“version” property we are getting DBException and when we changed to optimistic-lock="all " solve this error but it increased operation consumed times. any idea how to proceed on this.

any suggestion and help will be highly appreciated on how to proceed further on this.