hey folks 👋
# spicedb
a
hey folks 👋 I’m looking for clarification on how
ImportBulkRelationshipsResponse.num_loaded
behaves. From the docs: > All requests sent to the same invocation are executed under this single transaction. If a relationship already exists within the datastore, the entire transaction will fail with an error. Given that, does
num_loaded
always reflect the total number of relationships from the request (i.e., only returned if the whole transaction succeeds)? Or is there any case where it could be 0 even if some relationships were imported before failure, or does the atomic transaction guarantee no partial success? Thanks!
y
my understanding is the atomic transaction means no partial success
a
thanks! @yetitwo
y
sure thing!
12 Views