File tree Expand file tree Collapse file tree 5 files changed +16
-12
lines changed
frameworks/Kotlin/hexagon
store_sql/src/main/kotlin Expand file tree Collapse file tree 5 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 11
22plugins {
33 id " org.jetbrains.kotlin.jvm" version " 2.0.21" apply false
4- id " org.graalvm.buildtools.native" version " 0.10.3 " apply false
4+ id " org.graalvm.buildtools.native" version " 0.10.4 " apply false
55}
66
77version = " 1.0.0"
88description = " TFB benchmark"
99group = " com.hexagonkt"
1010
1111ext {
12- hexagonVersion = " 3.7.2 "
13- jettyVersion = " 12.0.14 "
14- nettyVersion = " 4.1.114 .Final"
12+ hexagonVersion = " 3.7.3 "
13+ jettyVersion = " 12.0.16 "
14+ nettyVersion = " 4.1.116 .Final"
1515
16- hikariVersion = " 6.0.0 "
16+ hikariVersion = " 6.2.1 "
1717 postgresqlVersion = " 42.7.4"
18- vertxVersion = " 4.5.10 "
18+ vertxVersion = " 4.5.11 "
1919 cache2kVersion = " 2.6.1.Final"
2020
2121 applicationClass = " com.hexagonkt.BenchmarkKt"
Original file line number Diff line number Diff line change 11#
22# BUILD
33#
4- FROM docker.io/bellsoft/liberica-runtime-container:jdk-all-22 -cds-musl AS build
4+ FROM docker.io/bellsoft/liberica-runtime-container:jdk-all-23 -cds-musl AS build
55USER root
66WORKDIR /hexagon
77
@@ -12,7 +12,7 @@ RUN ./gradlew --quiet -x test installDist
1212#
1313# RUNTIME
1414#
15- FROM docker.io/bellsoft/liberica-runtime-container:jre-22 -musl
15+ FROM docker.io/bellsoft/liberica-runtime-container:jre-23 -musl
1616ARG PROJECT=hexagon_helidon_pgclient
1717
1818ENV POSTGRESQL_DB_HOST tfb-database
Original file line number Diff line number Diff line change 11#
22# BUILD
33#
4- FROM docker.io/bellsoft/liberica-runtime-container:jdk-all-22 -cds-musl AS build
4+ FROM docker.io/bellsoft/liberica-runtime-container:jdk-all-23 -cds-musl AS build
55USER root
66WORKDIR /hexagon
77
@@ -12,7 +12,7 @@ RUN ./gradlew --quiet -x test installDist
1212#
1313# RUNTIME
1414#
15- FROM docker.io/bellsoft/liberica-runtime-container:jre-22 -musl
15+ FROM docker.io/bellsoft/liberica-runtime-container:jre-23 -musl
1616ARG PROJECT=hexagon_helidon_postgresql
1717
1818ENV POSTGRESQL_DB_HOST tfb-database
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN ./gradlew --quiet -x test war
1212#
1313# RUNTIME
1414#
15- FROM docker.io/tomcat:11.0.0 -jre21-temurin-noble
15+ FROM docker.io/tomcat:11-jre21-temurin-noble
1616ARG MODULE=/hexagon/hexagon_tomcat_postgresql
1717
1818ENV POSTGRESQL_DB_HOST tfb-database
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class BenchmarkSqlStore(
6262
6363 override fun replaceWorlds (worlds : List <World >) {
6464 dataSource.connection.use { con: Connection ->
65+ con.autoCommit = false
6566 val stmtSelect = con.prepareStatement(SELECT_WORLD )
6667 val stmtUpdate = con.prepareStatement(UPDATE_WORLD )
6768
@@ -76,8 +77,11 @@ class BenchmarkSqlStore(
7677
7778 stmtUpdate.setInt(1 , newRandomNumber)
7879 stmtUpdate.setInt(2 , worldId)
79- stmtUpdate.executeUpdate()
80+ // stmtUpdate.executeUpdate()
81+ stmtUpdate.addBatch()
8082 }
83+ stmtUpdate.executeBatch()
84+ con.commit()
8185 }
8286 }
8387
You can’t perform that action at this time.
0 commit comments