Skip to content

Commit efa1fb8

Browse files
committed
Update dependencies and batch sql
1 parent f236c8b commit efa1fb8

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

frameworks/Kotlin/hexagon/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11

22
plugins {
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

77
version = "1.0.0"
88
description = "TFB benchmark"
99
group = "com.hexagonkt"
1010

1111
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"
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"

frameworks/Kotlin/hexagon/hexagon-helidon-pgclient.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
55
USER root
66
WORKDIR /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
1616
ARG PROJECT=hexagon_helidon_pgclient
1717

1818
ENV POSTGRESQL_DB_HOST tfb-database

frameworks/Kotlin/hexagon/hexagon-helidon.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
55
USER root
66
WORKDIR /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
1616
ARG PROJECT=hexagon_helidon_postgresql
1717

1818
ENV POSTGRESQL_DB_HOST tfb-database

frameworks/Kotlin/hexagon/hexagon-tomcat.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
1616
ARG MODULE=/hexagon/hexagon_tomcat_postgresql
1717

1818
ENV POSTGRESQL_DB_HOST tfb-database

frameworks/Kotlin/hexagon/store_sql/src/main/kotlin/BenchmarkSqlStore.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)