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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -