On 7-Sep-07, at 1:35 PM, Lance Norskog wrote:
Hi-
It appears that DirectUpdateHandler2.java does not actually
implement the
parameters that control whether to override existing documents.
Should I use
No? allowDups=true ovewritePending=false overwriteCommited=false
should result in adding docs with no overwriting with DUH2.
As yonik said, overwriting is the default behaviour. It is based on
uniqueKey, which must be defined for overwriting to work.
DirectUpdateHandler instead? Apparently DUH is slower than DUH2,
but DUH
implements these parameters. (We do so many overwrites that
switching to
DUH is probably a win.)
DUH also does not implement many newer update features, like autoCommit.
-Mike