Conversation
Signed-off-by: syjdev <syjdev@gmail.com>
Signed-off-by: syjdev <syjdev@gmail.com>
Signed-off-by: syjdev <syjdev@gmail.com>
Signed-off-by: syjdev <syjdev@gmail.com>
…ties. Signed-off-by: syjdev <syjdev@gmail.com>
|
As per #5220 (comment), we should seek a consistent bulk approach for inserts and updates, also considering the reactive implementation. |
|
Thank you for the feedback. I'll revise the implementation based on both your comment on #5220 and the feedback you've provided here. Thanks! |
Move the imperative and reactive saveAll(Iterable) onto bulkWrite(...) so that inserts and replaces run within a single ordered bulk. BulkWriter now propagates identifiers generated during the write back to the entity, which saveAll(...) needs to return saved entities. Versioned entities remain saved one by one. Signed-off-by: syjdev <syjdev@gmail.com>
|
I moved both the imperative and the reactive Also, I changed |
cc9055c to
9535e9c
Compare
saveAll(…) returned the input instances, leaving immutable entities without their generated identifiers. BulkWriteResult now exposes the saved entities, and bulk inserts prepare identifiers like insert(…) to preserve explicitly configured identifier types. Signed-off-by: syjdev <syjdev@gmail.com>
|
This requires a new |
Closes #5220