Реализация лабораторной 2: PostgreSQL, сессии, Valkey-кэш
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# Seed 12 000 synthetic messages in a dedicated chat and capture the plans for
|
||||
# the first page, a deep keyset page and the naive OFFSET alternative.
|
||||
# Output goes to evidence/explain-history.txt (text, no secrets).
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
mkdir -p evidence
|
||||
|
||||
docker compose --env-file .env exec -T postgres \
|
||||
psql -X -U messenger -d messenger -v ON_ERROR_STOP=1 -f - \
|
||||
< scripts/explain-history.sql > evidence/explain-history.txt 2>&1
|
||||
|
||||
cat evidence/explain-history.txt
|
||||
printf '%s\n' "saved evidence/explain-history.txt"
|
||||
Reference in New Issue
Block a user