Skip to content

Commit 06edefa

Browse files
tech: update db to use timescaledb
1 parent 81673c0 commit 06edefa

File tree

5 files changed

+16
-24
lines changed

5 files changed

+16
-24
lines changed

.env.dev.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ GEOSERVER_HOST=localhost
7373
################################################################################
7474
# PostgreSQL
7575

76-
DB_VERSION=pg17-postgis3.5.1
76+
DB_VERSION=pg17-postgis3.6.1-timescale2.24.0
7777
DB_DATA_VOLUME_NAME=db-data-17
7878
POSTGRES_PORT=5432
7979
POSTGRES_USER=postgres

.env.test.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ MONITORENV_JVM_OPTIONS=
6161
################################################################################
6262
# PostgreSQL
6363

64-
DB_VERSION=pg17-postgis3.5.1
64+
DB_VERSION=pg17-postgis3.6.1-timescale2.24.0
6565
DB_DATA_VOLUME_NAME=db-data-17
6666
POSTGRES_PORT=5432
6767
POSTGRES_USER=postgres

backend/src/main/resources/db/migration/internal/V0.199__create_table_ais_positions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- CREATE EXTENSION IF NOT EXISTS timescaledb;
1+
CREATE EXTENSION IF NOT EXISTS timescaledb;
22

33
CREATE TABLE public.ais_positions
44
(

docker-compose-test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
services:
22
db:
33
command:
4-
- "-c"
4+
- "-c"
55
- "shared_buffers=4096MB"
6-
- "-c"
6+
- "-c"
77
- "work_mem=5006kB"
8-
- "-c"
8+
- "-c"
99
- "maintenance_work_mem=1955MB"
10-
- "-c"
10+
- "-c"
1111
- "effective_io_concurrency=200"
12-
- "-c"
12+
- "-c"
1313
- "max_worker_processes=19"
14-
- "-c"
14+
- "-c"
1515
- "max_parallel_workers_per_gather=4"
16-
- "-c"
16+
- "-c"
1717
- "max_parallel_workers=8"
18-
- "-c"
18+
- "-c"
1919
- "wal_buffers=16MB"
20-
- "-c"
20+
- "-c"
2121
- "max_wal_size=1GB"
22-
- "-c"
23-
- "min_wal_size=512MB"
2422
- "-c"
25-
- "shared_preload_libraries=pg_stat_statements"
23+
- "min_wal_size=512MB"
24+
- "-c"
25+
- "shared_preload_libraries=pg_stat_statements,timescaledb"
2626
- "-c"
2727
- "pg_stat_statements.max=10000"
2828
- "-c"
@@ -40,4 +40,4 @@ services:
4040
- "-c"
4141
- "max_locks_per_transaction=128"
4242
- "-c"
43-
- "jit=off"
43+
- "jit=off"

infra/kafka/certs/kafka/client.properties

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)