Skip to content

Commit

Permalink
Update dependencies and batch sql
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Dec 24, 2024
1 parent f236c8b commit efa1fb8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
12 changes: 6 additions & 6 deletions frameworks/Kotlin/hexagon/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@

plugins {
id "org.jetbrains.kotlin.jvm" version "2.0.21" apply false
id "org.graalvm.buildtools.native" version "0.10.3" apply false
id "org.graalvm.buildtools.native" version "0.10.4" apply false
}

version = "1.0.0"
description = "TFB benchmark"
group = "com.hexagonkt"

ext {
hexagonVersion = "3.7.2"
jettyVersion = "12.0.14"
nettyVersion = "4.1.114.Final"
hexagonVersion = "3.7.3"
jettyVersion = "12.0.16"
nettyVersion = "4.1.116.Final"

hikariVersion = "6.0.0"
hikariVersion = "6.2.1"
postgresqlVersion = "42.7.4"
vertxVersion = "4.5.10"
vertxVersion = "4.5.11"
cache2kVersion = "2.6.1.Final"

applicationClass = "com.hexagonkt.BenchmarkKt"
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Kotlin/hexagon/hexagon-helidon-pgclient.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# BUILD
#
FROM docker.io/bellsoft/liberica-runtime-container:jdk-all-22-cds-musl AS build
FROM docker.io/bellsoft/liberica-runtime-container:jdk-all-23-cds-musl AS build
USER root
WORKDIR /hexagon

Expand All @@ -12,7 +12,7 @@ RUN ./gradlew --quiet -x test installDist
#
# RUNTIME
#
FROM docker.io/bellsoft/liberica-runtime-container:jre-22-musl
FROM docker.io/bellsoft/liberica-runtime-container:jre-23-musl
ARG PROJECT=hexagon_helidon_pgclient

ENV POSTGRESQL_DB_HOST tfb-database
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Kotlin/hexagon/hexagon-helidon.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# BUILD
#
FROM docker.io/bellsoft/liberica-runtime-container:jdk-all-22-cds-musl AS build
FROM docker.io/bellsoft/liberica-runtime-container:jdk-all-23-cds-musl AS build
USER root
WORKDIR /hexagon

Expand All @@ -12,7 +12,7 @@ RUN ./gradlew --quiet -x test installDist
#
# RUNTIME
#
FROM docker.io/bellsoft/liberica-runtime-container:jre-22-musl
FROM docker.io/bellsoft/liberica-runtime-container:jre-23-musl
ARG PROJECT=hexagon_helidon_postgresql

ENV POSTGRESQL_DB_HOST tfb-database
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Kotlin/hexagon/hexagon-tomcat.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN ./gradlew --quiet -x test war
#
# RUNTIME
#
FROM docker.io/tomcat:11.0.0-jre21-temurin-noble
FROM docker.io/tomcat:11-jre21-temurin-noble
ARG MODULE=/hexagon/hexagon_tomcat_postgresql

ENV POSTGRESQL_DB_HOST tfb-database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class BenchmarkSqlStore(

override fun replaceWorlds(worlds: List<World>) {
dataSource.connection.use { con: Connection ->
con.autoCommit = false
val stmtSelect = con.prepareStatement(SELECT_WORLD)
val stmtUpdate = con.prepareStatement(UPDATE_WORLD)

Expand All @@ -76,8 +77,11 @@ class BenchmarkSqlStore(

stmtUpdate.setInt(1, newRandomNumber)
stmtUpdate.setInt(2, worldId)
stmtUpdate.executeUpdate()
// stmtUpdate.executeUpdate()
stmtUpdate.addBatch()
}
stmtUpdate.executeBatch()
con.commit()
}
}

Expand Down

0 comments on commit efa1fb8

Please sign in to comment.