minjibir opened a new pull request, #489:
URL: https://github.com/apache/pekko-persistence-r2dbc/pull/489

   …(#471)
   
   Motivation:
   Under high concurrency across many persistence IDs, the default journal 
issues separate statements and commits for each write. This increases database 
round-trips and connection pool contention.
   
   Modification:
   - Add R2dbcBatchJournal to queue writes and flush them in batches.
   - Add max-batch-size and max-batch-time configuration settings.
   - Add R2dbcBatchJournalSpec to verify TCK compliance.
   - Add R2dbcBatchJournalPerfSpec and R2dbcBatchJournalPerfManyActorsSpec for 
performance testing.
   
   Result:
   Users can opt in to batched writes across persistence IDs for higher write 
throughput.
   
   Tests:
   - sbt "core / Test / testOnly 
org.apache.pekko.persistence.r2dbc.journal.R2dbcBatchJournalSpec"
   - sbt "core / Test / testOnly 
org.apache.pekko.persistence.r2dbc.journal.R2dbcBatchJournalPerfSpec"
   - sbt "core / Test / testOnly 
org.apache.pekko.persistence.r2dbc.journal.R2dbcBatchJournalPerfManyActorsSpec"
   - sbt +mimaReportBinaryIssues
   - sbt validatePullRequest
   
   References:
   Fixes #471


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to