Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hermannm committed Sep 18, 2024
1 parent 6ec82dc commit 25f43ab
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ import org.jdbi.v3.core.Jdbi
* }
* ```
*
* ## Batch size
* ## Batching
*
* The migration of the table is done in a streaming fashion, to avoid reading the whole table into
* memory. It operates on [MIGRATION_BATCH_SIZE] number of entities at a time. According to Oracle,
* [the optimal size for batch operations in JDBC is 50-100](https://docs.oracle.com/cd/E11882_01/java.112/e16548/oraperf.htm#JJDBC28754).
* We default to the higher end of the recommended batch size for migrations, since migrations are
* called on startup when there is presumably less memory contention.
* We use the higher end of the recommended batch size for migrations, since migrations are called
* on startup when there is presumably less memory contention.
*/
fun <EntityT : Entity<*>> migrateEntity(
dbConnection: Connection,
Expand Down

0 comments on commit 25f43ab

Please sign in to comment.