How to atomic "create if not found" with CouchBase -


for example want check if user input email exist or not, if not found, save user object couchbase.
can n1ql?
can native driver: https://github.com/couchbaselabs/gocb
thanks

the simplest way if email address objectid or part of object id. if is, insert() objectid , you're done.

if cannot use email in objectid, have view or use n1ql. first 1 using objectid of course performant. key lookups are.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -