I'm having a bit of trouble deciphering the use case for these three
'add' options. here is my best guss, can you correct me if i'm wrong
* addConditionally()
Only add the document if we have not already tried to add it and have
not committed yet
* allowDups()
add the document regardless of what you have done since last commit.
* overwriteBoth()
add the document.
What are these options trying to solve? Is this the SQL equivalent of
INSERT (it has to be a new ID)
UPDATE (the old id has to be there)
REPLACE (insert or update - i don't care)
ryan
|