Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Won't Fix
-
None
Description
A failed LWT INSERT returns the row that prevented insertion, along with [applied] boolean value. A successful LWT INSERT only returns [applied].
It would be helpful to also return any other server generated values, e.g. NOW() as [now] (or whatever).
There is currently no way to know what exactly was inserted without re-querying the row, which is horrible for write-throughput.