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 1
1
2
2
plugins {
3
3
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
5
5
}
6
6
7
7
version = "1.0.0"
8
8
description = "TFB benchmark"
9
9
group = "com.hexagonkt"
10
10
11
11
ext {
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"
15
15
16
- hikariVersion = "6.0.0 "
16
+ hikariVersion = "6.2.1 "
17
17
postgresqlVersion = "42.7.4"
18
- vertxVersion = "4.5.10 "
18
+ vertxVersion = "4.5.11 "
19
19
cache2kVersion = "2.6.1.Final"
20
20
21
21
applicationClass = "com.hexagonkt.BenchmarkKt"
Original file line number Diff line number Diff line change 1
1
#
2
2
# BUILD
3
3
#
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
5
5
USER root
6
6
WORKDIR /hexagon
7
7
@@ -12,7 +12,7 @@ RUN ./gradlew --quiet -x test installDist
12
12
#
13
13
# RUNTIME
14
14
#
15
- FROM docker.io/bellsoft/liberica-runtime-container:jre-22 -musl
15
+ FROM docker.io/bellsoft/liberica-runtime-container:jre-23 -musl
16
16
ARG PROJECT=hexagon_helidon_pgclient
17
17
18
18
ENV POSTGRESQL_DB_HOST tfb-database
Original file line number Diff line number Diff line change 1
1
#
2
2
# BUILD
3
3
#
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
5
5
USER root
6
6
WORKDIR /hexagon
7
7
@@ -12,7 +12,7 @@ RUN ./gradlew --quiet -x test installDist
12
12
#
13
13
# RUNTIME
14
14
#
15
- FROM docker.io/bellsoft/liberica-runtime-container:jre-22 -musl
15
+ FROM docker.io/bellsoft/liberica-runtime-container:jre-23 -musl
16
16
ARG PROJECT=hexagon_helidon_postgresql
17
17
18
18
ENV 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
12
12
#
13
13
# RUNTIME
14
14
#
15
- FROM docker.io/tomcat:11.0.0 -jre21-temurin-noble
15
+ FROM docker.io/tomcat:11-jre21-temurin-noble
16
16
ARG MODULE=/hexagon/hexagon_tomcat_postgresql
17
17
18
18
ENV POSTGRESQL_DB_HOST tfb-database
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class BenchmarkSqlStore(
62
62
63
63
override fun replaceWorlds(worlds: List<World>) {
64
64
dataSource.connection.use { con: Connection ->
65
+ con.autoCommit = false
65
66
val stmtSelect = con.prepareStatement(SELECT_WORLD)
66
67
val stmtUpdate = con.prepareStatement(UPDATE_WORLD)
67
68
@@ -76,8 +77,11 @@ class BenchmarkSqlStore(
76
77
77
78
stmtUpdate.setInt(1, newRandomNumber)
78
79
stmtUpdate.setInt(2, worldId)
79
- stmtUpdate.executeUpdate()
80
+ // stmtUpdate.executeUpdate()
81
+ stmtUpdate.addBatch()
80
82
}
83
+ stmtUpdate.executeBatch()
84
+ con.commit()
81
85
}
82
86
}
83
87
You can’t perform that action at this time.
0 commit comments