Micronaut data R2DBC batch operations #8297
Unanswered
gayatrijagtap
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Team,
We are trying to build an application which will support high volume inserts using Micronaut data with R2DBC and are able to insert the records. We want to do further optimisation by performing batching on those inserts.
We tried the saveAll method from ReactorCrudRepository. With the help of logs, we found that by default it doesn’t support batching.
As per the R2DBC documentation and a few other blogs, there is no default configuration for batching in R2DBC and we will need to manually create and execute the batches using the connection object. Also, in Micronaut data R2DBC official documentation, there was no mention of batch inserts/updates.
We wanted to know, a) whether batching is possible with Micronaut data R2DBC?
b) if yes, is there any simple way to do it without manually creating the connection object and executing batch?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions