I think I misunderstood the java bulk
# spicedb
b
I think I misunderstood the java bulk operations in the ExperimentalServiceGrpc class. We are already using bulk check and it works, but i tried to do a bulk write and was trying to use the import, but I don't think that method is intended for what I wanted to use it for
v
there isn't such a think as bulk write, what method are you using?
b
I was trying to use the bulkImportRelationships method, but i think that is for an empty data store?
Sorry I think I just wasted 4 days restructuring code to get a bulk write working
I'm a little demoralized 😅
j
bulk import can be used on a non-empty datastore
but its intended for, well, importing very large amounts of data
and not for writing during normal operations
it will, for example, fail if you have any existing relationships that overlap
v
the method uses
CREATE
sematics. It means that if it finds a relationship that already exists, it fails. Is that what you are observing?
what is your use case?