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
Post a Comment