From 610ced5c0522c41bb080b42aa37a1fee4cf43f77 Mon Sep 17 00:00:00 2001 From: Samriti Sadhu Date: Tue, 16 Jul 2024 11:16:42 +0100 Subject: [PATCH 1/3] Adding perf DB in datasette --- startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index 427a1da..78bb8c5 100755 --- a/startup.sh +++ b/startup.sh @@ -3,7 +3,7 @@ DATASETTE_PID=0 start_datasette() { - DATASETTE_SERVE_ARGS="-h 0.0.0.0 -p $PORT --setting sql_time_limit_ms 10000 --nolock --immutable=/mnt/datasets/entity.sqlite3 --immutable=/mnt/datasets/digital-land.sqlite3 " + DATASETTE_SERVE_ARGS="-h 0.0.0.0 -p $PORT --setting sql_time_limit_ms 5000 --nolock --immutable=/mnt/datasets/entity.sqlite3 --immutable=/mnt/datasets/digital-land.sqlite3 --immutable=/mnt/datasets/performance.sqlite3" for KEY in $(jq -rc 'keys[]' /mnt/datasets/inspect-data-all.json); do DATASETTE_SERVE_ARGS+="--immutable=/mnt/datasets/$KEY.sqlite3 " From cd5bd361b925e0ef33b23f90f46ab24a89056144 Mon Sep 17 00:00:00 2001 From: Samriti Sadhu Date: Tue, 16 Jul 2024 14:08:43 +0100 Subject: [PATCH 2/3] rolling back change for test --- startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index afcae1a..6c71149 100755 --- a/startup.sh +++ b/startup.sh @@ -3,7 +3,7 @@ DATASETTE_PID=0 start_datasette() { - DATASETTE_SERVE_ARGS="-h 0.0.0.0 -p $PORT --setting sql_time_limit_ms 10000 --nolock --immutable=/mnt/datasets/digital-land.sqlite3 --immutable=/mnt/datasets/performance.sqlite3 " + DATASETTE_SERVE_ARGS="-h 0.0.0.0 -p $PORT --setting sql_time_limit_ms 10000 --nolock --immutable=/mnt/datasets/digital-land.sqlite3 " for KEY in $(jq -rc 'keys[]' /mnt/datasets/inspect-data-all.json); do DATASETTE_SERVE_ARGS+="--immutable=/mnt/datasets/$KEY.sqlite3 "; From 43c629bc1e4c9117c96b26ee5aca0c93573fd0f5 Mon Sep 17 00:00:00 2001 From: Samriti Sadhu Date: Tue, 16 Jul 2024 15:47:34 +0100 Subject: [PATCH 3/3] Adding performance DB --- startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index 6c71149..afcae1a 100755 --- a/startup.sh +++ b/startup.sh @@ -3,7 +3,7 @@ DATASETTE_PID=0 start_datasette() { - DATASETTE_SERVE_ARGS="-h 0.0.0.0 -p $PORT --setting sql_time_limit_ms 10000 --nolock --immutable=/mnt/datasets/digital-land.sqlite3 " + DATASETTE_SERVE_ARGS="-h 0.0.0.0 -p $PORT --setting sql_time_limit_ms 10000 --nolock --immutable=/mnt/datasets/digital-land.sqlite3 --immutable=/mnt/datasets/performance.sqlite3 " for KEY in $(jq -rc 'keys[]' /mnt/datasets/inspect-data-all.json); do DATASETTE_SERVE_ARGS+="--immutable=/mnt/datasets/$KEY.sqlite3 ";