Feature request: put operation
It will be more natural to have a "put" operation, or "insert-or-update".
This can be implemented at the client level with e.g.
["checked-write",
["count", "records", {"where": ["=" "id" _]}],
0,
["insert", "records", {"id": _, "attr1": "val1", ...}]]
Were you aware of this but suggesting that this be implemented in the server for convenience?
Also, just out of curiosity, are you using a particular client library for interacting with FleetDB?
Not exactly. What I mean is to check whether a record exists, if not, insert it otherwise update it (merge). I use client side function to deal with it right now, but I think better to provide it at server side to gain better performance. I'm using clojure client library to talk with fleetdb.
Oh right, I see. In order to this completely on the server's side you would need either the "put" operation you mentioned above or a more general compound query that branched on a conditional. I'm not going to add these right away, but I'm putting them on my list to consider in the near future.
Thanks for your input and patience, Mark