Реализация лабораторной 2: PostgreSQL, сессии, Valkey-кэш
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Tmribob
2026-10-30 19:37:21 +03:00
parent 65003b6119
commit 3df9b09896
44 changed files with 3519 additions and 17 deletions
+15
View File
@@ -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"