forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL, сессии в Valkey, трек 2
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
TOTAL=${TOTAL:-10000}
|
||||
PSQL="docker compose --env-file .env exec -T postgres psql -U messenger -d messenger -X -q"
|
||||
|
||||
echo "=== Стенд ==="
|
||||
docker compose --env-file .env ps --format '{{.Service}} {{.Image}} {{.Status}}'
|
||||
echo
|
||||
echo "=== Засев $TOTAL сообщений с неравномерными чатами ==="
|
||||
$PSQL -v total="$TOTAL" -f - < student-tests/seed.sql
|
||||
echo
|
||||
echo "=== План запроса истории ==="
|
||||
$PSQL -f - < student-tests/explain.sql
|
||||
Reference in New Issue
Block a user