multiple process access

31 views
Skip to first unread message

vaizeman

unread,
Apr 15, 2014, 5:54:24 AM4/15/14
to rav...@googlegroups.com
Hi,
I have multiple process that read and write data on a Raven DB.
the data is write in a classic upsert way:

1) check if doc already exists
2) if not create it
3) if yes, append data to inner collection.

to avoid that the same doc is created twice, I use a WaitForNonStaleResultsAsOfLastWrite clause.

but this does not seem to be enough to avoid that some duplicate doc is created.

how can avoid this?

any help would be very appreciated.

Chris Marisic

unread,
Apr 16, 2014, 2:40:31 PM4/16/14
to rav...@googlegroups.com
Stop using queries for this. Use loads.

If you can't use loads, accept that duplication is fine, and address that instead. 
Reply all
Reply to author
Forward
0 new messages