16 lines
547 B
Bash
16 lines
547 B
Bash
#!/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"
|