diff --git a/.dockerignore b/.dockerignore index bc16e556..e6fa656c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,5 @@ .git +.gitignore .github .env .env.* @@ -18,3 +19,8 @@ __pycache__ node_modules evidence .DS_Store +README.md +REPORT.md +COURSE.md +CONTRIBUTING.md +MAINTAINERS.md diff --git a/.env.example b/.env.example index 714c8076..1a20e778 100644 --- a/.env.example +++ b/.env.example @@ -1,11 +1,7 @@ # Copy to .env for your LOCAL synthetic test environment; never commit .env. # These are logical interface suggestions; map actual framework names in REPORT.md. -APP_HOST=0.0.0.0 -APP_PORT=8080 -APP_ENV=lab +POSTGRES_DB=messenger +POSTGRES_USER=messenger +# Replace with a random local value before starting Compose. +POSTGRES_PASSWORD=replace-with-local-random-password SESSION_TTL_SECONDS=3600 -# Choose credentials locally. File paths contain no secret values. -DATABASE_URL_FILE=/run/secrets/database_url -# Optional on 3, required use on 4 in lab2; Redis OR Valkey: -SESSION_STORE=postgres -CACHE_URL_FILE=/run/secrets/cache_url diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8ceefa10..a8e03e1c 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,18 +1,22 @@ ## Лабораторная 2 -Автор / группа: TODO -Целевая оценка (3/4/5): TODO -Трек 5, если заявлен: TODO +Автор / группа: Гришко Дмитрий Михайлович, БВТ2303 +Целевая оценка: 5 +Трек: 2 — план запроса и восстановление -Что реализовано и что перенесено: TODO -Команды запуска из чистого clone: TODO -Результаты проверок и ссылка на REPORT.md: TODO -Ограничения / известные ошибки: TODO -Источники и использование ИИ: TODO +Перенесён API лабораторной 1. Добавлены PostgreSQL, пароли Argon2id, Basic/Bearer-аутентификация, Redis-сессии с TTL и AOF, миграции, frontend и отдельный воспроизводимый эксперимент трека 2. -- [ ] Весь обязательный минимум текущей и предыдущих работ сохранён с объявленными переходами. -- [ ] Контракт и публичные тесты не ослаблены. -- [ ] make check и make test выполнены; приложен реальный вывод. -- [ ] Сценарии отказов/безопасности своего уровня воспроизведены. -- [ ] Все секреты и приватные ключи находятся вне Git; отчёт не содержит tokens. -- [ ] README задания сохранён, REPORT.md содержит инструкцию именно моего решения. +Запуск: [инструкция в REPORT.md](../REPORT.md). Проверки: `make check`, `make test`, `make test-backend` с `-race`, `make test-persistence ACTION_SCRIPT=scripts/restart.sh`, `go vet`, сборка frontend. Для каждого критерия приведены команды и фактический вывод в [доказательствах](../evidence/criteria). + +Трек 2: 120 000 сообщений в трёх чатах, обычный и покрывающий индексы, keyset и OFFSET, стоимость INSERT/WAL, восстановление в новый том со сверкой счётчиков и девяти сообщений. Результаты и ограничения — в [REPORT.md](../REPORT.md). + +Ограничения: один экземпляр каждого сервиса, общий хост, синтетические данные и тёплый кэш; без PITR теряются изменения после dump, Redis AOF everysec допускает потерю последних записей при аварии хоста. + +Источники: задание, публичный контракт, документация PostgreSQL, Redis, Go и golang-migrate. Помощь ИИ: OpenAI Codex — реализация, проверка и оформление. + +- [x] Весь обязательный минимум текущей и предыдущих работ сохранён с объявленными переходами. +- [x] Контракт и публичные тесты не ослаблены. +- [x] make check и make test выполнены; приложен реальный вывод. +- [x] Сценарии отказов/безопасности своего уровня воспроизведены. +- [x] Все секреты и приватные ключи находятся вне Git; отчёт не содержит tokens. +- [x] README задания сохранён, REPORT.md содержит инструкцию именно моего решения. diff --git a/.gitignore b/.gitignore index b5a71896..5e6fc457 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,10 @@ target/ bin/ obj/ coverage/ +.vite/ +*.tsbuildinfo +*.test +*.out *.log .DS_Store .idea/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..c34078af --- /dev/null +++ b/Dockerfile @@ -0,0 +1,39 @@ +FROM golang:1.22.2-bookworm AS builder + +WORKDIR /src + +COPY go.mod go.sum ./ + +RUN go mod download + +COPY src/backend ./src/backend + +RUN CGO_ENABLED=0 \ + GOOS=linux \ + go build \ + -trimpath \ + -ldflags="-s -w" \ + -o /out/messenger \ + ./src/backend + + +FROM debian:12.15-slim + +RUN groupadd --system app \ + && useradd --system --gid app --no-create-home app + +WORKDIR /app + +COPY --from=builder /out/messenger ./messenger + +ENV APP_HOST=0.0.0.0 +ENV APP_PORT=8080 + +EXPOSE 8080 + +HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \ + CMD ["./messenger", "healthcheck"] + +USER app:app + +CMD ["./messenger"] diff --git a/Makefile b/Makefile index 9ecb223e..bb0e3ade 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,64 @@ -PYTHON ?= python3 -BASE_URL ?= http://localhost:8080 -CA_FILE ?= +PYTHON ?= python3 +BASE_URL ?= http://localhost:8080 +CA_FILE ?= ACTION_SCRIPT ?= +COMPOSE = docker compose --env-file .env TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",) +RUN_ID ?= +TRACK2 = $(PYTHON) src/experiments/track2/run.py -.PHONY: help check validate test load test-persistence +.PHONY: help app-up app-down app-logs check validate test test-backend load test-persistence help: - @echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes" + @echo "track2-run RUN_ID=: isolated query, write and backup/restore experiment" + @echo "track2-status / track2-stop / track2-clean RUN_ID=: inspect, stop or delete only experiment volumes; archives remain" + @echo "app-up: build and start API, PostgreSQL, Redis and frontend (http://localhost:5173)" + @echo "app-down: stop the application and keep PostgreSQL and Redis data" + @echo "app-logs: follow service logs" + @echo "check: offline contract structure" + @echo "validate: full OpenAPI validation (install requirements-dev.txt first)" + @echo "test: public API smoke test (run app-up first)" + @echo "test-backend: Go race tests with PostgreSQL and Redis in isolated schemas" + @echo "test-persistence ACTION_SCRIPT=scripts/restart.sh: restart API, PostgreSQL and Redis; verify data and session (run app-up first)" + @echo "load: synthetic API writes" -check: - $(PYTHON) scripts/check_contract.py +app-up: + $(COMPOSE) up -d --build --wait -validate: - $(PYTHON) scripts/validate_openapi.py +app-down: + $(COMPOSE) down +app-logs: + $(COMPOSE) logs -f + +check: + $(PYTHON) scripts/check_contract.py + +validate: + $(PYTHON) scripts/validate_openapi.py + test: $(PYTHON) tests/smoke.py --base-url "$(BASE_URL)" $(TLS_ARGS) -load: - $(PYTHON) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS) - -test-persistence: - @test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable restart hook"; exit 2) - $(PYTHON) tests/resilience.py --mode persistence --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS) +test-backend: + $(COMPOSE) --profile test run --build --rm backend-tests + +load: + $(PYTHON) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS) + +test-persistence: + @test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable restart hook"; exit 2) + $(PYTHON) tests/resilience.py --mode persistence --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS) + +.PHONY: track2-run track2-status track2-stop track2-clean +track2-run: + $(TRACK2) run --run-id "$(RUN_ID)" + +track2-status: + $(TRACK2) status --run-id "$(RUN_ID)" + +track2-stop: + $(TRACK2) stop --run-id "$(RUN_ID)" + +track2-clean: + $(TRACK2) clean --run-id "$(RUN_ID)" diff --git a/REPORT.md b/REPORT.md index e42f2b05..87b9a629 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,37 +1,186 @@ # Отчёт — лабораторная 2 -- Автор, группа: TODO -- Целевая оценка; выбранный трек 5, если нужен: TODO -- Commit/PR: TODO после публикации -- Использованные источники, библиотеки и помощь ИИ: TODO +- Автор, группа: Гришко Дмитрий Михайлович, БВТ2303 +- Целевая оценка: **5**, трек 2 +- Ветка: `solution/BVT2303-grishko` +- PR: [ссылка на Pull Request](https://gitea.privcloud.tech/mtusi2026/mtusi2026lab2/pulls/1) +- Источники: [задание](README.md), [контракт](contracts/README.md), [проверки](tests/README.md), [golang-migrate](https://github.com/golang-migrate/migrate), документация PostgreSQL и Go +- Зависимости: Go 1.22.2, PostgreSQL 16.10, Redis 7.4.11, `pgx/v5`, `go-redis/v9`, `golang-migrate/v4`, `x/crypto/argon2`, `google/uuid`; frontend — Vite, React, TypeScript; +- Помощь ИИ: OpenAI Codex — реализация и проверка кода -## Запуск из чистого clone +## Запуск из чистой копии -TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных. +Нужны Docker Engine с Compose v2, Python 3.9+, Make и OpenSSL. Backend и frontend собираются в Docker; отдельная установка Go и Node.js не требуется. Команды приведены для Linux/WSL в корне репозитория. + +### 1. Клонирование и настройка + +```sh +git clone --branch solution/BVT2303-grishko https://gitea.privcloud.tech/TAskMAster339/mtusi2026lab2-fork.git +cd mtusi2026lab2-fork +cp .env.example .env +sed -i "s/replace-with-local-random-password/$(openssl rand -hex 24)/" .env +``` + +`openssl rand -hex 24` генерирует случайный пароль PostgreSQL. Вместо этой команды можно вручную заменить `POSTGRES_PASSWORD` в `.env` длинным случайным значением. + +### 2. Запуск проекта + +```sh +docker compose --env-file .env config --quiet +make app-up +``` + +### 3. Тесты и эксперимент + +```sh +make check +make test +make test-backend +make test-persistence ACTION_SCRIPT=scripts/restart.sh +docker compose --env-file .env run --rm --no-deps backend-tests go vet ./src/backend/... +docker compose --env-file .env exec frontend npm run build +make track2-run RUN_ID=lab2-grade5-01 +``` + +- База доступна только внутри Compose-сети; +- HTTP API опубликован на `127.0.0.1:8080`, frontend — на `127.0.0.1:5173`. Миграции `up` применяются автоматически перед запуском HTTP-сервера и встроены из `src/backend/repositories/migrations`. Применение вручную: `docker compose --env-file .env run --rm --no-deps api migrate up` при уже запущенной БД. Откат **одной** версии: остановить API командой `docker compose --env-file .env stop api`, затем выполнить `docker compose --env-file .env run --rm --no-deps api migrate down`. Откат версии 2 восстанавливает пустую таблицу sessions; откат начальной версии 1 удаляет таблицы и их данные. + +- Безопасная остановка: `docker compose --env-file .env down` — volume сохранится. Намеренное удаление учебных данных: `docker compose --env-file .env down -v`. После смены пароля в `.env` для уже инициализированного volume надо отдельно менять пароль роли PostgreSQL; ## Архитектура и решения -TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab1, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации. +```text +Браузер → React frontend → Go net/http API → PostgreSQL (пользователи, чаты, сообщения) + → Redis (сессии с TTL и AOF) +``` + +- Перенесены модели, маршруты, валидация JSON и курсоры из лабораторной 1. Работа с БД находится в `repositories`, бизнес-логика — в `services`, обработка HTTP — в `handlers`, тесты — в `tests` внутри `src/backend`; +- прежние in-memory коллекции удалены. Публичная регистрация теперь требует пароль. На `POST /api/v1/auth/sessions` допускается только Basic; +- остальные защищённые маршруты проходят через проверку Bearer. Идентификатор пользователя передаётся обработчикам через контекст запроса, `X-User-Id` игнорируется. + +| Таблица | Ключи и ограничения | Назначение | +| --- | --- | --- | +| `users` | PK `id`, UNIQUE `username`, CHECK длины и формата | Пользователи и хеши паролей | +| `chats` | PK `id`, CHECK длины названия | Чаты | +| `chat_members` | PK `(chat_id,user_id)`, FK на обе таблицы, индекс `(user_id,chat_id)` | Членство и выборка доступных чатов | +| `messages` | PK `id`, FK на чат и отправителя, индекс `(chat_id,created_at,id)` | История и keyset-пагинация | + +Сессии хранятся в Redis: ключ `messenger:session:`, значение — ID пользователя; срок действия задаётся TTL. Именованный том Redis хранит AOF с `appendfsync everysec`. + +Создание чата и всех записей членства — одна транзакция: при ошибке ни чат, ни часть участников не сохраняются. Регистрация и отправка сообщения выполняются отдельными атомарными SQL-операциями; создание и отзыв сессии — командами Redis SET с TTL и DEL. Все SQL-параметры передаются через `pgx`. Чтение истории выполняет `ORDER BY created_at,id LIMIT limit+1` с условием курсора. Время сообщения назначается в API; при конкурентных вставках между страницами единый snapshot всей истории не обещается. + +Пароль обрабатывается Argon2id: память 64 MiB, 3 итерации, параллелизм 2, случайная соль 16 байт и производный ключ 32 байта. В колонке `password_hash` хранится PHC-строка с алгоритмом, параметрами, солью и хешем. Значение не входит в API-ответ. Токен сессии содержит 256 случайных бит; в Redis используется его SHA-256. Каждый защищённый запрос проверяет сессию в Redis и наличие пользователя в PostgreSQL. Истечение обеспечивается TTL, logout удаляет ключ. `GET /health/ready` проверяет обе зависимости; их недоступность возвращает 503, неверный или истёкший токен — 401. + +`golang-migrate` хранит номер версии и признак незавершённой миграции в `schema_migrations`. Версия 1 создаёт исходную схему; версия 2 удаляет таблицу PostgreSQL-сессий после перехода на Redis. Обе миграции имеют up/down, повторный up не создаёт данные заново. Откат проверен на отдельной БД: `2 → 1 → 2`, `dirty=false`. + +Пул PostgreSQL ограничен 10 соединениями; подключение и SQL-операции имеют таймаут 5 секунд. Пул Redis — 10 соединений, сетевые таймауты — 1 секунда. HTTP: чтение заголовков 5 секунд, чтение/запись 10 секунд, idle 60 секунд. `scripts/restart.sh` сначала перезапускает PostgreSQL и Redis и ждёт их готовности, затем перезапускает API; тома сохраняются. + +Переменные из `.env.example`: `POSTGRES_DB` задаёт имя базы, `POSTGRES_USER` — роль, `POSTGRES_PASSWORD` — локальный пароль для PostgreSQL и строки подключения API, `SESSION_TTL_SECONDS` — срок жизни сессии (по умолчанию 3600 секунд). `APP_HOST=0.0.0.0` и `APP_PORT=8080` задаются в Compose; внешний порт привязан к `127.0.0.1`. ## Доказательства критериев | Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства | | --- | --- | --- | --- | -| Публичный smoke | make test | TODO | TODO | -| Остальные пункты уровня 3 | TODO | TODO | TODO | -| Все пункты уровня 4, если заявлен | TODO | TODO | TODO | -| Выбранный трек 5, если заявлен | TODO | TODO | TODO | - -TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены. +| Публичный smoke, API lab1 с новой аутентификацией | `make test` | `PASS: lab2 public API scenario`; проверены Basic, Bearer, членство, пагинация, logout | [Публичный smoke и API](evidence/criteria/01-smoke.md) | +| PostgreSQL: пользователи, чаты, членство, сообщения, ключи и индексы | запуск на чистом volume, SQL-проверка схемы | версия миграции `2`, `dirty=false`; отдельной колонки `password_salt` нет | [Чистая схема PostgreSQL, ключи и индексы](evidence/criteria/02-postgresql-schema.md) | +| Атомарное создание чата | `make test-backend`, ошибка вставки второго участника | транзакция откатывается: чат и участники отсутствуют | [Атомарное создание чата](evidence/criteria/03-chat-atomicity.md) | +| Argon2id, Basic для входа, Bearer, expiry и logout | `make test`, `make test-backend`; TTL 2 секунды | неверный пароль и старый заголовок отклонены; истёкший токен получил `401` | [Argon2id, Basic, Bearer, TTL и logout](evidence/criteria/04-authentication.md) | +| Redis-сессии и сохранность при перезапуске | `make test-persistence ACTION_SCRIPT=scripts/restart.sh` | PASS с прежним токеном после рестарта API, PostgreSQL и Redis | [Сохранность данных и Redis-сессии](evidence/criteria/05-session-persistence.md) | +| Повторный запуск миграции и откат | `up → down → up` на отдельной БД | версии `2 → 1 → 2`, `dirty=false`; таблица sessions восстанавливается пустой и удаляется вновь | [Повторное применение и откат миграций](evidence/criteria/06-migrations.md) | +| Стенд, volumes и секреты | `docker compose --env-file .env config --quiet`, `git check-ignore .env` | API, БД, Redis и frontend healthy; именованные тома; `.env` исключён из Git | [Стенд, тома и исключение секретов из Git](evidence/criteria/07-compose-secrets.md) | +| Локальные проверки кода | `make check`, `make test-backend`, `go vet ./...` | PASS, backend-тесты с `-race` | [Проверки кода и race detector](evidence/criteria/08-code-checks.md) | +| Ограничение ресурсов и таймауты | проверка конфигурации пулов и HTTP, `make test-backend` | PostgreSQL/Redis: пулы по 10; таймауты подключения, запросов и HTTP заданы | [Пулы, таймауты и параметризованные SQL](evidence/criteria/09-resource-limits.md) | +| Отказ зависимостей | остановка Redis и PostgreSQL по очереди | readiness и защищённый запрос — 503, анонимный запрос — 401; после запуска сервисов прежний токен работает | [Отказ Redis и PostgreSQL](evidence/criteria/10-dependency-failures.md) | +| История на 10 000 сообщений | EXPLAIN первой и поздней страниц | Index Scan по messages_history_idx, по 51 строке без полного сканирования истории | [План истории на 10 000 сообщений](evidence/criteria/11-history-10000.md) | ## Эксперименты и отказы -TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения. +Проверки приложения выполнены на отдельном Compose-стенде с новыми томами PostgreSQL и Redis. Миграции применились с нуля до версии 2, dirty=false; PostgreSQL, Redis, API и frontend стали healthy. Smoke, backend-тесты с race detector, штатный persistence, go vet и сборка frontend завершились успешно. Результаты: [API](evidence/criteria/01-smoke.md), [persistence](evidence/criteria/05-session-persistence.md), [backend-тесты и сборка](evidence/criteria/08-code-checks.md). | Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных | | --- | --- | --- | --- | -| TODO | TODO | TODO | TODO | +| `scripts/restart.sh` | API, PostgreSQL и Redis перезапускаются с сохранением томов | persistence PASS: прежний токен прочитал подтверждённые данные; все сервисы healthy | подтверждённые данные и действующая сессия сохранились | +| TTL 2 секунды и logout | истёкшая или отозванная сессия отклоняется | сразу после создания HTTP 200; после истечения TTL и после logout HTTP 401 | сессия удаляется по TTL или явно | +| Неверный пароль и анонимный запрос | доступ отклоняется | HTTP 401; X-User-Id не заменяет Bearer | данные не изменяются | +| Недоступность Redis / PostgreSQL | readiness и защищённый запрос возвращают 503 | автоматические тесты PASS; анонимный запрос возвращает 401 | после восстановления зависимостей запрос с действующей сессией работает | +| Конкурентная регистрация одного username | создаётся один пользователь | ответы 201 и 409, в БД одна строка | ограничение UNIQUE предотвращает дубликат | +| Ошибка вставки второго участника чата | вся составная операция откатывается | chats=0, chat_members=0 | частичные данные не сохраняются | +| Откат миграции на отдельной БД | восстанавливается предыдущая версия схемы | `2 → 1 → 2`, dirty=false; sessions восстанавливается пустой и вновь удаляется | проверка на отдельной БД; прежние Redis-сессии обратно в PostgreSQL не переносятся | + +## Оценка «5»: трек 2 — план запроса и восстановление + +### Гипотеза и методика + +Гипотеза сформулирована до измерений: курсор `(created_at,id)` с индексом `(chat_id,created_at,id)` позволяет читать около размера страницы независимо от её глубины; `OFFSET` на поздней странице обрабатывает пропущенные строки. Покрывающий индекс с `INCLUDE(sender_id,text)` может ускорить чтение, но увеличит размер индекса и WAL вставок. Backup должен восстановить данные на момент снимка, а запись после backup должна отсутствовать в восстановленной копии. Гипотеза и методика: [протокол эксперимента](evidence/track2.md). + +Эксперимент запускается отдельно командой `make track2-run RUN_ID=<уникальное-имя>`. Файл [compose.track2.yaml](compose.track2.yaml) создаёт отдельный проект, сеть и два тома PostgreSQL; рабочая БД приложения не участвует. [Сценарий](src/experiments/track2/run.py) применяет существующие миграции, а [seed.sql](src/experiments/track2/seed.sql) создаёт одного синтетического пользователя и три чата: 100 000, 15 000 и 5 000 сообщений. UUID, тексты и времена детерминированы. В каждом новом прогоне схема и данные создаются с нуля; повторное использование RUN_ID отклоняется. Порты БД на хост не публикуются. + +Измеряется PostgreSQL 16.10, один последовательный клиент, без параллельной нагрузки. Для каждого из двух индексов выполняется `VACUUM (ANALYZE)`, один прогрев и семь измерений первой и поздней страницы каждого чата через `EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)`. Страница содержит 50 сообщений; поздняя начинается после 90% истории. Для каждого чата сравниваются курсор и OFFSET, а равенство возвращаемых строк проверяется автоматически. Отдельно сохраняются время выполнения (медиана и диапазон), тип сканирования, число строк, буферы и размер индекса. Время клиента и Docker exec не включается во время SQL. + +Стоимость записи сравнивается на трёх вспомогательных таблицах с одинаковым PK: без индекса истории, с обычным индексом и с покрывающим. Источник вставки одинаковый: первые 10 000 сообщений, предварительно подготовленные в отдельной таблице. Перед каждой вставкой — TRUNCATE; один прогрев и семь измерений `EXPLAIN (ANALYZE, BUFFERS, WAL, FORMAT JSON)`. Вспомогательные таблицы без FK, удаляются до backup. Это стоимость пакетной вставки в пустую таблицу с индексами, а не производительность HTTP API. + +После возвращения обычного индекса создаётся `pg_dump -Fc`; в источник добавляется сообщение-маркер. Архив восстанавливается `pg_restore --exit-on-error` в новую БД на втором томе. Проверяется полное равенство счётчиков пяти таблиц, числа сообщений по чатам и девяти выбранных сообщений (первое, среднее, последнее в каждом чате). Маркер должен присутствовать в источнике и отсутствовать в копии. Измеряются время dump, размер архива, время pg_restore и полное время запуска нового хранилища, восстановления и проверки. Сверяются все поля выбранных сообщений, а не только ID. + +### Характеристики, результаты и доказательства + +Измерения выполнены 01.10.2026: Windows / WSL2 Ubuntu, AMD Ryzen 9 PRO 7940HS (8 ядер, 16 потоков), Docker Engine 28.5.1, Compose 2.40.2. Docker видит 16 CPU и около 7,4 GiB RAM; отдельные CPU/RAM лимиты контейнеров не заданы. PostgreSQL 16.10: shared_buffers=128 MiB, work_mem=4 MiB, effective_cache_size=4 GiB, fsync=on, synchronous_commit=on, full_page_writes=on. Хост общий; профиль теста — один последовательный SQL-клиент, 120 000 коротких сообщений, страницы по 50 строк. + +Основной прогон — `20261001-c`, контрольный — `20261001-b`. Данные и SQL одинаковые. В каждом сохранено 126 планов чтения и 21 план вставки — семь измерений на вариант после одного прогрева. Параметры среды и SHA-256 текущего сценария, Compose, seed и миграций сохранены в [manifest.json](evidence/track2/20261001-c/manifest.json). + +Медианы времени PostgreSQL основного прогона, миллисекунды: + +| Чат | Индекс | Первая страница, курсор | Поздняя страница, курсор | Поздняя страница, OFFSET | +| --- | --- | --- | --- | --- | +| 100 000 | Обычный | 0,111 | 0,145 | 18,060 | +| 100 000 | Покрывающий | 0,132 | 0,160 | 19,628 | +| 15 000 | Обычный | 0,162 | 0,158 | 8,073 | +| 15 000 | Покрывающий | 0,249 | 0,138 | 2,403 | +| 5 000 | Обычный | 0,116 | 0,122 | 2,940 | +| 5 000 | Покрывающий | 0,136 | 0,143 | 1,002 | + +Все курсорные сканы возвращали 50 строк. Для большого чата OFFSET обработал 90 050 строк. В первом измеренном плане обычный индекс использовал 6 shared hit blocks для позднего курсора и 1933 для OFFSET; покрывающий — 5 и 1237. Shared read blocks этих планов равны нулю: чтение шло из кэша PostgreSQL. Курсорные запросы с обычным индексом использовали Index Scan, с покрывающим — Index Only Scan с Heap Fetches=0. Для OFFSET среднего и малого чатов с обычным индексом PostgreSQL выбрал Bitmap Index Scan → Bitmap Heap Scan → Sort, прочитав все 15 000 и 5 000 строк соответствующего чата. Диапазон времени позднего курсора большого чата с обычным индексом — 0,111–0,175 мс, OFFSET — 16,037–23,447 мс. Полные планы всех повторов сохранены. + +| Индексы вспомогательной таблицы | INSERT 10 000, медиана мс | Диапазон мс | WAL, медиана байт | Размер всех индексов после вставки, байт | +| --- | --- | --- | --- | --- | +| Только PK | 34,362 | 31,466–35,912 | 2 319 396 | 417 792 | +| PK + обычный индекс истории | 48,760 | 43,652–62,255 | 3 343 720 | 1 024 000 | +| PK + покрывающий индекс истории | 46,544 | 45,157–51,712 | 3 897 536 | 1 572 864 | + +На 120 000 сообщениях размер обычного индекса истории — 7 086 080 байт, покрывающего — 13 574 144 байта. Размер таблицы в обоих случаях — 14 049 280 байт. + +### Анализ результатов + +Гипотеза о курсоре подтверждена для проверенных страниц: первая и поздняя страницы читают по 50 строк. OFFSET большого чата обрабатывает в 1 801 раз больше строк; его медиана примерно в 125 раз выше медианы позднего курсора. В контрольном прогоне поздний курсор занимал 0,171 мс, OFFSET — 18,651 мс. Курсор заранее известен клиенту; его получение для подготовки эксперимента не входит в измерение страницы. + +Покрывающий индекс устранил обращения к таблице после VACUUM, но устойчивого ускорения коротких курсорных страниц не показал. Его размер примерно в 1,92 раза больше, WAL вставки — на 16,6% больше обычного индекса. В основном прогоне медиана INSERT с покрывающим индексом (46,544 мс) ниже обычного (48,760 мс), тогда как в контрольном — выше. Диапазоны времени перекрываются. Поэтому гипотеза о росте затрат подтверждается размером и WAL, но устойчивое замедление INSERT по времени не доказано. Для текущей пагинации сохранён обычный индекс. + +Гипотеза о восстановлении подтверждена: в новой БД получены 1 пользователь, 3 чата, 3 записи членства, 120 000 сообщений и одна строка schema_migrations. Распределение 100 000 / 15 000 / 5 000 и все поля девяти выбранных сообщений совпали с источником до backup. После добавления маркера источник содержит 120 001 сообщение, копия — 120 000; маркер в копии отсутствует. Контрольные данные совпали между независимыми прогонами; SHA-256 архивов проверены: [сверка повторяемости](evidence/track2/repeatability.json). + +| Прогон | Время dump, с | Размер архива, байт | Время pg_restore, с | Запуск нового хранилища + restore + вся сверка, с | +| --- | --- | --- | --- | --- | +| 20261001-b | 1,903 | 3 613 568 | 2,172 | 29,519 | +| 20261001-c | 1,649 | 3 613 568 | 2,026 | 27,816 | + +Время dump/restore включает передачу архива и накладные расходы Docker. Полное время включает инициализацию нового тома, ожидание готовности и контрольные запросы. Размер архива — около 3,45 MiB. До завершения первого проверенного запроса SELECT count(*) FROM users прошло 8,615 с: [расчёт по журналу](evidence/track2/20261001-c/first-query.json). Полная сверка завершилась за 27,816 с. + +### Файлы и повторение + +Планы запросов, сводки, характеристики среды и результаты сверки сохранены в `evidence/track2//`. Бинарный архив создаётся при запуске эксперимента и не включается в Git. Повтор: `make track2-run RUN_ID=my-repeat-01` с новым идентификатором. Предыдущие данные сохраняются. `make track2-status RUN_ID=...` показывает состояние, `make track2-stop RUN_ID=...` останавливает сервисы, `make track2-clean RUN_ID=...` удаляет только тома указанного эксперимента и сохраняет доказательства. + +| Критерий трека 2 | Команда / сценарий | Наблюдаемый результат | Файл доказательства | +| --- | --- | --- | --- | +| ≥100 000 сообщений, неравномерные чаты | make track2-run RUN_ID=20261001-c | 120 000 сообщений: 100 000 / 15 000 / 5 000 | [Трек 2: объём и распределение истории](evidence/criteria/12-track2-dataset.md) | +| ≥2 индекса/запроса и стоимость записи | 2 индекса × 3 чата × 3 варианта чтения; 3 варианта INSERT | 126 EXPLAIN чтения и 21 вставки; время, WAL и размеры | [Трек 2: чтение и стоимость записи](evidence/criteria/13-track2-indexes.md) | +| Backup → новое хранилище → сверка | pg_dump -Fc → pg_restore --exit-on-error | Новый том; счётчики и 9 сообщений совпали, пост-backup маркер отсутствует | [Трек 2: backup и восстановление](evidence/criteria/14-track2-recovery.md) | + +### Ограничения методики и границы потери данных + +Измерения относятся к одному общему хосту, коротким синтетическим сообщениям, уникальным временам и тёплому кэшу. Проверялся один последовательный SQL-клиент; HTTP latency, RPS и конкурентная нагрузка не измерялись. Варианты выполнялись последовательно; на результаты могли влиять кэш, checkpoint и внешняя нагрузка. EXPLAIN ANALYZE добавляет затраты измерения. Время INSERT и его WAL не включают TRUNCATE и COMMIT/fsync, но включают сортировку общего входа. Вспомогательные таблицы не имеют FK. Обычный индекс заполнялся вставками, покрывающий строился после заполнения таблицы; плотность страниц влияет на сравнение размеров. Нулевые heap fetches получены после VACUUM; при частых изменениях Index Only Scan может обращаться к таблице. + +Резервная копия PostgreSQL содержит согласованный снимок; последующие записи в него не входят. Без архивации WAL и восстановления на момент времени (PITR) граница потери данных — изменения после последнего dump. Redis-сессии в архив PostgreSQL не входят; они сохраняются отдельно через AOF с everysec. При аварийной потере хоста возможна потеря примерно последней секунды записей Redis. Архивы находятся на том же хосте, поэтому для защиты от его потери нужна внешняя копия. Время восстановления относится к измеренному объёму и оборудованию. Сверка подтверждает количество строк и содержимое девяти выбранных сообщений. + +Источники методики: [EXPLAIN PostgreSQL 16](https://www.postgresql.org/docs/16/sql-explain.html), [Index Only Scan и INCLUDE](https://www.postgresql.org/docs/16/indexes-index-only-scans.html), [pg_dump](https://www.postgresql.org/docs/16/app-pgdump.html). ## Ограничения и следующие шаги -TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза. +Стенд использует по одной копии API, PostgreSQL и Redis. Проверены перезапуск с сохранением данных и сессии, резервное копирование PostgreSQL и восстановление в отдельное хранилище. Следующие шаги — автоматизация периодических backup с хранением вне хоста, архивация WAL для PITR и проверка восстановления на большем объёме данных. Для удалённого размещения нужны TLS и управление секретами. diff --git a/compose.track2.yaml b/compose.track2.yaml new file mode 100644 index 00000000..f8c633d6 --- /dev/null +++ b/compose.track2.yaml @@ -0,0 +1,35 @@ +services: + source: + image: postgres:16.10-bookworm + environment: &database_environment + POSTGRES_DB: messenger_track2 + POSTGRES_USER: track2 + POSTGRES_PASSWORD: track2_local_only + volumes: + - source_data:/var/lib/postgresql/data + healthcheck: &database_healthcheck + test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] + interval: 3s + timeout: 3s + retries: 20 + + restore: + image: postgres:16.10-bookworm + environment: *database_environment + volumes: + - restore_data:/var/lib/postgresql/data + healthcheck: *database_healthcheck + + migrator: + profiles: ["tools"] + build: . + environment: + DATABASE_URL: postgres://track2:track2_local_only@source:5432/messenger_track2?sslmode=disable + depends_on: + source: + condition: service_healthy + command: ["./messenger", "migrate", "up"] + +volumes: + source_data: + restore_data: diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 00000000..1e3232b3 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,80 @@ +services: + redis: + image: redis:7.4.11-bookworm + command: ["redis-server", "--appendonly", "yes", "--appendfsync", "everysec", "--dir", "/data"] + volumes: + - redis_data:/data + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 3s + timeout: 3s + retries: 20 + db: + image: postgres:16.10-bookworm + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + volumes: + - postgres_data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] + interval: 3s + timeout: 3s + retries: 20 + api: + build: . + environment: + APP_HOST: 0.0.0.0 + APP_PORT: 8080 + SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600} + REDIS_ADDR: redis:6379 + DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable + ports: + - "127.0.0.1:8080:8080" + depends_on: + db: + condition: service_healthy + redis: + condition: service_healthy + healthcheck: + test: ["CMD", "./messenger", "healthcheck"] + interval: 5s + timeout: 3s + retries: 20 + backend-tests: + profiles: ["test"] + build: + context: . + target: builder + environment: + TEST_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable + TEST_REDIS_ADDR: redis:6379 + depends_on: + db: + condition: service_healthy + redis: + condition: service_healthy + command: ["go", "test", "-race", "-count=1", "-v", "./src/backend/..."] + frontend: + build: + context: ./src/frontend + environment: + API_PROXY_TARGET: http://api:8080 + ports: + - "127.0.0.1:5173:5173" + volumes: + - ./src/frontend:/app + - /app/node_modules + depends_on: + api: + condition: service_healthy + healthcheck: + test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:5173/').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"] + interval: 5s + timeout: 3s + retries: 20 + +volumes: + postgres_data: + redis_data: diff --git a/evidence/criteria/01-smoke.md b/evidence/criteria/01-smoke.md new file mode 100644 index 00000000..a485c6a3 --- /dev/null +++ b/evidence/criteria/01-smoke.md @@ -0,0 +1,40 @@ +# Публичный smoke и API + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + + +### Команда + +```sh +make test BASE_URL=http://localhost:18080 +``` + +### Фактический вывод + +```text +python3 tests/smoke.py --base-url "http://localhost:18080" +PASS: lab2 public API scenario; infrastructure and grading evidence remain separate. +``` + +Код завершения: `0`. + +### Проверка API через прокси frontend + +### Команда + +```sh +make test BASE_URL=http://localhost:15173 +``` + +### Фактический вывод + +```text +python3 tests/smoke.py --base-url "http://localhost:15173" +PASS: lab2 public API scenario; infrastructure and grading evidence remain separate. +``` + +Код завершения: `0`. + +Файл: [tests/smoke.py](../../tests/smoke.py). diff --git a/evidence/criteria/02-postgresql-schema.md b/evidence/criteria/02-postgresql-schema.md new file mode 100644 index 00000000..1051fbb9 --- /dev/null +++ b/evidence/criteria/02-postgresql-schema.md @@ -0,0 +1,101 @@ +# Чистая схема PostgreSQL, ключи и индексы + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Команда + +```sh +docker compose --env-file .env exec -T db sh -c 'exec psql -X -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d "$POSTGRES_DB"' +``` + +### SQL, переданный на stdin + +```sql +SELECT version, dirty FROM schema_migrations; +SELECT tablename FROM pg_tables WHERE schemaname='public' ORDER BY tablename; +SELECT table_name, column_name, data_type FROM information_schema.columns +WHERE table_schema='public' ORDER BY table_name, ordinal_position; +SELECT conrelid::regclass AS table_name, conname, pg_get_constraintdef(oid) +FROM pg_constraint WHERE connamespace='public'::regnamespace ORDER BY 1,2; +SELECT tablename,indexname,indexdef FROM pg_indexes WHERE schemaname='public' ORDER BY 1,2; +SELECT (SELECT count(*) FROM users) AS users, (SELECT count(*) FROM chats) AS chats, +(SELECT count(*) FROM chat_members) AS members, (SELECT count(*) FROM messages) AS messages; +``` + +### Фактический вывод + +```text + version | dirty +---------+------- + 2 | f +(1 row) + + tablename +------------------- + chat_members + chats + messages + schema_migrations + users +(5 rows) + + table_name | column_name | data_type +-------------------+---------------+-------------------------- + chat_members | chat_id | uuid + chat_members | user_id | uuid + chats | id | uuid + chats | title | text + chats | created_at | timestamp with time zone + messages | id | uuid + messages | chat_id | uuid + messages | sender_id | uuid + messages | text | text + messages | created_at | timestamp with time zone + schema_migrations | version | bigint + schema_migrations | dirty | boolean + users | id | uuid + users | username | character varying + users | display_name | text + users | password_hash | bytea + users | created_at | timestamp with time zone +(17 rows) + + table_name | conname | pg_get_constraintdef +-------------------+---------------------------+----------------------------------------------------------------------------------- + schema_migrations | schema_migrations_pkey | PRIMARY KEY (version) + users | users_display_name_check | CHECK (((char_length(display_name) >= 1) AND (char_length(display_name) <= 100))) + users | users_pkey | PRIMARY KEY (id) + users | users_username_check | CHECK (((username)::text ~ '^[a-z0-9_]{3,32}$'::text)) + users | users_username_key | UNIQUE (username) + chats | chats_pkey | PRIMARY KEY (id) + chats | chats_title_check | CHECK (((char_length(title) >= 1) AND (char_length(title) <= 100))) + chat_members | chat_members_chat_id_fkey | FOREIGN KEY (chat_id) REFERENCES chats(id) ON DELETE CASCADE + chat_members | chat_members_pkey | PRIMARY KEY (chat_id, user_id) + chat_members | chat_members_user_id_fkey | FOREIGN KEY (user_id) REFERENCES users(id) + messages | messages_chat_id_fkey | FOREIGN KEY (chat_id) REFERENCES chats(id) + messages | messages_pkey | PRIMARY KEY (id) + messages | messages_sender_id_fkey | FOREIGN KEY (sender_id) REFERENCES users(id) + messages | messages_text_check | CHECK (((char_length(text) >= 1) AND (char_length(text) <= 4000))) +(14 rows) + + tablename | indexname | indexdef +-------------------+------------------------+---------------------------------------------------------------------------------------------- + chat_members | chat_members_pkey | CREATE UNIQUE INDEX chat_members_pkey ON public.chat_members USING btree (chat_id, user_id) + chat_members | chat_members_user_idx | CREATE INDEX chat_members_user_idx ON public.chat_members USING btree (user_id, chat_id) + chats | chats_pkey | CREATE UNIQUE INDEX chats_pkey ON public.chats USING btree (id) + messages | messages_history_idx | CREATE INDEX messages_history_idx ON public.messages USING btree (chat_id, created_at, id) + messages | messages_pkey | CREATE UNIQUE INDEX messages_pkey ON public.messages USING btree (id) + schema_migrations | schema_migrations_pkey | CREATE UNIQUE INDEX schema_migrations_pkey ON public.schema_migrations USING btree (version) + users | users_pkey | CREATE UNIQUE INDEX users_pkey ON public.users USING btree (id) + users | users_username_key | CREATE UNIQUE INDEX users_username_key ON public.users USING btree (username) +(8 rows) + + users | chats | members | messages +-------+-------+---------+---------- + 0 | 0 | 0 | 0 +(1 row) +``` + +Код завершения: `0`. diff --git a/evidence/criteria/03-chat-atomicity.md b/evidence/criteria/03-chat-atomicity.md new file mode 100644 index 00000000..89bd100d --- /dev/null +++ b/evidence/criteria/03-chat-atomicity.md @@ -0,0 +1,24 @@ +# Атомарное создание чата + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Выполненная команда + +```sh +make test-backend +``` + +Фрагмент фактического вывода полного запуска [08-code-checks.md](08-code-checks.md); тесты не запускались выборочно. + +```text +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (1.88s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (2.17s) +``` + +Код завершения полного запуска: `0`. + +Файл: [src/backend/tests/grade4_test.go](../../src/backend/tests/grade4_test.go). diff --git a/evidence/criteria/04-authentication.md b/evidence/criteria/04-authentication.md new file mode 100644 index 00000000..f42894d0 --- /dev/null +++ b/evidence/criteria/04-authentication.md @@ -0,0 +1,51 @@ +# Argon2id, Basic, Bearer, TTL и logout + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Выполненная команда + +```sh +make test-backend +``` + +Фрагмент фактического вывода полного запуска [08-code-checks.md](08-code-checks.md); тесты не запускались выборочно. + +```text +=== RUN TestShortSessionTTLAndLogout + grade4_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.091926168s + grade4_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.75s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.37s) +``` + +Код завершения полного запуска: `0`. + +Файл: [src/backend/tests/grade4_test.go](../../src/backend/tests/grade4_test.go). + +### Выполненная команда + +```sh +make test-backend +``` + +Фрагмент фактического вывода полного запуска [08-code-checks.md](08-code-checks.md); тесты не запускались выборочно. + +```text +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.43s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.51s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +``` + +Код завершения полного запуска: `0`. + +Файл: [src/backend/tests/security_test.go](../../src/backend/tests/security_test.go). + +Basic и Bearer через HTTP также проверены публичным сценарием: [01-smoke.md](01-smoke.md). \ No newline at end of file diff --git a/evidence/criteria/05-session-persistence.md b/evidence/criteria/05-session-persistence.md new file mode 100644 index 00000000..22bc60f5 --- /dev/null +++ b/evidence/criteria/05-session-persistence.md @@ -0,0 +1,58 @@ +# Сохранность данных и Redis-сессии + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +Файл: [scripts/restart.sh](../../scripts/restart.sh). + +### Команда + +```sh +docker compose --env-file .env exec -T redis redis-cli CONFIG GET appendonly appendfsync +``` + +### Фактический вывод + +```text +appendfsync +everysec +appendonly +yes +``` + +Код завершения: `0`. + +### Команда + +```sh +make test-persistence BASE_URL=http://localhost:18080 ACTION_SCRIPT=scripts/restart.sh +``` + +### Фактический вывод + +```text +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:18080" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env ps +``` + +### Фактический вывод + +```text +NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS +messenger-evidence-final-20261001-02-api-1 messenger-evidence-final-20261001-02-api "./messenger" api 2 minutes ago Up 7 seconds (healthy) 127.0.0.1:18080->8080/tcp +messenger-evidence-final-20261001-02-db-1 postgres:16.10-bookworm "docker-entrypoint.s…" db 2 minutes ago Up 12 seconds (healthy) 5432/tcp +messenger-evidence-final-20261001-02-frontend-1 messenger-evidence-final-20261001-02-frontend "docker-entrypoint.s…" frontend 2 minutes ago Up About a minute (healthy) 127.0.0.1:15173->5173/tcp +messenger-evidence-final-20261001-02-redis-1 redis:7.4.11-bookworm "docker-entrypoint.s…" redis 2 minutes ago Up 12 seconds (healthy) 6379/tcp +``` + +Код завершения: `0`. diff --git a/evidence/criteria/06-migrations.md b/evidence/criteria/06-migrations.md new file mode 100644 index 00000000..b731ee3b --- /dev/null +++ b/evidence/criteria/06-migrations.md @@ -0,0 +1,193 @@ +# Повторное применение и откат миграций + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Команда + +```sh +docker compose --env-file .env exec -T db sh -c 'exec psql -X -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d "$POSTGRES_DB"' +``` + +### SQL, переданный на stdin + +```sql +CREATE DATABASE evidence_migrations; +``` + +### Фактический вывод + +```text +CREATE DATABASE +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env run --rm --no-deps --entrypoint /bin/sh api -c 'DATABASE_URL="${DATABASE_URL%/*}/evidence_migrations?sslmode=disable" ./messenger migrate up' +``` + +### Фактический вывод + +```text +2026/10/01 17:35:40 migration up complete +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env exec -T db sh -c 'exec psql -X -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d evidence_migrations' +``` + +### SQL, переданный на stdin + +```sql +SELECT version,dirty FROM schema_migrations; SELECT to_regclass('public.sessions'); +``` + +### Фактический вывод + +```text + version | dirty +---------+------- + 2 | f +(1 row) + + to_regclass +------------- + +(1 row) +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env run --rm --no-deps --entrypoint /bin/sh api -c 'DATABASE_URL="${DATABASE_URL%/*}/evidence_migrations?sslmode=disable" ./messenger migrate up' +``` + +### Фактический вывод + +```text +2026/10/01 17:35:44 migration up complete +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env exec -T db sh -c 'exec psql -X -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d evidence_migrations' +``` + +### SQL, переданный на stdin + +```sql +SELECT version,dirty FROM schema_migrations; SELECT to_regclass('public.sessions'); +``` + +### Фактический вывод + +```text + version | dirty +---------+------- + 2 | f +(1 row) + + to_regclass +------------- + +(1 row) +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env run --rm --no-deps --entrypoint /bin/sh api -c 'DATABASE_URL="${DATABASE_URL%/*}/evidence_migrations?sslmode=disable" ./messenger migrate down' +``` + +### Фактический вывод + +```text +2026/10/01 17:35:47 migration down complete +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env exec -T db sh -c 'exec psql -X -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d evidence_migrations' +``` + +### SQL, переданный на stdin + +```sql +SELECT version,dirty FROM schema_migrations; SELECT count(*) FROM sessions; +``` + +### Фактический вывод + +```text + version | dirty +---------+------- + 1 | f +(1 row) + + count +------- + 0 +(1 row) +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env run --rm --no-deps --entrypoint /bin/sh api -c 'DATABASE_URL="${DATABASE_URL%/*}/evidence_migrations?sslmode=disable" ./messenger migrate up' +``` + +### Фактический вывод + +```text +2026/10/01 17:35:51 migration up complete +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env exec -T db sh -c 'exec psql -X -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d evidence_migrations' +``` + +### SQL, переданный на stdin + +```sql +SELECT version,dirty FROM schema_migrations; SELECT to_regclass('public.sessions'); +``` + +### Фактический вывод + +```text + version | dirty +---------+------- + 2 | f +(1 row) + + to_regclass +------------- + +(1 row) +``` + +Код завершения: `0`. diff --git a/evidence/criteria/07-compose-secrets.md b/evidence/criteria/07-compose-secrets.md new file mode 100644 index 00000000..509482db --- /dev/null +++ b/evidence/criteria/07-compose-secrets.md @@ -0,0 +1,395 @@ +# Стенд, тома и исключение секретов из Git + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Команда + +```sh +docker volume ls --filter label=com.docker.compose.project=messenger-evidence-final-20261001-02 -q +``` + +### Фактический вывод + +```text +(вывода нет) +``` + +Код завершения: `0`. + +### Окружение + +```sh +export COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02 +export COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml +``` + +Файл: [src/experiments/evidence/compose.override.yaml](../../src/experiments/evidence/compose.override.yaml). + +Файл: [compose.yaml](../../compose.yaml). + +### Команда + +```sh +docker compose --env-file .env config --quiet +``` + +### Фактический вывод + +```text +(вывода нет) +``` + +Код завершения: `0`. + +### Команда + +```sh +git check-ignore .env +``` + +### Фактический вывод + +```text +.env +``` + +Код завершения: `0`. + +### Команда + +```sh +git ls-files .env +``` + +### Фактический вывод + +```text +(вывода нет) +``` + +Код завершения: `0`. + +### Команда + +```sh +make app-up +``` + +### Фактический вывод + +```text +docker compose --env-file .env up -d --build --wait +#1 [internal] load local bake definitions +#1 reading from stdin 1.16kB done +#1 DONE 0.0s + +#2 [frontend internal] load build definition from Dockerfile +#2 transferring dockerfile: 181B 0.0s done +#2 DONE 0.1s + +#3 [api internal] load build definition from Dockerfile +#3 transferring dockerfile: 673B 0.1s done +#3 DONE 0.1s + +#4 [api internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.1s + +#5 [api internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.1s + +#6 [api internal] load .dockerignore +#6 transferring context: 268B 0.1s done +#6 DONE 0.1s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 ... + +#8 [api builder 1/6] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#8 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#8 DONE 0.0s + +#9 [api stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#9 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#9 DONE 0.0s + +#10 [api internal] load build context +#10 transferring context: 12.76kB 0.3s done +#10 DONE 0.3s + +#11 [api builder 2/6] WORKDIR /src +#11 CACHED + +#12 [api builder 3/6] COPY go.mod go.sum ./ +#12 CACHED + +#13 [api builder 4/6] RUN go mod download +#13 CACHED + +#14 [api builder 5/6] COPY src/backend ./src/backend +#14 DONE 0.1s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 ... + +#15 [api builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/messenger ./src/backend +#15 ... + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 5.4s + +#16 [frontend internal] load .dockerignore +#16 transferring context: 58B 0.2s done +#16 DONE 0.3s + +#17 [frontend internal] load build context +#17 ... + +#18 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#18 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.1s done +#18 DONE 0.1s + +#17 [frontend internal] load build context +#17 transferring context: 488B 0.2s done +#17 DONE 0.3s + +#15 [api builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/messenger ./src/backend +#15 ... + +#19 [frontend 2/5] WORKDIR /app +#19 CACHED + +#20 [frontend 3/5] COPY package.json package-lock.json ./ +#20 CACHED + +#21 [frontend 4/5] RUN npm ci +#21 CACHED + +#22 [frontend 5/5] COPY . . +#22 CACHED + +#23 [frontend] exporting to image +#23 exporting layers 0.0s done +#23 exporting manifest sha256:05e9d66fc04db14ac30b7c09d3ae0c1f98f788cb6f793b1e0bad9b2c60e394e9 0.0s done +#23 exporting config sha256:1f49277aad446d9d1abea68f52ffa5009be981250d0a0fc702b688f02349846b 0.0s done +#23 exporting attestation manifest sha256:f1b58f29edd67fe7a476425bed7200a98ac8de9b58875323854a971013a48753 0.1s done +#23 exporting manifest list sha256:fc13662cacc1e65f885b46a299595523d0010c39deef0f669fc8af994b6b3811 0.0s done +#23 naming to docker.io/library/messenger-evidence-final-20261001-02-frontend:latest +#23 naming to docker.io/library/messenger-evidence-final-20261001-02-frontend:latest done +#23 unpacking to docker.io/library/messenger-evidence-final-20261001-02-frontend:latest 0.0s done +#23 DONE 0.3s + +#15 [api builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/messenger ./src/backend +#15 ... + +#24 [frontend] resolving provenance for metadata file +#24 DONE 0.0s + +#15 [api builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/messenger ./src/backend +#15 DONE 14.5s + +#25 [api stage-1 2/4] RUN groupadd --system app && useradd --system --gid app --no-create-home app +#25 CACHED + +#26 [api stage-1 3/4] WORKDIR /app +#26 CACHED + +#27 [api stage-1 4/4] COPY --from=builder /out/messenger ./messenger +#27 CACHED + +#28 [api] exporting to image +#28 exporting layers done +#28 exporting manifest sha256:1807bcec6d4a039004ac706276ad57c0a5ce83faa3625e16aaad33e540a7d511 0.0s done +#28 exporting config sha256:2ae53954c81620de87b4b41c2783b10a331a2afc746cfa5e54d55a92345492b4 0.0s done +#28 exporting attestation manifest sha256:bbc563550fd891a4ff1474c44cfde28e52f84d791ebf4d74093a1eacf31a7b6c 0.0s done +#28 exporting manifest list sha256:f76ab8af6886a347ae7fd702ece6d3db88eb5556c51f95811c3e5f0a1e234be1 +#28 exporting manifest list sha256:f76ab8af6886a347ae7fd702ece6d3db88eb5556c51f95811c3e5f0a1e234be1 0.0s done +#28 naming to docker.io/library/messenger-evidence-final-20261001-02-api:latest done +#28 unpacking to docker.io/library/messenger-evidence-final-20261001-02-api:latest 0.0s done +#28 DONE 0.2s + +#29 [api] resolving provenance for metadata file +#29 DONE 0.0s + messenger-evidence-final-20261001-02-api Built + messenger-evidence-final-20261001-02-frontend Built + Network messenger-evidence-final-20261001-02_default Creating + Network messenger-evidence-final-20261001-02_default Created + Volume messenger-evidence-final-20261001-02_postgres_data Creating + Volume messenger-evidence-final-20261001-02_postgres_data Created + Volume messenger-evidence-final-20261001-02_redis_data Creating + Volume messenger-evidence-final-20261001-02_redis_data Created + Container messenger-evidence-final-20261001-02-db-1 Creating + Container messenger-evidence-final-20261001-02-redis-1 Creating + Container messenger-evidence-final-20261001-02-redis-1 Created + Container messenger-evidence-final-20261001-02-db-1 Created + Container messenger-evidence-final-20261001-02-api-1 Creating + Container messenger-evidence-final-20261001-02-api-1 Created + Container messenger-evidence-final-20261001-02-frontend-1 Creating + Container messenger-evidence-final-20261001-02-frontend-1 Created + Container messenger-evidence-final-20261001-02-redis-1 Starting + Container messenger-evidence-final-20261001-02-db-1 Starting + Container messenger-evidence-final-20261001-02-db-1 Started + Container messenger-evidence-final-20261001-02-redis-1 Started + Container messenger-evidence-final-20261001-02-redis-1 Waiting + Container messenger-evidence-final-20261001-02-db-1 Waiting + Container messenger-evidence-final-20261001-02-redis-1 Healthy + Container messenger-evidence-final-20261001-02-db-1 Healthy + Container messenger-evidence-final-20261001-02-api-1 Starting + Container messenger-evidence-final-20261001-02-api-1 Started + Container messenger-evidence-final-20261001-02-api-1 Waiting + Container messenger-evidence-final-20261001-02-api-1 Healthy + Container messenger-evidence-final-20261001-02-frontend-1 Starting + Container messenger-evidence-final-20261001-02-frontend-1 Started + Container messenger-evidence-final-20261001-02-redis-1 Waiting + Container messenger-evidence-final-20261001-02-db-1 Waiting + Container messenger-evidence-final-20261001-02-api-1 Waiting + Container messenger-evidence-final-20261001-02-frontend-1 Waiting + Container messenger-evidence-final-20261001-02-db-1 Healthy + Container messenger-evidence-final-20261001-02-redis-1 Healthy + Container messenger-evidence-final-20261001-02-api-1 Healthy + Container messenger-evidence-final-20261001-02-frontend-1 Healthy +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env ps +``` + +### Фактический вывод + +```text +NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS +messenger-evidence-final-20261001-02-api-1 messenger-evidence-final-20261001-02-api "./messenger" api 19 seconds ago Up 12 seconds (healthy) 127.0.0.1:18080->8080/tcp +messenger-evidence-final-20261001-02-db-1 postgres:16.10-bookworm "docker-entrypoint.s…" db 19 seconds ago Up 16 seconds (healthy) 5432/tcp +messenger-evidence-final-20261001-02-frontend-1 messenger-evidence-final-20261001-02-frontend "docker-entrypoint.s…" frontend 19 seconds ago Up 7 seconds (healthy) 127.0.0.1:15173->5173/tcp +messenger-evidence-final-20261001-02-redis-1 redis:7.4.11-bookworm "docker-entrypoint.s…" redis 19 seconds ago Up 16 seconds (healthy) 6379/tcp +``` + +Код завершения: `0`. + +### Команда + +```sh +docker volume ls --filter label=com.docker.compose.project=messenger-evidence-final-20261001-02 +``` + +### Фактический вывод + +```text +DRIVER VOLUME NAME +local messenger-evidence-final-20261001-02_postgres_data +local messenger-evidence-final-20261001-02_redis_data +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env down +``` + +### Фактический вывод + +```text + Container messenger-evidence-final-20261001-02-frontend-1 Stopping + Container messenger-evidence-final-20261001-02-frontend-1 Stopped + Container messenger-evidence-final-20261001-02-frontend-1 Removing + Container messenger-evidence-final-20261001-02-frontend-1 Removed + Container messenger-evidence-final-20261001-02-api-1 Stopping + Container messenger-evidence-final-20261001-02-api-1 Stopped + Container messenger-evidence-final-20261001-02-api-1 Removing + Container messenger-evidence-final-20261001-02-api-1 Removed + Container messenger-evidence-final-20261001-02-db-1 Stopping + Container messenger-evidence-final-20261001-02-redis-1 Stopping + Container messenger-evidence-final-20261001-02-db-1 Stopped + Container messenger-evidence-final-20261001-02-db-1 Removing + Container messenger-evidence-final-20261001-02-db-1 Removed + Container messenger-evidence-final-20261001-02-redis-1 Stopped + Container messenger-evidence-final-20261001-02-redis-1 Removing + Container messenger-evidence-final-20261001-02-redis-1 Removed + Network messenger-evidence-final-20261001-02_default Removing + Network messenger-evidence-final-20261001-02_default Removed +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env up -d --wait +``` + +### Фактический вывод + +```text + Network messenger-evidence-final-20261001-02_default Creating + Network messenger-evidence-final-20261001-02_default Created + Container messenger-evidence-final-20261001-02-redis-1 Creating + Container messenger-evidence-final-20261001-02-db-1 Creating + Container messenger-evidence-final-20261001-02-redis-1 Created + Container messenger-evidence-final-20261001-02-db-1 Created + Container messenger-evidence-final-20261001-02-api-1 Creating + Container messenger-evidence-final-20261001-02-api-1 Created + Container messenger-evidence-final-20261001-02-frontend-1 Creating + Container messenger-evidence-final-20261001-02-frontend-1 Created + Container messenger-evidence-final-20261001-02-db-1 Starting + Container messenger-evidence-final-20261001-02-redis-1 Starting + Container messenger-evidence-final-20261001-02-redis-1 Started + Container messenger-evidence-final-20261001-02-db-1 Started + Container messenger-evidence-final-20261001-02-db-1 Waiting + Container messenger-evidence-final-20261001-02-redis-1 Waiting + Container messenger-evidence-final-20261001-02-db-1 Healthy + Container messenger-evidence-final-20261001-02-redis-1 Healthy + Container messenger-evidence-final-20261001-02-api-1 Starting + Container messenger-evidence-final-20261001-02-api-1 Started + Container messenger-evidence-final-20261001-02-api-1 Waiting + Container messenger-evidence-final-20261001-02-api-1 Healthy + Container messenger-evidence-final-20261001-02-frontend-1 Starting + Container messenger-evidence-final-20261001-02-frontend-1 Started + Container messenger-evidence-final-20261001-02-frontend-1 Waiting + Container messenger-evidence-final-20261001-02-redis-1 Waiting + Container messenger-evidence-final-20261001-02-db-1 Waiting + Container messenger-evidence-final-20261001-02-api-1 Waiting + Container messenger-evidence-final-20261001-02-api-1 Healthy + Container messenger-evidence-final-20261001-02-redis-1 Healthy + Container messenger-evidence-final-20261001-02-db-1 Healthy + Container messenger-evidence-final-20261001-02-frontend-1 Healthy +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env down +``` + +### Фактический вывод + +```text + Container messenger-evidence-final-20261001-02-frontend-1 Stopping + Container messenger-evidence-final-20261001-02-frontend-1 Stopped + Container messenger-evidence-final-20261001-02-frontend-1 Removing + Container messenger-evidence-final-20261001-02-frontend-1 Removed + Container messenger-evidence-final-20261001-02-api-1 Stopping + Container messenger-evidence-final-20261001-02-api-1 Stopped + Container messenger-evidence-final-20261001-02-api-1 Removing + Container messenger-evidence-final-20261001-02-api-1 Removed + Container messenger-evidence-final-20261001-02-db-1 Stopping + Container messenger-evidence-final-20261001-02-redis-1 Stopping + Container messenger-evidence-final-20261001-02-db-1 Stopped + Container messenger-evidence-final-20261001-02-db-1 Removing + Container messenger-evidence-final-20261001-02-redis-1 Stopped + Container messenger-evidence-final-20261001-02-redis-1 Removing + Container messenger-evidence-final-20261001-02-db-1 Removed + Container messenger-evidence-final-20261001-02-redis-1 Removed + Network messenger-evidence-final-20261001-02_default Removing + Network messenger-evidence-final-20261001-02_default Removed +``` + +Код завершения: `0`. diff --git a/evidence/criteria/08-code-checks.md b/evidence/criteria/08-code-checks.md new file mode 100644 index 00000000..21727833 --- /dev/null +++ b/evidence/criteria/08-code-checks.md @@ -0,0 +1,364 @@ +# Проверки кода и race detector + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Команда + +```sh +make check +``` + +### Фактический вывод + +```text +python3 scripts/check_contract.py +PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. +``` + +Код завершения: `0`. + +### Команда + +```sh +make test-backend +``` + +### Фактический вывод + +```text +docker compose --env-file .env --profile test run --build --rm backend-tests + Container messenger-evidence-final-20261001-02-redis-1 Running + Container messenger-evidence-final-20261001-02-db-1 Running +#1 [internal] load local bake definitions +#1 reading from stdin 668B done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 673B 0.1s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: 268B 0.1s done +#4 DONE 0.1s + +#5 [builder 1/6] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 2.29kB 0.3s done +#6 DONE 0.3s + +#7 [builder 2/6] WORKDIR /src +#7 CACHED + +#8 [builder 3/6] COPY go.mod go.sum ./ +#8 CACHED + +#9 [builder 4/6] RUN go mod download +#9 CACHED + +#10 [builder 5/6] COPY src/backend ./src/backend +#10 CACHED + +#11 [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/messenger ./src/backend +#11 CACHED + +#12 exporting to image +#12 exporting layers +#12 exporting layers 6.5s done +#12 exporting manifest sha256:67960608769cd4d209b647e2f7288a4e8ac5b8b4b67ebcb24822fdafd823154d 0.0s done +#12 exporting config sha256:a0862f609ccefc5db0f99a6c243f1432740529f1f40aea7d58053dce896fb0cd 0.0s done +#12 exporting attestation manifest sha256:3f32213473e1962c043bf8d6bf1fa8d6d55bb62a0cc4562817967d7e23e9c8a9 0.0s done +#12 exporting manifest list sha256:e634ac0eb2717ec6176f1a1ab38c271e9c5299a2ff337c407321ff93650da26b +#12 exporting manifest list sha256:e634ac0eb2717ec6176f1a1ab38c271e9c5299a2ff337c407321ff93650da26b 0.0s done +#12 naming to docker.io/library/messenger-evidence-final-20261001-02-backend-tests:latest done +#12 unpacking to docker.io/library/messenger-evidence-final-20261001-02-backend-tests:latest +#12 unpacking to docker.io/library/messenger-evidence-final-20261001-02-backend-tests:latest 2.0s done +#12 DONE 8.7s + +#13 resolving provenance for metadata file +#13 DONE 0.0s +? messenger/src/backend [no test files] +? messenger/src/backend/handlers [no test files] +? messenger/src/backend/repositories [no test files] +? messenger/src/backend/services [no test files] +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (3.95s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (1.88s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (2.17s) +=== RUN TestShortSessionTTLAndLogout + grade4_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.091926168s + grade4_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.75s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.37s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/10/01 17:34:53 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/10/01 17:34:54 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/10/01 17:34:55 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.46s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.020, + "Actual Total Time": 0.029, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.019, + "Actual Total Time": 0.024, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '469ccc02-1f52-49a1-bfac-3a030e303a89'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.095, + "Triggers": [ + ], + "Execution Time": 0.065 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.022, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.019, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '469ccc02-1f52-49a1-bfac-3a030e303a89'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '11292e18-2dac-4a73-b29f-13fa5ea58f92'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.046, + "Triggers": [ + ], + "Execution Time": 0.034 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.82s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (0.92s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.51s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (0.89s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.54s) +=== RUN TestMessageLessUsesIDForEqualTimestamps +--- PASS: TestMessageLessUsesIDForEqualTimestamps (0.00s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.54s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.13s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.43s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.51s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (0.88s) +PASS +ok messenger/src/backend/tests 22.994s +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env run --rm --no-deps backend-tests go vet ./src/backend/... +``` + +### Фактический вывод + +```text +(вывода нет) +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env exec -T frontend npm run build +``` + +### Фактический вывод + +```text + +> messenger-test-ui@1.0.0 build +> tsc --noEmit && vite build + +vite v8.3.0 building client environment for production... +transforming... +✓ 19 modules transformed. +rendering chunks... +computing gzip size... +dist/index.html 0.42 kB │ gzip: 0.31 kB +dist/assets/index-CtrGgTvu.css 8.42 kB │ gzip: 2.49 kB +dist/assets/index-TO2XpdBJ.js 233.91 kB │ gzip: 73.31 kB + +✓ built in 618ms +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose --env-file .env exec -T frontend npm run build +``` + +### Фактический вывод + +```text + +> messenger-test-ui@1.0.0 build +> tsc --noEmit && vite build + +vite v8.3.0 building client environment for production... +transforming... +✓ 19 modules transformed. +rendering chunks... +computing gzip size... +dist/index.html 0.42 kB │ gzip: 0.31 kB +dist/assets/index-CtrGgTvu.css 8.42 kB │ gzip: 2.49 kB +dist/assets/index-TO2XpdBJ.js 233.91 kB │ gzip: 73.31 kB + +✓ built in 394ms +``` + +Код завершения: `0`. diff --git a/evidence/criteria/09-resource-limits.md b/evidence/criteria/09-resource-limits.md new file mode 100644 index 00000000..caf10a91 --- /dev/null +++ b/evidence/criteria/09-resource-limits.md @@ -0,0 +1,32 @@ +# Пулы, таймауты и параметризованные SQL + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Команда + +```sh +grep -nE 'MaxConns|ConnectTimeout|queryTimeout|PoolSize|DialTimeout|ReadTimeout|WriteTimeout|ReadHeaderTimeout|IdleTimeout|MaxRetries' src/backend/repositories/database.go src/backend/repositories/timeout.go src/backend/repositories/redis.go src/backend/main.go +``` + +### Фактический вывод + +```text +src/backend/repositories/database.go:45: cfg.MaxConns = 10 +src/backend/repositories/database.go:46: cfg.ConnConfig.ConnectTimeout = 5 * time.Second +src/backend/repositories/timeout.go:8:const queryTimeout = 5 * time.Second +src/backend/repositories/timeout.go:11: return context.WithTimeout(ctx, queryTimeout) +src/backend/repositories/redis.go:21: Addr: address, PoolSize: 10, MaxRetries: -1, +src/backend/repositories/redis.go:22: DialTimeout: time.Second, ReadTimeout: time.Second, WriteTimeout: time.Second, +src/backend/main.go:89: ReadHeaderTimeout: 5 * time.Second, +src/backend/main.go:90: ReadTimeout: 10 * time.Second, +src/backend/main.go:91: WriteTimeout: 10 * time.Second, +src/backend/main.go:92: IdleTimeout: 60 * time.Second, +``` + +Код завершения: `0`. + +Файл: [src/backend/repositories/message.go](../../src/backend/repositories/message.go). + +Тесты отказов и их полный вывод: [08-code-checks.md](08-code-checks.md). \ No newline at end of file diff --git a/evidence/criteria/10-dependency-failures.md b/evidence/criteria/10-dependency-failures.md new file mode 100644 index 00000000..75a087b6 --- /dev/null +++ b/evidence/criteria/10-dependency-failures.md @@ -0,0 +1,133 @@ +# Отказ Redis и PostgreSQL + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +Файл: [Сценарий collect_dependency_failures](../../src/experiments/evidence/collect.py). + + +```text +GET /health/ready [anonymous] -> HTTP 200 +``` + + +```text +GET /api/v1/users/me [Bearer] -> HTTP 200 +``` + +### Команда + +```sh +docker compose --env-file .env stop redis +``` + +### Фактический вывод + +```text + Container messenger-evidence-final-20261001-02-redis-1 Stopping + Container messenger-evidence-final-20261001-02-redis-1 Stopped +``` + +Код завершения: `0`. + + +```text +GET /health/ready [anonymous] -> HTTP 503 +``` + + +```text +GET /api/v1/users/me [Bearer] -> HTTP 503 +``` + + +```text +GET /api/v1/users/me [anonymous] -> HTTP 401 +``` + +### Команда + +```sh +docker compose --env-file .env up -d --wait redis +``` + +### Фактический вывод + +```text + Container messenger-evidence-final-20261001-02-redis-1 Starting + Container messenger-evidence-final-20261001-02-redis-1 Started + Container messenger-evidence-final-20261001-02-redis-1 Waiting + Container messenger-evidence-final-20261001-02-redis-1 Healthy +``` + +Код завершения: `0`. + + +```text +GET /health/ready [anonymous] -> HTTP 200 +``` + + +```text +GET /api/v1/users/me [Bearer] -> HTTP 200 +``` + +### Команда + +```sh +docker compose --env-file .env stop db +``` + +### Фактический вывод + +```text + Container messenger-evidence-final-20261001-02-db-1 Stopping + Container messenger-evidence-final-20261001-02-db-1 Stopped +``` + +Код завершения: `0`. + + +```text +GET /health/ready [anonymous] -> HTTP 503 +``` + + +```text +GET /api/v1/users/me [Bearer] -> HTTP 503 +``` + + +```text +GET /api/v1/users/me [anonymous] -> HTTP 401 +``` + +### Команда + +```sh +docker compose --env-file .env up -d --wait db +``` + +### Фактический вывод + +```text + Container messenger-evidence-final-20261001-02-db-1 Starting + Container messenger-evidence-final-20261001-02-db-1 Started + Container messenger-evidence-final-20261001-02-db-1 Waiting + Container messenger-evidence-final-20261001-02-db-1 Healthy +``` + +Код завершения: `0`. + + +```text +GET /health/ready [anonymous] -> HTTP 200 +``` + + +```text +GET /api/v1/users/me [Bearer] -> HTTP 200 +``` + +PASS: обе зависимости восстановлены; в проверках до и после остановки использован один и тот же токен. \ No newline at end of file diff --git a/evidence/criteria/11-history-10000.md b/evidence/criteria/11-history-10000.md new file mode 100644 index 00000000..ccb61c8d --- /dev/null +++ b/evidence/criteria/11-history-10000.md @@ -0,0 +1,176 @@ +# План истории на 10 000 сообщений + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Выполненная команда + +```sh +make test-backend +``` + +Фрагмент фактического вывода полного запуска [08-code-checks.md](08-code-checks.md); тесты не запускались выборочно. + +```text +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.020, + "Actual Total Time": 0.029, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.019, + "Actual Total Time": 0.024, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '469ccc02-1f52-49a1-bfac-3a030e303a89'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.095, + "Triggers": [ + ], + "Execution Time": 0.065 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.022, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.019, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '469ccc02-1f52-49a1-bfac-3a030e303a89'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '11292e18-2dac-4a73-b29f-13fa5ea58f92'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.046, + "Triggers": [ + ], + "Execution Time": 0.034 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.82s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +``` + +Код завершения полного запуска: `0`. + +Файл: [src/backend/tests/grade4_test.go](../../src/backend/tests/grade4_test.go). diff --git a/evidence/criteria/12-track2-dataset.md b/evidence/criteria/12-track2-dataset.md new file mode 100644 index 00000000..89bc174d --- /dev/null +++ b/evidence/criteria/12-track2-dataset.md @@ -0,0 +1,59 @@ +# Трек 2: объём и распределение истории + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Ранее выполненный эксперимент + +```sh +make track2-run RUN_ID=20261001-c +``` + +Сохранённый stdout завершённого прогона (локальный путь архива опущен): + +```text +python3 src/experiments/track2/run.py run --run-id "20261001-c" +Starting isolated source database +Read measurements complete: base +Read measurements complete: covering +Creating backup and restoring into a new volume +PASS: messenger-track2-20261001-c; evidence: /mnt/c/projects/Highload-systems/mtusi2026lab2-fork/evidence/track2/20261001-c +``` + +Файл: [src/experiments/track2/run.py](../../src/experiments/track2/run.py). + +Файл: [evidence/track2/20261001-c/commands.jsonl](../track2/20261001-c/commands.jsonl). + +Файл: [src/experiments/track2/seed.sql](../../src/experiments/track2/seed.sql). + +### Команда + +```sh +docker compose -f compose.track2.yaml -p messenger-track2-20261001-c exec -T restore psql -X -v ON_ERROR_STOP=1 -U track2 -d messenger_track2 +``` + +### SQL, переданный на stdin + +```sql +SELECT count(*) AS total FROM messages; +SELECT chat_id,count(*) FROM messages GROUP BY chat_id ORDER BY chat_id; +``` + +### Фактический вывод + +```text + total +-------- + 120000 +(1 row) + + chat_id | count +--------------------------------------+-------- + 22222222-2222-4222-8222-222222222221 | 100000 + 22222222-2222-4222-8222-222222222222 | 15000 + 22222222-2222-4222-8222-222222222223 | 5000 +(3 rows) +``` + +Код завершения: `0`. diff --git a/evidence/criteria/13-track2-indexes.md b/evidence/criteria/13-track2-indexes.md new file mode 100644 index 00000000..aced91c1 --- /dev/null +++ b/evidence/criteria/13-track2-indexes.md @@ -0,0 +1,2642 @@ +# Трек 2: чтение и стоимость записи + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Ранее выполненный эксперимент + +```sh +make track2-run RUN_ID=20261001-c +``` + +Сохранённый stdout завершённого прогона (локальный путь архива опущен): + +```text +python3 src/experiments/track2/run.py run --run-id "20261001-c" +Starting isolated source database +Read measurements complete: base +Read measurements complete: covering +Creating backup and restoring into a new volume +PASS: messenger-track2-20261001-c; evidence: /mnt/c/projects/Highload-systems/mtusi2026lab2-fork/evidence/track2/20261001-c +``` + +Файл: [src/experiments/track2/run.py](../../src/experiments/track2/run.py). + +Файл: [evidence/track2/20261001-c/commands.jsonl](../track2/20261001-c/commands.jsonl). + +Файл: [evidence/track2/20261001-c/queries.sql](../track2/20261001-c/queries.sql). + +### Сохранённый результат: `reads.json` + +```json +[ + { + "name": "read-base-large-first", + "median_ms": 0.111, + "min_ms": 0.093, + "max_ms": 0.155, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-base-large-late", + "median_ms": 0.145, + "min_ms": 0.111, + "max_ms": 0.175, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 6, + "shared_read": 0 + }, + { + "name": "read-base-large-offset", + "median_ms": 18.06, + "min_ms": 16.037, + "max_ms": 23.447, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 90050, + "heap_fetches": null, + "shared_hit": 1933, + "shared_read": 0 + }, + { + "name": "read-base-medium-first", + "median_ms": 0.162, + "min_ms": 0.112, + "max_ms": 0.216, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-base-medium-late", + "median_ms": 0.158, + "min_ms": 0.123, + "max_ms": 0.321, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 6, + "shared_read": 0 + }, + { + "name": "read-base-medium-offset", + "median_ms": 8.073, + "min_ms": 7.084, + "max_ms": 17.063, + "scan": "Bitmap Index Scan", + "index": "messages_history_idx", + "scan_rows": 15000, + "heap_fetches": null, + "shared_hit": 331, + "shared_read": 0 + }, + { + "name": "read-base-small-first", + "median_ms": 0.116, + "min_ms": 0.107, + "max_ms": 0.159, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-base-small-late", + "median_ms": 0.122, + "min_ms": 0.111, + "max_ms": 0.149, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-base-small-offset", + "median_ms": 2.94, + "min_ms": 2.443, + "max_ms": 3.45, + "scan": "Bitmap Index Scan", + "index": "messages_history_idx", + "scan_rows": 5000, + "heap_fetches": null, + "shared_hit": 118, + "shared_read": 0 + }, + { + "name": "read-covering-large-first", + "median_ms": 0.132, + "min_ms": 0.116, + "max_ms": 0.17, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-covering-large-late", + "median_ms": 0.16, + "min_ms": 0.121, + "max_ms": 0.195, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-large-offset", + "median_ms": 19.628, + "min_ms": 17.441, + "max_ms": 22.872, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 90050, + "heap_fetches": 0, + "shared_hit": 1237, + "shared_read": 0 + }, + { + "name": "read-covering-medium-first", + "median_ms": 0.249, + "min_ms": 0.13, + "max_ms": 0.51, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-medium-late", + "median_ms": 0.138, + "min_ms": 0.123, + "max_ms": 0.313, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-medium-offset", + "median_ms": 2.403, + "min_ms": 2.201, + "max_ms": 2.951, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 13550, + "heap_fetches": 0, + "shared_hit": 190, + "shared_read": 0 + }, + { + "name": "read-covering-small-first", + "median_ms": 0.136, + "min_ms": 0.127, + "max_ms": 0.193, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-small-late", + "median_ms": 0.143, + "min_ms": 0.128, + "max_ms": 0.237, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-small-offset", + "median_ms": 1.002, + "min_ms": 0.814, + "max_ms": 1.345, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 4550, + "heap_fetches": 0, + "shared_hit": 66, + "shared_read": 0 + } +] +``` + +### Сохранённый результат: `writes.json` + +```json +[ + { + "variant": "none", + "median_ms": 34.362, + "min_ms": 31.466, + "max_ms": 35.912, + "median_wal_bytes": 2319396, + "index_bytes": 417792 + }, + { + "variant": "base", + "median_ms": 48.76, + "min_ms": 43.652, + "max_ms": 62.255, + "median_wal_bytes": 3343720, + "index_bytes": 1024000 + }, + { + "variant": "covering", + "median_ms": 46.544, + "min_ms": 45.157, + "max_ms": 51.712, + "median_wal_bytes": 3897536, + "index_bytes": 1572864 + } +] +``` + +### Сохранённый результат: `sizes.json` + +```json +{ + "base": { + "table_bytes": 14049280, + "index_bytes": 7086080 + }, + "covering": { + "table_bytes": 14049280, + "index_bytes": 13574144 + } +} +``` + +### Сохранённый результат: `read-base-large-late.json` + +```json +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.516, + "Triggers": [], + "Execution Time": 0.172 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.433, + "Triggers": [], + "Execution Time": 0.128 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.511, + "Triggers": [], + "Execution Time": 0.145 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.397, + "Triggers": [], + "Execution Time": 0.112 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.38, + "Triggers": [], + "Execution Time": 0.111 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.11, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.104, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.565, + "Triggers": [], + "Execution Time": 0.175 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.643, + "Triggers": [], + "Execution Time": 0.155 + } +] +``` + +### Сохранённый результат: `read-base-large-offset.json` + +```json +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 15.987, + "Actual Total Time": 16.0, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.035, + "Actual Total Time": 12.893, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.384, + "Triggers": [], + "Execution Time": 16.037 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.273, + "Actual Total Time": 18.288, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.043, + "Actual Total Time": 14.993, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.614, + "Triggers": [], + "Execution Time": 18.342 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 17.393, + "Actual Total Time": 17.409, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 13.994, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.514, + "Triggers": [], + "Execution Time": 17.451 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.011, + "Actual Total Time": 18.023, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.034, + "Actual Total Time": 14.458, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.389, + "Triggers": [], + "Execution Time": 18.06 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 17.534, + "Actual Total Time": 17.547, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.035, + "Actual Total Time": 14.086, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.377, + "Triggers": [], + "Execution Time": 17.581 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.384, + "Actual Total Time": 18.396, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 15.14, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.837, + "Triggers": [], + "Execution Time": 18.436 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 23.358, + "Actual Total Time": 23.371, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.078, + "Actual Total Time": 20.196, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 1.034, + "Triggers": [], + "Execution Time": 23.447 + } +] +``` + +### Сохранённый результат: `read-covering-large-late.json` + +```json +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.086, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.472, + "Triggers": [], + "Execution Time": 0.16 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.093, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.525, + "Triggers": [], + "Execution Time": 0.147 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.067, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.083, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.481, + "Triggers": [], + "Execution Time": 0.149 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.123, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.117, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.517, + "Triggers": [], + "Execution Time": 0.195 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.104, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.099, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.482, + "Triggers": [], + "Execution Time": 0.167 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.429, + "Triggers": [], + "Execution Time": 0.167 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.393, + "Triggers": [], + "Execution Time": 0.121 + } +] +``` + +### Сохранённый результат: `write-base.json` + +```json +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 52.204, + "Actual Total Time": 52.208, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.989, + "Actual Total Time": 4.975, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.874, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.299, + "Triggers": [], + "Execution Time": 52.544 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 48.414, + "Actual Total Time": 48.415, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.824, + "Actual Total Time": 5.725, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.017, + "Actual Total Time": 1.015, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.296, + "Triggers": [], + "Execution Time": 48.76 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 49.348, + "Actual Total Time": 49.35, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.756, + "Actual Total Time": 4.647, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.017, + "Actual Total Time": 0.877, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.311, + "Triggers": [], + "Execution Time": 50.063 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 43.243, + "Actual Total Time": 43.245, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.984, + "Actual Total Time": 4.734, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.018, + "Actual Total Time": 0.886, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.321, + "Triggers": [], + "Execution Time": 43.652 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 43.769, + "Actual Total Time": 43.771, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.701, + "Actual Total Time": 4.376, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.943, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.297, + "Triggers": [], + "Execution Time": 44.132 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 61.93, + "Actual Total Time": 61.932, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.563, + "Actual Total Time": 4.507, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.016, + "Actual Total Time": 0.8, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.33, + "Triggers": [], + "Execution Time": 62.255 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 47.142, + "Actual Total Time": 47.146, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.688, + "Actual Total Time": 4.426, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.017, + "Actual Total Time": 0.835, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.449, + "Triggers": [], + "Execution Time": 47.509 + } +] +``` diff --git a/evidence/criteria/14-track2-recovery.md b/evidence/criteria/14-track2-recovery.md new file mode 100644 index 00000000..32b56229 --- /dev/null +++ b/evidence/criteria/14-track2-recovery.md @@ -0,0 +1,640 @@ +# Трек 2: backup и восстановление + +Дата сбора: `2026-10-01T17:33:15.537043+00:00`. + +Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md). + +### Ранее выполненный эксперимент + +```sh +make track2-run RUN_ID=20261001-c +``` + +Сохранённый stdout завершённого прогона (локальный путь архива опущен): + +```text +python3 src/experiments/track2/run.py run --run-id "20261001-c" +Starting isolated source database +Read measurements complete: base +Read measurements complete: covering +Creating backup and restoring into a new volume +PASS: messenger-track2-20261001-c; evidence: /mnt/c/projects/Highload-systems/mtusi2026lab2-fork/evidence/track2/20261001-c +``` + +Файл: [src/experiments/track2/run.py](../../src/experiments/track2/run.py). + +Файл: [evidence/track2/20261001-c/commands.jsonl](../track2/20261001-c/commands.jsonl). + +### Команды dump/restore и запуска нового хранилища из журнала + +```json +[ + { + "utc": "2026-10-01T16:06:42.560499+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "source", + "pg_dump", + "-U", + "track2", + "-d", + "messenger_track2", + "-Fc" + ], + "seconds": 1.6470247769902926, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:49.378260+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "up", + "-d", + "--wait", + "restore" + ], + "seconds": 5.384081038995646, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:51.405713+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "pg_restore", + "--exit-on-error", + "--no-owner", + "--no-acl", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 2.0244783100060886, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:52.609059+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.201600465006777, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:53.852853+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.242105694997008, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:54.991430+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.1366018730041105, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:56.065579+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.0728420579980593, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:56.954114+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 0.8870942690118682, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:57.926691+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 0.9710176150110783, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:06:59.248333+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.320496025000466, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:00.580015+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.3296889049961464, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:01.858485+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.276744877002784, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:03.132968+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.2725783920031972, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:04.291611+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.1566239590029, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:05.549710+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.2565722110011848, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:06.781339+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.2296818680042634, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:08.012467+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.229394884998328, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:09.340069+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.3256938660051674, + "exit_code": 0 + }, + { + "utc": "2026-10-01T16:07:08.382992+00:00", + "command": [ + "docker", + "compose", + "-f", + "compose.track2.yaml", + "-p", + "messenger-track2-20261001-c", + "exec", + "-T", + "restore", + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2" + ], + "seconds": 1.230820301003405, + "exit_code": 0 + } +] +``` + +### Сохранённый результат: `recovery.json` + +```json +{ + "dump_seconds": 1.6488487130118301, + "dump_bytes": 3613568, + "dump_sha256": "9a122dacc08103b96c8a611fe99e8705336befc74aea4c69a82b42ead9d00264", + "restore_seconds": 2.0262277989968425, + "startup_restore_verify_seconds": 27.81630390700593, + "expected": { + "counts": { + "users": 1, + "chats": 3, + "chat_members": 3, + "messages": 120000, + "schema_migrations": 1 + }, + "distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000", + "samples": [ + "{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}", + "{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}", + "{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}", + "{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}", + "{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}", + "{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}" + ] + }, + "actual": { + "counts": { + "users": 1, + "chats": 3, + "chat_members": 3, + "messages": 120000, + "schema_migrations": 1 + }, + "distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000", + "samples": [ + "{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}", + "{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}", + "{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}", + "{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}", + "{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}", + "{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}" + ] + }, + "match": true, + "marker_source": 1, + "marker_restore": 0 +} +``` + +### Сохранённый результат: `first-query.json` + +```json +{ + "run_id": "20261001-c", + "calculation": "commands.jsonl: first SELECT count(users) after pg_restore minus start of up --wait restore", + "startup_restore_first_verified_count_seconds": 8.614880038995647, + "expected": 1, + "actual": 1, + "includes_docker_client_overhead": true +} +``` + +### Команда + +```sh +docker compose -f compose.track2.yaml -p messenger-track2-20261001-c exec -T source psql -X -v ON_ERROR_STOP=1 -U track2 -d messenger_track2 +``` + +### SQL, переданный на stdin + +```sql +SELECT count(*) AS messages FROM messages; +SELECT count(*) AS post_backup_marker FROM messages +WHERE id='33333333-3333-4333-8333-333333333333'; +``` + +### Фактический вывод + +```text + messages +---------- + 120001 +(1 row) + + post_backup_marker +-------------------- + 1 +(1 row) +``` + +Код завершения: `0`. + +### Команда + +```sh +docker compose -f compose.track2.yaml -p messenger-track2-20261001-c exec -T restore psql -X -v ON_ERROR_STOP=1 -U track2 -d messenger_track2 +``` + +### SQL, переданный на stdin + +```sql +SELECT count(*) AS messages FROM messages; +SELECT count(*) AS post_backup_marker FROM messages +WHERE id='33333333-3333-4333-8333-333333333333'; +``` + +### Фактический вывод + +```text + messages +---------- + 120000 +(1 row) + + post_backup_marker +-------------------- + 0 +(1 row) +``` + +Код завершения: `0`. + +### Команда + +```sh +python3 -c 'import json; from pathlib import Path; r=json.loads(Path('"'"'evidence/track2/20261001-c/recovery.json'"'"').read_text()); assert r['"'"'expected'"'"'] == r['"'"'actual'"'"']; assert r['"'"'marker_source'"'"'] == 1 and r['"'"'marker_restore'"'"'] == 0; print('"'"'PASS: counts, distribution, nine samples and post-backup marker'"'"')' +``` + +### Фактический вывод + +```text +PASS: counts, distribution, nine samples and post-backup marker +``` + +Код завершения: `0`. diff --git a/evidence/track2.md b/evidence/track2.md new file mode 100644 index 00000000..f4740dde --- /dev/null +++ b/evidence/track2.md @@ -0,0 +1,22 @@ +# Лабораторная 2 — трек 2: план запроса и восстановление + +## Гипотеза + +1. При истории не менее 100 000 сообщений запрос страницы по курсору `(created_at, id)` и индексу `(chat_id, created_at, id)` читает около размера страницы независимо от её глубины. Запрос той же поздней страницы через `OFFSET` обрабатывает существенно больше строк и работает медленнее. +2. Покрывающий индекс `(chat_id, created_at, id) INCLUDE (sender_id, text)` может уменьшить чтения таблицы при выборе истории, но увеличит стоимость вставки и объём WAL. Улучшение чтения не гарантировано: оно зависит от visibility map и кэша. +3. Восстановление `pg_dump -Fc` в отдельную БД сохранит число строк и выбранные сообщения на момент снимка. Сообщение, записанное после создания архива, в восстановленной БД отсутствует. + +## Методика + +- Среда: отдельный `compose.track2.yaml`, отдельный проект Compose на каждый `RUN_ID`, два собственных тома PostgreSQL 16.10; обычные сервисы и данные приложения не используются. Команда запуска: `make track2-run RUN_ID=<уникальное-имя>`. +- Данные: один пользователь и три чата с 100 000, 15 000 и 5 000 сообщений. ID, тексты и времена сообщений получаются из фиксированных формул, без генератора случайных чисел. Применяются существующие миграции приложения. +- Чтение: для исходного и покрывающего индекса по очереди выполнить `VACUUM (ANALYZE)`, затем один прогрев и семь измерений `EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)` для первой и поздней страницы каждого чата. Размер страницы — 50. Для большого чата сравнить позднюю страницу после 90 000 сообщений с `OFFSET 90000` и проверить равенство ID результата. Записать медиану, минимум, максимум времени, тип сканирования, индекс, фактически прочитанные строки и буферы. +- Запись: отдельные таблицы с одинаковой структурой и первичным ключом: без индекса истории, с исходным индексом и с покрывающим. В каждую выполнить одинаковую вставку 10 000 заранее подготовленных строк; перед каждым измерением очистить таблицу. Один прогрев и семь измерений `EXPLAIN (ANALYZE, BUFFERS, WAL, FORMAT JSON)`. Сравнить время и WAL bytes; таблицы удалить перед backup. +- Восстановление: вернуть исходный индекс в экспериментальной БД, зафиксировать количество строк и контрольные сообщения, создать архив `pg_dump -Fc`, затем записать маркер в источник. Восстановить архив командой `pg_restore` во второй том. Сверить количество пользователей, чатов, участников, сообщений, размеры чатов и выбранные сообщения; проверить отсутствие маркера в копии. Измерить время создания архива, восстановления и время от старта резервной БД до первого успешного контрольного запроса. +- Повтор: новый `RUN_ID` создаёт независимый прогон с теми же данными и SQL. Планы, сводки и сверка сохраняются в `evidence/track2//`; бинарный архив не включается в Git. Тома сохраняются для демонстрации. Времена могут отличаться из-за кэша и нагрузки хоста. Очищать можно только явно заданный экспериментальный прогон. + +## Ограничения + +Тёплый кэш, один SQL-клиент, синтетические короткие сообщения, уникальные времена, один общий хост и последовательный порядок вариантов. EXPLAIN добавляет затраты измерения; WAL INSERT не включает TRUNCATE и COMMIT. Вспомогательные таблицы не имеют FK. Обычный индекс заполнен вставками, покрывающий построен после seed, что влияет на плотность страниц. Время восстановления включает Docker и клиентские накладные расходы; архитектура не обещает HA. Проверяются счётчики и девять сообщений, не все поля всех 120 000 строк. Backup не включает Redis и изменения после снимка; без WAL/PITR теряются записи после последнего dump. Архивы на этом же хосте не защищают от его потери. Подробные параметры и ограничения записаны в REPORT.md. + +Данные и архивы сохраняются. Для нового независимого прогона нужен новый RUN_ID. `make track2-clean RUN_ID=...` удаляет только его тома, архивы и evidence остаются. Существующий RUN_ID и некорректный идентификатор отклоняются до изменений. SQL и сценарий находятся в `src/experiments/track2/`, запуск полностью использует отдельный `compose.track2.yaml`. diff --git a/evidence/track2/20261001-a/manifest.json b/evidence/track2/20261001-a/manifest.json new file mode 100644 index 00000000..6f02c91d --- /dev/null +++ b/evidence/track2/20261001-a/manifest.json @@ -0,0 +1,18 @@ +{ + "started_utc": "2026-10-01T14:58:56.553767+00:00", + "run_id": "20261001-a", + "base_commit": "a9dda2054084cb22936feb90d197462c7dc74809", + "dirty": true, + "docker_version": "28.5.1", + "docker_resources": "16 CPUs; 7942131712 bytes RAM", + "postgres": "PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit", + "page_size": 50, + "warmup": 1, + "repetitions": 7, + "settings": "{ \"effective_cache_size\" : \"524288\", \"fsync\" : \"on\", \"full_page_writes\" : \"on\", \"max_parallel_workers_per_gather\" : \"2\", \"shared_buffers\" : \"16384\", \"synchronous_commit\" : \"on\", \"work_mem\" : \"4096\" }", + "source_hashes": { + "src\\experiments\\track2\\run.py": "d168c6979e60670b8a1e97cad614f9d48bfa7ed747c51ffd196728b888f99a8d", + "src\\experiments\\track2\\seed.sql": "db0c76bfd8963c8f09186a5c320062110b63f0930a92097f3ac9bacae695e5d7", + "compose.track2.yaml": "8e9da80fb6cd9c93f87c5432a9d0ad8e5b899ba6ede399aea94504f67351f34f" + } +} diff --git a/evidence/track2/20261001-a/queries.sql b/evidence/track2/20261001-a/queries.sql new file mode 100644 index 00000000..806870cf --- /dev/null +++ b/evidence/track2/20261001-a/queries.sql @@ -0,0 +1,62 @@ +-- read-base-large-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-large-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('2026-01-01 00:00:00.09+00'::timestamptz,'1d664eb1-42e9-c630-c739-4623b08094d7'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-large-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' ORDER BY created_at,id OFFSET 90000 LIMIT 50; + +-- read-base-medium-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-medium-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('2026-01-01 00:00:00.0135+00'::timestamptz,'3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-medium-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' ORDER BY created_at,id OFFSET 13500 LIMIT 50; + +-- read-base-small-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-small-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('2026-01-01 00:00:00.0045+00'::timestamptz,'21919306-3e96-9707-0768-3cffae975c19'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-small-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' ORDER BY created_at,id OFFSET 4500 LIMIT 50; + +-- read-covering-large-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-large-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('2026-01-01 00:00:00.09+00'::timestamptz,'1d664eb1-42e9-c630-c739-4623b08094d7'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-large-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' ORDER BY created_at,id OFFSET 90000 LIMIT 50; + +-- read-covering-medium-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-medium-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('2026-01-01 00:00:00.0135+00'::timestamptz,'3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-medium-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' ORDER BY created_at,id OFFSET 13500 LIMIT 50; + +-- read-covering-small-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-small-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('2026-01-01 00:00:00.0045+00'::timestamptz,'21919306-3e96-9707-0768-3cffae975c19'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-small-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' ORDER BY created_at,id OFFSET 4500 LIMIT 50; + +-- write-none (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; + +-- write-base (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; + +-- write-covering (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; diff --git a/evidence/track2/20261001-a/read-base-large-first.json b/evidence/track2/20261001-a/read-base-large-first.json new file mode 100644 index 00000000..6b1a7bbe --- /dev/null +++ b/evidence/track2/20261001-a/read-base-large-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8713.54, + "Plan Rows": 100350, + "Plan Width": 86, + "Actual Startup Time": 0.068, + "Actual Total Time": 0.073, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.41, + "Triggers": [], + "Execution Time": 0.129 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.046, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8713.54, + "Plan Rows": 100350, + "Plan Width": 86, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.041, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.434, + "Triggers": [], + "Execution Time": 0.098 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.036, + "Actual Total Time": 0.045, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8713.54, + "Plan Rows": 100350, + "Plan Width": 86, + "Actual Startup Time": 0.036, + "Actual Total Time": 0.04, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.544, + "Triggers": [], + "Execution Time": 0.097 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.046, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8713.54, + "Plan Rows": 100350, + "Plan Width": 86, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.042, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.434, + "Triggers": [], + "Execution Time": 0.099 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.036, + "Actual Total Time": 0.044, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8713.54, + "Plan Rows": 100350, + "Plan Width": 86, + "Actual Startup Time": 0.035, + "Actual Total Time": 0.04, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.432, + "Triggers": [], + "Execution Time": 0.096 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.041, + "Actual Total Time": 0.049, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8713.54, + "Plan Rows": 100350, + "Plan Width": 86, + "Actual Startup Time": 0.04, + "Actual Total Time": 0.044, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.658, + "Triggers": [], + "Execution Time": 0.134 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.04, + "Actual Total Time": 0.048, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8713.54, + "Plan Rows": 100350, + "Plan Width": 86, + "Actual Startup Time": 0.039, + "Actual Total Time": 0.043, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.519, + "Triggers": [], + "Execution Time": 0.113 + } +] diff --git a/evidence/track2/20261001-a/read-base-large-late.json b/evidence/track2/20261001-a/read-base-large-late.json new file mode 100644 index 00000000..1eb50bee --- /dev/null +++ b/evidence/track2/20261001-a/read-base-large-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 20.95, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3489.9, + "Plan Rows": 8496, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.875, + "Triggers": [], + "Execution Time": 0.17 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 20.95, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.131, + "Actual Total Time": 0.174, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3489.9, + "Plan Rows": 8496, + "Plan Width": 86, + "Actual Startup Time": 0.126, + "Actual Total Time": 0.166, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 1.362, + "Triggers": [], + "Execution Time": 0.336 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 20.95, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3489.9, + "Plan Rows": 8496, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.489, + "Triggers": [], + "Execution Time": 0.116 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 20.95, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.091, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3489.9, + "Plan Rows": 8496, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.085, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.613, + "Triggers": [], + "Execution Time": 0.188 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 20.95, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.145, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3489.9, + "Plan Rows": 8496, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.14, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.633, + "Triggers": [], + "Execution Time": 0.209 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 20.95, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.084, + "Actual Total Time": 0.099, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3489.9, + "Plan Rows": 8496, + "Plan Width": 86, + "Actual Startup Time": 0.083, + "Actual Total Time": 0.094, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.47, + "Triggers": [], + "Execution Time": 0.153 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 20.95, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.087, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3489.9, + "Plan Rows": 8496, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.463, + "Triggers": [], + "Execution Time": 0.143 + } +] diff --git a/evidence/track2/20261001-a/read-base-large-offset.json b/evidence/track2/20261001-a/read-base-large-offset.json new file mode 100644 index 00000000..00115bbf --- /dev/null +++ b/evidence/track2/20261001-a/read-base-large-offset.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7589.28, + "Total Cost": 7593.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 21.731, + "Actual Total Time": 21.746, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8462.84, + "Plan Rows": 100360, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 18.401, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 1.45, + "Triggers": [], + "Execution Time": 21.833 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7589.28, + "Total Cost": 7593.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 25.307, + "Actual Total Time": 25.336, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8462.84, + "Plan Rows": 100360, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 22.002, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.7, + "Triggers": [], + "Execution Time": 25.397 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7589.28, + "Total Cost": 7593.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 38.115, + "Actual Total Time": 38.134, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8462.84, + "Plan Rows": 100360, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 30.229, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.757, + "Triggers": [], + "Execution Time": 38.209 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7589.28, + "Total Cost": 7593.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 26.947, + "Actual Total Time": 26.962, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8462.84, + "Plan Rows": 100360, + "Plan Width": 86, + "Actual Startup Time": 0.043, + "Actual Total Time": 23.382, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.753, + "Triggers": [], + "Execution Time": 27.124 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7589.28, + "Total Cost": 7593.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 23.966, + "Actual Total Time": 23.985, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8462.84, + "Plan Rows": 100360, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 19.876, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.682, + "Triggers": [], + "Execution Time": 24.055 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7589.28, + "Total Cost": 7593.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 19.854, + "Actual Total Time": 19.867, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8462.84, + "Plan Rows": 100360, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 16.461, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.693, + "Triggers": [], + "Execution Time": 19.912 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7589.28, + "Total Cost": 7593.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 30.997, + "Actual Total Time": 31.018, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8462.84, + "Plan Rows": 100360, + "Plan Width": 86, + "Actual Startup Time": 0.125, + "Actual Total Time": 26.972, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.81, + "Triggers": [], + "Execution Time": 31.424 + } +] diff --git a/evidence/track2/20261001-a/read-base-medium-first.json b/evidence/track2/20261001-a/read-base-medium-first.json new file mode 100644 index 00000000..cfbd10c8 --- /dev/null +++ b/evidence/track2/20261001-a/read-base-medium-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.52, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.088, + "Actual Total Time": 0.098, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3838.5, + "Plan Rows": 14651, + "Plan Width": 86, + "Actual Startup Time": 0.086, + "Actual Total Time": 0.093, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.505, + "Triggers": [], + "Execution Time": 0.157 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.52, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.082, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3838.5, + "Plan Rows": 14651, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.635, + "Triggers": [], + "Execution Time": 0.162 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.52, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3838.5, + "Plan Rows": 14651, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.454, + "Triggers": [], + "Execution Time": 0.12 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.52, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.098, + "Actual Total Time": 0.111, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3838.5, + "Plan Rows": 14651, + "Plan Width": 86, + "Actual Startup Time": 0.097, + "Actual Total Time": 0.105, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.634, + "Triggers": [], + "Execution Time": 0.195 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.52, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3838.5, + "Plan Rows": 14651, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.485, + "Triggers": [], + "Execution Time": 0.125 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.52, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.071, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3838.5, + "Plan Rows": 14651, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.674, + "Triggers": [], + "Execution Time": 0.161 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.52, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.135, + "Actual Total Time": 0.147, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3838.5, + "Plan Rows": 14651, + "Plan Width": 86, + "Actual Startup Time": 0.133, + "Actual Total Time": 0.141, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.876, + "Triggers": [], + "Execution Time": 0.244 + } +] diff --git a/evidence/track2/20261001-a/read-base-medium-late.json b/evidence/track2/20261001-a/read-base-medium-late.json new file mode 100644 index 00000000..5e98c6fd --- /dev/null +++ b/evidence/track2/20261001-a/read-base-medium-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3622.96, + "Plan Rows": 10821, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.848, + "Triggers": [], + "Execution Time": 0.137 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3622.96, + "Plan Rows": 10821, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.438, + "Triggers": [], + "Execution Time": 0.176 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3622.96, + "Plan Rows": 10821, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.559, + "Triggers": [], + "Execution Time": 0.151 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.093, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3622.96, + "Plan Rows": 10821, + "Plan Width": 86, + "Actual Startup Time": 0.071, + "Actual Total Time": 0.087, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.668, + "Triggers": [], + "Execution Time": 0.183 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.114, + "Actual Total Time": 0.135, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3622.96, + "Plan Rows": 10821, + "Plan Width": 86, + "Actual Startup Time": 0.113, + "Actual Total Time": 0.129, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.715, + "Triggers": [], + "Execution Time": 0.214 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.125, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3622.96, + "Plan Rows": 10821, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.12, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.755, + "Triggers": [], + "Execution Time": 0.207 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3622.96, + "Plan Rows": 10821, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.456, + "Triggers": [], + "Execution Time": 0.127 + } +] diff --git a/evidence/track2/20261001-a/read-base-medium-offset.json b/evidence/track2/20261001-a/read-base-medium-offset.json new file mode 100644 index 00000000..1f5b95ed --- /dev/null +++ b/evidence/track2/20261001-a/read-base-medium-offset.json @@ -0,0 +1,933 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3483.7, + "Total Cost": 3483.83, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 10.726, + "Actual Total Time": 10.761, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3449.95, + "Total Cost": 3486.58, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 8.986, + "Actual Total Time": 9.996, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 537.97, + "Total Cost": 2436.12, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 1.314, + "Actual Total Time": 3.839, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 534.31, + "Plan Rows": 14652, + "Plan Width": 0, + "Actual Startup Time": 1.281, + "Actual Total Time": 1.283, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.498, + "Triggers": [], + "Execution Time": 11.286 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3483.7, + "Total Cost": 3483.83, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 9.039, + "Actual Total Time": 9.047, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3449.95, + "Total Cost": 3486.58, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 7.75, + "Actual Total Time": 8.597, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 537.97, + "Total Cost": 2436.12, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 1.54, + "Actual Total Time": 3.504, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 534.31, + "Plan Rows": 14652, + "Plan Width": 0, + "Actual Startup Time": 1.505, + "Actual Total Time": 1.506, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.791, + "Triggers": [], + "Execution Time": 9.546 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3483.7, + "Total Cost": 3483.83, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 7.511, + "Actual Total Time": 7.52, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3449.95, + "Total Cost": 3486.58, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 6.563, + "Actual Total Time": 7.068, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 537.97, + "Total Cost": 2436.12, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 1.33, + "Actual Total Time": 2.872, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 534.31, + "Plan Rows": 14652, + "Plan Width": 0, + "Actual Startup Time": 1.292, + "Actual Total Time": 1.293, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.77, + "Triggers": [], + "Execution Time": 8.024 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3483.7, + "Total Cost": 3483.83, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 11.438, + "Actual Total Time": 11.454, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3449.95, + "Total Cost": 3486.58, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 10.158, + "Actual Total Time": 10.913, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 537.97, + "Total Cost": 2436.12, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 1.262, + "Actual Total Time": 4.467, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 534.31, + "Plan Rows": 14652, + "Plan Width": 0, + "Actual Startup Time": 1.216, + "Actual Total Time": 1.218, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.748, + "Triggers": [], + "Execution Time": 12.108 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3483.7, + "Total Cost": 3483.83, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 14.981, + "Actual Total Time": 14.989, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3449.95, + "Total Cost": 3486.58, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 13.989, + "Actual Total Time": 14.533, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 537.97, + "Total Cost": 2436.12, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 1.44, + "Actual Total Time": 4.544, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 534.31, + "Plan Rows": 14652, + "Plan Width": 0, + "Actual Startup Time": 1.392, + "Actual Total Time": 1.393, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.859, + "Triggers": [], + "Execution Time": 15.625 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3483.7, + "Total Cost": 3483.83, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 12.365, + "Actual Total Time": 12.374, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3449.95, + "Total Cost": 3486.58, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 11.186, + "Actual Total Time": 11.87, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 537.97, + "Total Cost": 2436.12, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 1.145, + "Actual Total Time": 3.649, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 534.31, + "Plan Rows": 14652, + "Plan Width": 0, + "Actual Startup Time": 1.103, + "Actual Total Time": 1.105, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.71, + "Triggers": [], + "Execution Time": 12.976 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3483.7, + "Total Cost": 3483.83, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 10.253, + "Actual Total Time": 10.261, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3449.95, + "Total Cost": 3486.58, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 9.109, + "Actual Total Time": 9.707, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 537.97, + "Total Cost": 2436.12, + "Plan Rows": 14652, + "Plan Width": 86, + "Actual Startup Time": 0.893, + "Actual Total Time": 2.644, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 534.31, + "Plan Rows": 14652, + "Plan Width": 0, + "Actual Startup Time": 0.868, + "Actual Total Time": 0.868, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.529, + "Triggers": [], + "Execution Time": 10.742 + } +] diff --git a/evidence/track2/20261001-a/read-base-small-first.json b/evidence/track2/20261001-a/read-base-small-first.json new file mode 100644 index 00000000..84d9c718 --- /dev/null +++ b/evidence/track2/20261001-a/read-base-small-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.37, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.09, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3287.62, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.085, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.682, + "Triggers": [], + "Execution Time": 0.189 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.37, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3287.62, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.465, + "Triggers": [], + "Execution Time": 0.162 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.37, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.073, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3287.62, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.593, + "Triggers": [], + "Execution Time": 0.13 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.37, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3287.62, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.073, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 1.06, + "Triggers": [], + "Execution Time": 0.139 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.37, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.068, + "Actual Total Time": 0.092, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3287.62, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.085, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.558, + "Triggers": [], + "Execution Time": 0.237 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.37, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.105, + "Actual Total Time": 0.124, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3287.62, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.104, + "Actual Total Time": 0.118, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.517, + "Triggers": [], + "Execution Time": 0.185 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.37, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.096, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3287.62, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.091, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.608, + "Triggers": [], + "Execution Time": 0.265 + } +] diff --git a/evidence/track2/20261001-a/read-base-small-late.json b/evidence/track2/20261001-a/read-base-small-late.json new file mode 100644 index 00000000..4be62060 --- /dev/null +++ b/evidence/track2/20261001-a/read-base-small-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3255.93, + "Plan Rows": 4429, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.055, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.536, + "Triggers": [], + "Execution Time": 0.113 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3255.93, + "Plan Rows": 4429, + "Plan Width": 86, + "Actual Startup Time": 0.071, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.729, + "Triggers": [], + "Execution Time": 0.184 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.057, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3255.93, + "Plan Rows": 4429, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.053, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.396, + "Triggers": [], + "Execution Time": 0.108 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.078, + "Actual Total Time": 0.089, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3255.93, + "Plan Rows": 4429, + "Plan Width": 86, + "Actual Startup Time": 0.077, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.705, + "Triggers": [], + "Execution Time": 0.164 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3255.93, + "Plan Rows": 4429, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.428, + "Triggers": [], + "Execution Time": 0.119 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3255.93, + "Plan Rows": 4429, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.058, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.771, + "Triggers": [], + "Execution Time": 0.12 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.087, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3255.93, + "Plan Rows": 4429, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.082, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.51, + "Triggers": [], + "Execution Time": 0.147 + } +] diff --git a/evidence/track2/20261001-a/read-base-small-offset.json b/evidence/track2/20261001-a/read-base-small-offset.json new file mode 100644 index 00000000..88c6ef46 --- /dev/null +++ b/evidence/track2/20261001-a/read-base-small-offset.json @@ -0,0 +1,933 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2278.04, + "Total Cost": 2278.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.118, + "Actual Total Time": 3.128, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2266.79, + "Total Cost": 2279.26, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 2.793, + "Actual Total Time": 2.971, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 183.07, + "Total Cost": 1960.42, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.651, + "Actual Total Time": 1.278, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.83, + "Plan Rows": 4988, + "Plan Width": 0, + "Actual Startup Time": 0.631, + "Actual Total Time": 0.632, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.531, + "Triggers": [], + "Execution Time": 3.357 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2278.04, + "Total Cost": 2278.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 5.525, + "Actual Total Time": 5.532, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2266.79, + "Total Cost": 2279.26, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 5.18, + "Actual Total Time": 5.356, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 183.07, + "Total Cost": 1960.42, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.494, + "Actual Total Time": 1.113, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.83, + "Plan Rows": 4988, + "Plan Width": 0, + "Actual Startup Time": 0.476, + "Actual Total Time": 0.477, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.434, + "Triggers": [], + "Execution Time": 6.092 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2278.04, + "Total Cost": 2278.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.791, + "Actual Total Time": 3.798, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2266.79, + "Total Cost": 2279.26, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 3.476, + "Actual Total Time": 3.645, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 183.07, + "Total Cost": 1960.42, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.327, + "Actual Total Time": 0.863, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.83, + "Plan Rows": 4988, + "Plan Width": 0, + "Actual Startup Time": 0.312, + "Actual Total Time": 0.313, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.637, + "Triggers": [], + "Execution Time": 4.049 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2278.04, + "Total Cost": 2278.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.756, + "Actual Total Time": 3.765, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2266.79, + "Total Cost": 2279.26, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 3.335, + "Actual Total Time": 3.588, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 183.07, + "Total Cost": 1960.42, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.336, + "Actual Total Time": 1.163, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.83, + "Plan Rows": 4988, + "Plan Width": 0, + "Actual Startup Time": 0.32, + "Actual Total Time": 0.321, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.779, + "Triggers": [], + "Execution Time": 3.985 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2278.04, + "Total Cost": 2278.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.768, + "Actual Total Time": 2.777, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2266.79, + "Total Cost": 2279.26, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 2.317, + "Actual Total Time": 2.585, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 183.07, + "Total Cost": 1960.42, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.388, + "Actual Total Time": 0.877, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.83, + "Plan Rows": 4988, + "Plan Width": 0, + "Actual Startup Time": 0.37, + "Actual Total Time": 0.371, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.417, + "Triggers": [], + "Execution Time": 2.991 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2278.04, + "Total Cost": 2278.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.265, + "Actual Total Time": 3.275, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2266.79, + "Total Cost": 2279.26, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 2.862, + "Actual Total Time": 3.097, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 183.07, + "Total Cost": 1960.42, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.414, + "Actual Total Time": 1.057, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.83, + "Plan Rows": 4988, + "Plan Width": 0, + "Actual Startup Time": 0.398, + "Actual Total Time": 0.399, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.488, + "Triggers": [], + "Execution Time": 3.493 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2278.04, + "Total Cost": 2278.17, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.615, + "Actual Total Time": 3.622, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2266.79, + "Total Cost": 2279.26, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 3.257, + "Actual Total Time": 3.456, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 183.07, + "Total Cost": 1960.42, + "Plan Rows": 4988, + "Plan Width": 86, + "Actual Startup Time": 0.727, + "Actual Total Time": 1.421, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.83, + "Plan Rows": 4988, + "Plan Width": 0, + "Actual Startup Time": 0.702, + "Actual Total Time": 0.703, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.959, + "Triggers": [], + "Execution Time": 3.853 + } +] diff --git a/evidence/track2/20261001-a/read-covering-large-first.json b/evidence/track2/20261001-a/read-covering-large-first.json new file mode 100644 index 00000000..ce4274dd --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-large-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.098, + "Actual Total Time": 0.11, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7524.3, + "Plan Rows": 99994, + "Plan Width": 86, + "Actual Startup Time": 0.097, + "Actual Total Time": 0.104, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.574, + "Triggers": [], + "Execution Time": 0.186 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.086, + "Actual Total Time": 0.097, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7524.3, + "Plan Rows": 99994, + "Plan Width": 86, + "Actual Startup Time": 0.085, + "Actual Total Time": 0.092, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.622, + "Triggers": [], + "Execution Time": 0.18 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.086, + "Actual Total Time": 0.097, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7524.3, + "Plan Rows": 99994, + "Plan Width": 86, + "Actual Startup Time": 0.085, + "Actual Total Time": 0.091, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.953, + "Triggers": [], + "Execution Time": 0.23 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.085, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7524.3, + "Plan Rows": 99994, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.526, + "Triggers": [], + "Execution Time": 0.183 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.083, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7524.3, + "Plan Rows": 99994, + "Plan Width": 86, + "Actual Startup Time": 0.071, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.725, + "Triggers": [], + "Execution Time": 0.16 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7524.3, + "Plan Rows": 99994, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.566, + "Triggers": [], + "Execution Time": 0.135 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.106, + "Actual Total Time": 0.116, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7524.3, + "Plan Rows": 99994, + "Plan Width": 86, + "Actual Startup Time": 0.104, + "Actual Total Time": 0.11, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.559, + "Triggers": [], + "Execution Time": 0.203 + } +] diff --git a/evidence/track2/20261001-a/read-covering-large-late.json b/evidence/track2/20261001-a/read-covering-large-late.json new file mode 100644 index 00000000..610e2da7 --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-large-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 626.76, + "Plan Rows": 8317, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.53, + "Triggers": [], + "Execution Time": 0.128 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.13, + "Actual Total Time": 0.169, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 626.76, + "Plan Rows": 8317, + "Plan Width": 86, + "Actual Startup Time": 0.127, + "Actual Total Time": 0.162, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.607, + "Triggers": [], + "Execution Time": 0.286 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 626.76, + "Plan Rows": 8317, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.702, + "Triggers": [], + "Execution Time": 0.137 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.08, + "Actual Total Time": 0.112, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 626.76, + "Plan Rows": 8317, + "Plan Width": 86, + "Actual Startup Time": 0.079, + "Actual Total Time": 0.105, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.543, + "Triggers": [], + "Execution Time": 0.239 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.101, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 626.76, + "Plan Rows": 8317, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.096, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.501, + "Triggers": [], + "Execution Time": 0.171 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.107, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 626.76, + "Plan Rows": 8317, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.101, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.778, + "Triggers": [], + "Execution Time": 0.279 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 626.76, + "Plan Rows": 8317, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.073, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.591, + "Triggers": [], + "Execution Time": 0.148 + } +] diff --git a/evidence/track2/20261001-a/read-covering-large-offset.json b/evidence/track2/20261001-a/read-covering-large-offset.json new file mode 100644 index 00000000..b63abdcc --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-large-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6546.82, + "Total Cost": 6550.46, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 25.087, + "Actual Total Time": 25.123, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7274.49, + "Plan Rows": 100004, + "Plan Width": 86, + "Actual Startup Time": 0.082, + "Actual Total Time": 21.666, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.63, + "Triggers": [], + "Execution Time": 25.219 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6546.82, + "Total Cost": 6550.46, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 20.685, + "Actual Total Time": 20.714, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7274.49, + "Plan Rows": 100004, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 17.425, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.428, + "Triggers": [], + "Execution Time": 20.767 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6546.82, + "Total Cost": 6550.46, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 19.804, + "Actual Total Time": 19.829, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7274.49, + "Plan Rows": 100004, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 16.562, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.446, + "Triggers": [], + "Execution Time": 19.878 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6546.82, + "Total Cost": 6550.46, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 21.916, + "Actual Total Time": 21.937, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7274.49, + "Plan Rows": 100004, + "Plan Width": 86, + "Actual Startup Time": 0.117, + "Actual Total Time": 18.38, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.478, + "Triggers": [], + "Execution Time": 21.989 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6546.82, + "Total Cost": 6550.46, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 19.856, + "Actual Total Time": 19.879, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7274.49, + "Plan Rows": 100004, + "Plan Width": 86, + "Actual Startup Time": 0.103, + "Actual Total Time": 16.814, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.937, + "Triggers": [], + "Execution Time": 19.961 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6546.82, + "Total Cost": 6550.46, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.093, + "Actual Total Time": 18.112, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7274.49, + "Plan Rows": 100004, + "Plan Width": 86, + "Actual Startup Time": 0.071, + "Actual Total Time": 15.06, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.421, + "Triggers": [], + "Execution Time": 18.162 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6546.82, + "Total Cost": 6550.46, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.656, + "Actual Total Time": 18.676, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7274.49, + "Plan Rows": 100004, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 15.518, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.412, + "Triggers": [], + "Execution Time": 18.723 + } +] diff --git a/evidence/track2/20261001-a/read-covering-medium-first.json b/evidence/track2/20261001-a/read-covering-medium-first.json new file mode 100644 index 00000000..28aa839e --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-medium-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.077, + "Actual Total Time": 0.115, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1133.18, + "Plan Rows": 15038, + "Plan Width": 86, + "Actual Startup Time": 0.076, + "Actual Total Time": 0.109, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.59, + "Triggers": [], + "Execution Time": 0.2 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1133.18, + "Plan Rows": 15038, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.416, + "Triggers": [], + "Execution Time": 0.135 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1133.18, + "Plan Rows": 15038, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.463, + "Triggers": [], + "Execution Time": 0.154 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1133.18, + "Plan Rows": 15038, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.427, + "Triggers": [], + "Execution Time": 0.138 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.1, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1133.18, + "Plan Rows": 15038, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.095, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.647, + "Triggers": [], + "Execution Time": 0.183 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.108, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1133.18, + "Plan Rows": 15038, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.103, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.674, + "Triggers": [], + "Execution Time": 0.189 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1133.18, + "Plan Rows": 15038, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.417, + "Triggers": [], + "Execution Time": 0.143 + } +] diff --git a/evidence/track2/20261001-a/read-covering-medium-late.json b/evidence/track2/20261001-a/read-covering-medium-late.json new file mode 100644 index 00000000..7abfbb1c --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-medium-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.24, + "Plan Rows": 11041, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.539, + "Triggers": [], + "Execution Time": 0.162 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.24, + "Plan Rows": 11041, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.556, + "Triggers": [], + "Execution Time": 0.133 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.105, + "Actual Total Time": 0.13, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.24, + "Plan Rows": 11041, + "Plan Width": 86, + "Actual Startup Time": 0.103, + "Actual Total Time": 0.124, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.784, + "Triggers": [], + "Execution Time": 0.273 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.24, + "Plan Rows": 11041, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.425, + "Triggers": [], + "Execution Time": 0.123 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.119, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.24, + "Plan Rows": 11041, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.114, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.5, + "Triggers": [], + "Execution Time": 0.181 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.079, + "Actual Total Time": 0.105, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.24, + "Plan Rows": 11041, + "Plan Width": 86, + "Actual Startup Time": 0.078, + "Actual Total Time": 0.099, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.715, + "Triggers": [], + "Execution Time": 0.189 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.11, + "Actual Total Time": 0.149, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.24, + "Plan Rows": 11041, + "Plan Width": 86, + "Actual Startup Time": 0.109, + "Actual Total Time": 0.143, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 1.069, + "Triggers": [], + "Execution Time": 0.256 + } +] diff --git a/evidence/track2/20261001-a/read-covering-medium-offset.json b/evidence/track2/20261001-a/read-covering-medium-offset.json new file mode 100644 index 00000000..193c458d --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-medium-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.48, + "Total Cost": 987.12, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 24.314, + "Actual Total Time": 24.326, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1095.62, + "Plan Rows": 15040, + "Plan Width": 86, + "Actual Startup Time": 11.675, + "Actual Total Time": 23.808, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.53, + "Triggers": [], + "Execution Time": 24.377 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.48, + "Total Cost": 987.12, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 10.681, + "Actual Total Time": 10.693, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1095.62, + "Plan Rows": 15040, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 10.016, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.475, + "Triggers": [], + "Execution Time": 10.746 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.48, + "Total Cost": 987.12, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.789, + "Actual Total Time": 2.801, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1095.62, + "Plan Rows": 15040, + "Plan Width": 86, + "Actual Startup Time": 0.104, + "Actual Total Time": 2.291, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.687, + "Triggers": [], + "Execution Time": 2.888 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.48, + "Total Cost": 987.12, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.48, + "Actual Total Time": 2.492, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1095.62, + "Plan Rows": 15040, + "Plan Width": 86, + "Actual Startup Time": 0.141, + "Actual Total Time": 2.041, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.493, + "Triggers": [], + "Execution Time": 2.543 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.48, + "Total Cost": 987.12, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.582, + "Actual Total Time": 3.597, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1095.62, + "Plan Rows": 15040, + "Plan Width": 86, + "Actual Startup Time": 0.123, + "Actual Total Time": 3.017, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.581, + "Triggers": [], + "Execution Time": 3.655 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.48, + "Total Cost": 987.12, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.849, + "Actual Total Time": 2.861, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1095.62, + "Plan Rows": 15040, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 2.328, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.425, + "Triggers": [], + "Execution Time": 2.907 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.48, + "Total Cost": 987.12, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.561, + "Actual Total Time": 2.573, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1095.62, + "Plan Rows": 15040, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 2.109, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.631, + "Triggers": [], + "Execution Time": 2.636 + } +] diff --git a/evidence/track2/20261001-a/read-covering-small-first.json b/evidence/track2/20261001-a/read-covering-small-first.json new file mode 100644 index 00000000..5d72aeed --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-small-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 375.54, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.431, + "Triggers": [], + "Execution Time": 0.13 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 375.54, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.064, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.541, + "Triggers": [], + "Execution Time": 0.141 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 375.54, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.465, + "Triggers": [], + "Execution Time": 0.134 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.08, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 375.54, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.477, + "Triggers": [], + "Execution Time": 0.144 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.271, + "Actual Total Time": 0.317, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 375.54, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.27, + "Actual Total Time": 0.313, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 1.494, + "Triggers": [], + "Execution Time": 0.496 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.064, + "Actual Total Time": 0.08, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 375.54, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.655, + "Triggers": [], + "Execution Time": 0.139 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 375.54, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.582, + "Triggers": [], + "Execution Time": 0.138 + } +] diff --git a/evidence/track2/20261001-a/read-covering-small-late.json b/evidence/track2/20261001-a/read-covering-small-late.json new file mode 100644 index 00000000..4d63b6ff --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-small-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.076, + "Actual Total Time": 0.105, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.22, + "Plan Rows": 4390, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.1, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.502, + "Triggers": [], + "Execution Time": 0.197 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.22, + "Plan Rows": 4390, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.439, + "Triggers": [], + "Execution Time": 0.179 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.22, + "Plan Rows": 4390, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.432, + "Triggers": [], + "Execution Time": 0.124 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.22, + "Plan Rows": 4390, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.455, + "Triggers": [], + "Execution Time": 0.124 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.084, + "Actual Total Time": 0.105, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.22, + "Plan Rows": 4390, + "Plan Width": 86, + "Actual Startup Time": 0.068, + "Actual Total Time": 0.086, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.569, + "Triggers": [], + "Execution Time": 0.23 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.105, + "Actual Total Time": 0.127, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.22, + "Plan Rows": 4390, + "Plan Width": 86, + "Actual Startup Time": 0.103, + "Actual Total Time": 0.122, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.538, + "Triggers": [], + "Execution Time": 0.214 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.105, + "Actual Total Time": 0.129, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.22, + "Plan Rows": 4390, + "Plan Width": 86, + "Actual Startup Time": 0.104, + "Actual Total Time": 0.123, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.629, + "Triggers": [], + "Execution Time": 0.239 + } +] diff --git a/evidence/track2/20261001-a/read-covering-small-offset.json b/evidence/track2/20261001-a/read-covering-small-offset.json new file mode 100644 index 00000000..606eac31 --- /dev/null +++ b/evidence/track2/20261001-a/read-covering-small-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 329.77, + "Total Cost": 333.43, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.904, + "Actual Total Time": 0.921, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 363.15, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.741, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.401, + "Triggers": [], + "Execution Time": 0.966 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 329.77, + "Total Cost": 333.43, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 1.22, + "Actual Total Time": 1.235, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 363.15, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.186, + "Actual Total Time": 1.054, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.574, + "Triggers": [], + "Execution Time": 1.295 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 329.77, + "Total Cost": 333.43, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 1.233, + "Actual Total Time": 1.244, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 363.15, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.096, + "Actual Total Time": 1.081, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.616, + "Triggers": [], + "Execution Time": 1.301 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 329.77, + "Total Cost": 333.43, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 1.012, + "Actual Total Time": 1.027, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 363.15, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.086, + "Actual Total Time": 0.862, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.469, + "Triggers": [], + "Execution Time": 1.075 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 329.77, + "Total Cost": 333.43, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.823, + "Actual Total Time": 0.834, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 363.15, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.064, + "Actual Total Time": 0.681, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.412, + "Triggers": [], + "Execution Time": 0.878 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 329.77, + "Total Cost": 333.43, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 1.283, + "Actual Total Time": 1.299, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 363.15, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.108, + "Actual Total Time": 1.0, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.659, + "Triggers": [], + "Execution Time": 1.361 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 329.77, + "Total Cost": 333.43, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.978, + "Actual Total Time": 0.988, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 363.15, + "Plan Rows": 4956, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.828, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.547, + "Triggers": [], + "Execution Time": 1.052 + } +] diff --git a/evidence/track2/20261001-a/reads.json b/evidence/track2/20261001-a/reads.json new file mode 100644 index 00000000..2a511348 --- /dev/null +++ b/evidence/track2/20261001-a/reads.json @@ -0,0 +1,218 @@ +[ + { + "name": "read-base-large-first", + "median_ms": 0.099, + "min_ms": 0.096, + "max_ms": 0.134, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-base-large-late", + "median_ms": 0.17, + "min_ms": 0.116, + "max_ms": 0.336, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 6, + "shared_read": 0 + }, + { + "name": "read-base-large-offset", + "median_ms": 25.397, + "min_ms": 19.912, + "max_ms": 38.209, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 90050, + "heap_fetches": null, + "shared_hit": 1933, + "shared_read": 0 + }, + { + "name": "read-base-medium-first", + "median_ms": 0.161, + "min_ms": 0.12, + "max_ms": 0.244, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-base-medium-late", + "median_ms": 0.176, + "min_ms": 0.127, + "max_ms": 0.214, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 6, + "shared_read": 0 + }, + { + "name": "read-base-medium-offset", + "median_ms": 11.286, + "min_ms": 8.024, + "max_ms": 15.625, + "scan": "Bitmap Index Scan", + "index": "messages_history_idx", + "scan_rows": 15000, + "heap_fetches": null, + "shared_hit": 331, + "shared_read": 0 + }, + { + "name": "read-base-small-first", + "median_ms": 0.185, + "min_ms": 0.13, + "max_ms": 0.265, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-base-small-late", + "median_ms": 0.12, + "min_ms": 0.108, + "max_ms": 0.184, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-base-small-offset", + "median_ms": 3.853, + "min_ms": 2.991, + "max_ms": 6.092, + "scan": "Bitmap Index Scan", + "index": "messages_history_idx", + "scan_rows": 5000, + "heap_fetches": null, + "shared_hit": 118, + "shared_read": 0 + }, + { + "name": "read-covering-large-first", + "median_ms": 0.183, + "min_ms": 0.135, + "max_ms": 0.23, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-covering-large-late", + "median_ms": 0.171, + "min_ms": 0.128, + "max_ms": 0.286, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-large-offset", + "median_ms": 19.961, + "min_ms": 18.162, + "max_ms": 25.219, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 90050, + "heap_fetches": 0, + "shared_hit": 1237, + "shared_read": 0 + }, + { + "name": "read-covering-medium-first", + "median_ms": 0.154, + "min_ms": 0.135, + "max_ms": 0.2, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-medium-late", + "median_ms": 0.181, + "min_ms": 0.123, + "max_ms": 0.273, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-medium-offset", + "median_ms": 2.907, + "min_ms": 2.543, + "max_ms": 24.377, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 13550, + "heap_fetches": 0, + "shared_hit": 190, + "shared_read": 0 + }, + { + "name": "read-covering-small-first", + "median_ms": 0.139, + "min_ms": 0.13, + "max_ms": 0.496, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-small-late", + "median_ms": 0.197, + "min_ms": 0.124, + "max_ms": 0.239, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-small-offset", + "median_ms": 1.075, + "min_ms": 0.878, + "max_ms": 1.361, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 4550, + "heap_fetches": 0, + "shared_hit": 66, + "shared_read": 0 + } +] diff --git a/evidence/track2/20261001-a/recovery.json b/evidence/track2/20261001-a/recovery.json new file mode 100644 index 00000000..e387a667 --- /dev/null +++ b/evidence/track2/20261001-a/recovery.json @@ -0,0 +1,52 @@ +{ + "dump_seconds": 1.0008760000346228, + "dump_bytes": 3613568, + "dump_sha256": "9e642628f6f6806a3b363880fa417dbc02aec454561dbf5bb6737ce25b99d8e5", + "restore_seconds": 1.5302693999838084, + "startup_restore_verify_seconds": 16.36345339997206, + "expected": { + "counts": { + "users": 1, + "chats": 3, + "chat_members": 3, + "messages": 120000, + "schema_migrations": 1 + }, + "distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000", + "samples": [ + "{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}", + "{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}", + "{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}", + "{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}", + "{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}", + "{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}" + ] + }, + "actual": { + "counts": { + "users": 1, + "chats": 3, + "chat_members": 3, + "messages": 120000, + "schema_migrations": 1 + }, + "distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000", + "samples": [ + "{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}", + "{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}", + "{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}", + "{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}", + "{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}", + "{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}" + ] + }, + "match": true, + "marker_source": 1, + "marker_restore": 0 +} diff --git a/evidence/track2/20261001-a/sizes.json b/evidence/track2/20261001-a/sizes.json new file mode 100644 index 00000000..1c9ebf19 --- /dev/null +++ b/evidence/track2/20261001-a/sizes.json @@ -0,0 +1,10 @@ +{ + "base": { + "table_bytes": 14049280, + "index_bytes": 7086080 + }, + "covering": { + "table_bytes": 14049280, + "index_bytes": 13574144 + } +} diff --git a/evidence/track2/20261001-a/write-base.json b/evidence/track2/20261001-a/write-base.json new file mode 100644 index 00000000..bdaf7dcd --- /dev/null +++ b/evidence/track2/20261001-a/write-base.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 48.154, + "Actual Total Time": 48.156, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50266, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.863, + "Actual Total Time": 5.57, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.022, + "Actual Total Time": 1.562, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.43, + "Triggers": [], + "Execution Time": 48.543 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 41.63, + "Actual Total Time": 41.631, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50266, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.288, + "Actual Total Time": 4.851, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.024, + "Actual Total Time": 1.296, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.343, + "Triggers": [], + "Execution Time": 42.037 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 43.15, + "Actual Total Time": 43.153, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50266, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 5.013, + "Actual Total Time": 5.55, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.018, + "Actual Total Time": 1.512, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.351, + "Triggers": [], + "Execution Time": 43.519 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 44.809, + "Actual Total Time": 44.81, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50266, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.851, + "Actual Total Time": 4.45, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.017, + "Actual Total Time": 1.064, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.291, + "Triggers": [], + "Execution Time": 45.14 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 46.285, + "Actual Total Time": 46.287, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50266, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 5.283, + "Actual Total Time": 5.9, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.021, + "Actual Total Time": 1.305, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.357, + "Triggers": [], + "Execution Time": 46.609 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 48.791, + "Actual Total Time": 48.792, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50266, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.931, + "Actual Total Time": 4.628, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.017, + "Actual Total Time": 1.174, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.321, + "Triggers": [], + "Execution Time": 49.153 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 50.597, + "Actual Total Time": 50.601, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50266, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.729, + "Actual Total Time": 4.504, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.016, + "Actual Total Time": 1.011, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.297, + "Triggers": [], + "Execution Time": 51.059 + } +] diff --git a/evidence/track2/20261001-a/write-covering.json b/evidence/track2/20261001-a/write-covering.json new file mode 100644 index 00000000..a62f93e1 --- /dev/null +++ b/evidence/track2/20261001-a/write-covering.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 55.017, + "Actual Total Time": 55.018, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50414, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.671, + "Actual Total Time": 5.489, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.082, + "Actual Total Time": 1.455, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.542, + "Triggers": [], + "Execution Time": 55.332 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 54.228, + "Actual Total Time": 54.23, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50414, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.845, + "Actual Total Time": 5.474, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.022, + "Actual Total Time": 1.317, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.427, + "Triggers": [], + "Execution Time": 54.593 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 46.811, + "Actual Total Time": 46.812, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50413, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.178, + "Actual Total Time": 5.114, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.017, + "Actual Total Time": 1.353, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.305, + "Triggers": [], + "Execution Time": 47.249 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 52.45, + "Actual Total Time": 52.452, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50414, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.163, + "Actual Total Time": 4.827, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.02, + "Actual Total Time": 1.184, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.329, + "Triggers": [], + "Execution Time": 52.772 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 67.771, + "Actual Total Time": 67.773, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50414, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 6.878, + "Actual Total Time": 7.724, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.03, + "Actual Total Time": 1.734, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.545, + "Triggers": [], + "Execution Time": 68.123 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 49.711, + "Actual Total Time": 49.713, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50414, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.595, + "Actual Total Time": 5.392, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.017, + "Actual Total Time": 1.399, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.347, + "Triggers": [], + "Execution Time": 50.048 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 53.561, + "Actual Total Time": 53.562, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50414, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.592, + "Actual Total Time": 5.291, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.017, + "Actual Total Time": 1.23, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.297, + "Triggers": [], + "Execution Time": 53.906 + } +] diff --git a/evidence/track2/20261001-a/write-none.json b/evidence/track2/20261001-a/write-none.json new file mode 100644 index 00000000..f2e246f2 --- /dev/null +++ b/evidence/track2/20261001-a/write-none.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 31.86, + "Actual Total Time": 31.864, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.815, + "Actual Total Time": 5.454, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.031, + "Actual Total Time": 1.465, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.521, + "Triggers": [], + "Execution Time": 32.501 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 29.682, + "Actual Total Time": 29.683, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.354, + "Actual Total Time": 4.861, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.024, + "Actual Total Time": 1.179, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.371, + "Triggers": [], + "Execution Time": 30.017 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 30.946, + "Actual Total Time": 30.948, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 5.131, + "Actual Total Time": 5.625, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.066, + "Actual Total Time": 1.55, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.469, + "Triggers": [], + "Execution Time": 31.337 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 37.267, + "Actual Total Time": 37.269, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.443, + "Actual Total Time": 5.163, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.022, + "Actual Total Time": 1.215, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.457, + "Triggers": [], + "Execution Time": 37.638 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 36.507, + "Actual Total Time": 36.508, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 5.085, + "Actual Total Time": 5.716, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.027, + "Actual Total Time": 1.658, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.639, + "Triggers": [], + "Execution Time": 36.936 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 33.163, + "Actual Total Time": 33.166, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.784, + "Actual Total Time": 5.364, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.025, + "Actual Total Time": 1.438, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.424, + "Triggers": [], + "Execution Time": 33.52 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 28.842, + "Actual Total Time": 28.844, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.92, + "Actual Total Time": 4.403, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.017, + "Actual Total Time": 1.062, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.299, + "Triggers": [], + "Execution Time": 29.241 + } +] diff --git a/evidence/track2/20261001-a/writes.json b/evidence/track2/20261001-a/writes.json new file mode 100644 index 00000000..d67c541f --- /dev/null +++ b/evidence/track2/20261001-a/writes.json @@ -0,0 +1,26 @@ +[ + { + "variant": "none", + "median_ms": 32.501, + "min_ms": 29.241, + "max_ms": 37.638, + "median_wal_bytes": 2319396, + "index_bytes": 417792 + }, + { + "variant": "base", + "median_ms": 46.609, + "min_ms": 42.037, + "max_ms": 51.059, + "median_wal_bytes": 3343720, + "index_bytes": 1024000 + }, + { + "variant": "covering", + "median_ms": 53.906, + "min_ms": 47.249, + "max_ms": 68.123, + "median_wal_bytes": 3897536, + "index_bytes": 1572864 + } +] diff --git a/evidence/track2/20261001-b/commands.jsonl b/evidence/track2/20261001-b/commands.jsonl new file mode 100644 index 00000000..a1b51f3c --- /dev/null +++ b/evidence/track2/20261001-b/commands.jsonl @@ -0,0 +1,275 @@ +{"utc": "2026-10-01T15:03:12.866894+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "up", "-d", "--wait", "source"], "seconds": 10.115252310002688, "exit_code": 0} +{"utc": "2026-10-01T15:03:21.597257+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "run", "--build", "--rm", "migrator"], "seconds": 8.726224685000489, "exit_code": 0} +{"utc": "2026-10-01T15:03:27.868962+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 6.261631000001216, "exit_code": 0} +{"utc": "2026-10-01T15:03:27.997769+00:00", "command": ["git", "rev-parse", "HEAD"], "seconds": 0.1258040329994401, "exit_code": 0} +{"utc": "2026-10-01T15:03:28.752923+00:00", "command": ["git", "status", "--porcelain"], "seconds": 0.753562359008356, "exit_code": 0} +{"utc": "2026-10-01T15:03:28.816579+00:00", "command": ["docker", "version", "--format", "{{.Server.Version}}"], "seconds": 0.062160556990420446, "exit_code": 0} +{"utc": "2026-10-01T15:03:30.245457+00:00", "command": ["docker", "info", "--format", "{{.NCPU}} CPUs; {{.MemTotal}} bytes RAM"], "seconds": 4.135715290991357, "exit_code": 0} +{"utc": "2026-10-01T15:03:32.898774+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 2.650104234999162, "exit_code": 0} +{"utc": "2026-10-01T15:03:34.208406+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3080209319887217, "exit_code": 0} +{"utc": "2026-10-01T15:03:34.260563+00:00", "command": ["docker", "inspect", "--format", "image={{.Image}} memory_limit={{.HostConfig.Memory}} nano_cpus={{.HostConfig.NanoCpus}}", "messenger-track2-20261001-b-source-1"], "seconds": 0.05040767999889795, "exit_code": 0} +{"utc": "2026-10-01T15:03:37.688234+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 3.3852971689921105, "exit_code": 0} +{"utc": "2026-10-01T15:03:43.348803+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 5.6499241269921185, "exit_code": 0} +{"utc": "2026-10-01T15:03:49.301621+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 5.9388621149992105, "exit_code": 0} +{"utc": "2026-10-01T15:03:54.287564+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 4.969680185997277, "exit_code": 0} +{"utc": "2026-10-01T15:03:55.699176+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 4.14401411099243, "exit_code": 0} +{"utc": "2026-10-01T15:03:57.360312+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.6491190160013502, "exit_code": 0} +{"utc": "2026-10-01T15:03:59.118556+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.7567403199936962, "exit_code": 0} +{"utc": "2026-10-01T15:04:00.658171+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.5381789749953896, "exit_code": 0} +{"utc": "2026-10-01T15:04:02.186777+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.5121392119908705, "exit_code": 0} +{"utc": "2026-10-01T15:04:03.525162+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3368562719988404, "exit_code": 0} +{"utc": "2026-10-01T15:04:04.860119+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.333009010006208, "exit_code": 0} +{"utc": "2026-10-01T15:04:06.494498+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.6309386909997556, "exit_code": 0} +{"utc": "2026-10-01T15:04:07.893570+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3972283039911417, "exit_code": 0} +{"utc": "2026-10-01T15:04:09.416081+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.512216310002259, "exit_code": 0} +{"utc": "2026-10-01T15:04:10.990951+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.572322047999478, "exit_code": 0} +{"utc": "2026-10-01T15:04:14.146950+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 3.1528303300001426, "exit_code": 0} +{"utc": "2026-10-01T15:04:15.785435+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.6359566989995074, "exit_code": 0} +{"utc": "2026-10-01T15:04:17.065727+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2782398470008047, "exit_code": 0} +{"utc": "2026-10-01T15:04:18.296385+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2288419309916208, "exit_code": 0} +{"utc": "2026-10-01T15:04:19.490870+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1929460520041175, "exit_code": 0} +{"utc": "2026-10-01T15:04:20.736400+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2433669839956565, "exit_code": 0} +{"utc": "2026-10-01T15:04:22.472420+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.7279757329961285, "exit_code": 0} +{"utc": "2026-10-01T15:04:23.766052+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2912184680026257, "exit_code": 0} +{"utc": "2026-10-01T15:04:23.399882+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 2.3722532969986787, "exit_code": 0} +{"utc": "2026-10-01T15:04:24.699797+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2974264869990293, "exit_code": 0} +{"utc": "2026-10-01T15:04:26.853076+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 2.1510517910064664, "exit_code": 0} +{"utc": "2026-10-01T15:04:28.231504+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3752772320003714, "exit_code": 0} +{"utc": "2026-10-01T15:04:31.331679+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 3.0980222930083983, "exit_code": 0} +{"utc": "2026-10-01T15:04:32.617963+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2826195340021513, "exit_code": 0} +{"utc": "2026-10-01T15:04:33.858663+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2305999099917244, "exit_code": 0} +{"utc": "2026-10-01T15:04:35.101726+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.241519260001951, "exit_code": 0} +{"utc": "2026-10-01T15:04:36.292847+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1890875700046308, "exit_code": 0} +{"utc": "2026-10-01T15:04:37.562962+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2675973079894902, "exit_code": 0} +{"utc": "2026-10-01T15:04:38.767493+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.202973221996217, "exit_code": 0} +{"utc": "2026-10-01T15:04:39.957167+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.18761185000767, "exit_code": 0} +{"utc": "2026-10-01T15:04:41.393669+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4338953830010723, "exit_code": 0} +{"utc": "2026-10-01T15:04:42.845915+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4505802130006487, "exit_code": 0} +{"utc": "2026-10-01T15:04:44.601095+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.7502124290040229, "exit_code": 0} +{"utc": "2026-10-01T15:04:46.317844+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.7149951460014563, "exit_code": 0} +{"utc": "2026-10-01T15:04:47.535355+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2152037610067055, "exit_code": 0} +{"utc": "2026-10-01T15:04:48.846022+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.296269582991954, "exit_code": 0} +{"utc": "2026-10-01T15:04:50.043297+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1954942739976104, "exit_code": 0} +{"utc": "2026-10-01T15:04:51.258042+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.212805897986982, "exit_code": 0} +{"utc": "2026-10-01T15:04:52.322616+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2436706130101811, "exit_code": 0} +{"utc": "2026-10-01T15:04:53.503668+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1794922780100023, "exit_code": 0} +{"utc": "2026-10-01T15:04:54.679554+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.173844637000002, "exit_code": 0} +{"utc": "2026-10-01T15:04:55.895123+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2131573450024007, "exit_code": 0} +{"utc": "2026-10-01T15:04:57.173545+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2761229860043386, "exit_code": 0} +{"utc": "2026-10-01T15:04:58.414170+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2319262370001525, "exit_code": 0} +{"utc": "2026-10-01T15:04:59.637092+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2210963429970434, "exit_code": 0} +{"utc": "2026-10-01T15:05:00.914593+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2756143230071757, "exit_code": 0} +{"utc": "2026-10-01T15:05:02.196808+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2804737049882533, "exit_code": 0} +{"utc": "2026-10-01T15:05:03.513132+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3147219519887585, "exit_code": 0} +{"utc": "2026-10-01T15:05:04.775462+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2599263659940334, "exit_code": 0} +{"utc": "2026-10-01T15:05:05.948842+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1710702660056995, "exit_code": 0} +{"utc": "2026-10-01T15:05:03.269599+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2537869649968343, "exit_code": 0} +{"utc": "2026-10-01T15:05:04.527440+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2492564330023015, "exit_code": 0} +{"utc": "2026-10-01T15:05:05.742937+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.213204340005177, "exit_code": 0} +{"utc": "2026-10-01T15:05:06.935650+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1912334299995564, "exit_code": 0} +{"utc": "2026-10-01T15:05:08.113591+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1760159700061195, "exit_code": 0} +{"utc": "2026-10-01T15:05:09.273584+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.158200335004949, "exit_code": 0} +{"utc": "2026-10-01T15:05:10.502145+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2267938049917575, "exit_code": 0} +{"utc": "2026-10-01T15:05:11.751498+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2473366829945007, "exit_code": 0} +{"utc": "2026-10-01T15:05:12.951844+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.197552761004772, "exit_code": 0} +{"utc": "2026-10-01T15:05:14.184583+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2310153429862112, "exit_code": 0} +{"utc": "2026-10-01T15:05:15.446219+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2594598900031997, "exit_code": 0} +{"utc": "2026-10-01T15:05:16.652792+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2046069969946984, "exit_code": 0} +{"utc": "2026-10-01T15:05:16.574664+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.214596828998765, "exit_code": 0} +{"utc": "2026-10-01T15:05:17.849883+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2732051880011568, "exit_code": 0} +{"utc": "2026-10-01T15:05:19.135593+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2821531480003614, "exit_code": 0} +{"utc": "2026-10-01T15:05:20.437325+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2996605549997184, "exit_code": 0} +{"utc": "2026-10-01T15:05:21.707764+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2683867729938356, "exit_code": 0} +{"utc": "2026-10-01T15:05:22.984890+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2747329999983776, "exit_code": 0} +{"utc": "2026-10-01T15:05:24.221718+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.234784688000218, "exit_code": 0} +{"utc": "2026-10-01T15:05:25.496326+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2723135239939438, "exit_code": 0} +{"utc": "2026-10-01T15:05:26.774473+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.269964216000517, "exit_code": 0} +{"utc": "2026-10-01T15:05:28.004654+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2275913000048604, "exit_code": 0} +{"utc": "2026-10-01T15:05:29.343597+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3369855569908395, "exit_code": 0} +{"utc": "2026-10-01T15:05:30.582502+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2371430639905157, "exit_code": 0} +{"utc": "2026-10-01T15:05:31.838025+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.253352393003297, "exit_code": 0} +{"utc": "2026-10-01T15:05:33.063001+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2228954559977865, "exit_code": 0} +{"utc": "2026-10-01T15:05:34.249462+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1842827020009281, "exit_code": 0} +{"utc": "2026-10-01T15:05:35.448806+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.197362869992503, "exit_code": 0} +{"utc": "2026-10-01T15:05:37.026971+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.567303157004062, "exit_code": 0} +{"utc": "2026-10-01T15:05:38.525054+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4961746140033938, "exit_code": 0} +{"utc": "2026-10-01T15:05:39.787981+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2611388369987253, "exit_code": 0} +{"utc": "2026-10-01T15:05:41.049491+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.259537146994262, "exit_code": 0} +{"utc": "2026-10-01T15:05:42.289596+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2381008629890857, "exit_code": 0} +{"utc": "2026-10-01T15:05:43.529815+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2380012670037104, "exit_code": 0} +{"utc": "2026-10-01T15:05:44.748832+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2170857780001825, "exit_code": 0} +{"utc": "2026-10-01T15:05:45.832773+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2833504470036132, "exit_code": 0} +{"utc": "2026-10-01T15:05:44.538512+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.248369155000546, "exit_code": 0} +{"utc": "2026-10-01T15:05:45.730829+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1904773429996567, "exit_code": 0} +{"utc": "2026-10-01T15:05:46.861165+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1283346580021316, "exit_code": 0} +{"utc": "2026-10-01T15:05:48.099934+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2365346169972327, "exit_code": 0} +{"utc": "2026-10-01T15:05:49.337689+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2357732049858896, "exit_code": 0} +{"utc": "2026-10-01T15:05:50.616138+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2761089539999375, "exit_code": 0} +{"utc": "2026-10-01T15:05:51.883687+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2559040339983767, "exit_code": 0} +{"utc": "2026-10-01T15:05:53.115587+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2300304849923123, "exit_code": 0} +{"utc": "2026-10-01T15:05:54.357776+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2398116279946407, "exit_code": 0} +{"utc": "2026-10-01T15:05:55.605257+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2447015660000034, "exit_code": 0} +{"utc": "2026-10-01T15:05:56.928148+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3204870440094965, "exit_code": 0} +{"utc": "2026-10-01T15:05:58.155703+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2253647379984614, "exit_code": 0} +{"utc": "2026-10-01T15:05:59.362339+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.203091644012602, "exit_code": 0} +{"utc": "2026-10-01T15:06:00.568832+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2046842510026181, "exit_code": 0} +{"utc": "2026-10-01T15:06:01.830886+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2535182430001441, "exit_code": 0} +{"utc": "2026-10-01T15:06:03.079485+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2468229310034076, "exit_code": 0} +{"utc": "2026-10-01T15:06:04.363733+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2822509840043494, "exit_code": 0} +{"utc": "2026-10-01T15:06:05.679635+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3142090420005843, "exit_code": 0} +{"utc": "2026-10-01T15:06:07.060092+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3769749869970838, "exit_code": 0} +{"utc": "2026-10-01T15:06:08.332452+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2703987949935254, "exit_code": 0} +{"utc": "2026-10-01T15:06:09.571455+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2367421990056755, "exit_code": 0} +{"utc": "2026-10-01T15:06:10.806557+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2330374459997984, "exit_code": 0} +{"utc": "2026-10-01T15:06:12.031112+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.216347791996668, "exit_code": 0} +{"utc": "2026-10-01T15:06:13.029890+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1776673910062527, "exit_code": 0} +{"utc": "2026-10-01T15:06:11.761354+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2714858789986465, "exit_code": 0} +{"utc": "2026-10-01T15:06:13.005299+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2420434550003847, "exit_code": 0} +{"utc": "2026-10-01T15:06:14.261954+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.254947777997586, "exit_code": 0} +{"utc": "2026-10-01T15:06:15.478843+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2151308250031434, "exit_code": 0} +{"utc": "2026-10-01T15:06:16.614859+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1329427610035054, "exit_code": 0} +{"utc": "2026-10-01T15:06:17.821187+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.204347514998517, "exit_code": 0} +{"utc": "2026-10-01T15:06:19.127458+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3043161340028746, "exit_code": 0} +{"utc": "2026-10-01T15:06:20.346338+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2172495029954007, "exit_code": 0} +{"utc": "2026-10-01T15:06:21.638758+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.289459578008973, "exit_code": 0} +{"utc": "2026-10-01T15:06:22.873341+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.22329249100585, "exit_code": 0} +{"utc": "2026-10-01T15:06:24.098226+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2231502500071656, "exit_code": 0} +{"utc": "2026-10-01T15:06:25.368321+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2681470460083801, "exit_code": 0} +{"utc": "2026-10-01T15:06:26.599875+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.229474730003858, "exit_code": 0} +{"utc": "2026-10-01T15:06:27.829867+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2274839830060955, "exit_code": 0} +{"utc": "2026-10-01T15:06:29.049249+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2175829360057833, "exit_code": 0} +{"utc": "2026-10-01T15:06:30.275628+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2248247789975721, "exit_code": 0} +{"utc": "2026-10-01T15:06:31.525117+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2469225960085168, "exit_code": 0} +{"utc": "2026-10-01T15:06:32.740369+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2065041960013332, "exit_code": 0} +{"utc": "2026-10-01T15:06:33.972100+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.229600266990019, "exit_code": 0} +{"utc": "2026-10-01T15:06:35.266019+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2913752629974624, "exit_code": 0} +{"utc": "2026-10-01T15:06:36.553960+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2860726030048681, "exit_code": 0} +{"utc": "2026-10-01T15:06:37.769769+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2134542520070681, "exit_code": 0} +{"utc": "2026-10-01T15:06:38.983768+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2119833990000188, "exit_code": 0} +{"utc": "2026-10-01T15:06:40.249851+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2628626140067354, "exit_code": 0} +{"utc": "2026-10-01T15:06:38.788965+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2672154570027487, "exit_code": 0} +{"utc": "2026-10-01T15:06:40.071807+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2702968490048079, "exit_code": 0} +{"utc": "2026-10-01T15:06:41.295306+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.221529165006359, "exit_code": 0} +{"utc": "2026-10-01T15:06:42.579637+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2825046159996418, "exit_code": 0} +{"utc": "2026-10-01T15:06:43.922659+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3409690529952059, "exit_code": 0} +{"utc": "2026-10-01T15:06:45.135906+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.210861711006146, "exit_code": 0} +{"utc": "2026-10-01T15:06:46.365784+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.227604027997586, "exit_code": 0} +{"utc": "2026-10-01T15:06:47.565658+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1980109360010829, "exit_code": 0} +{"utc": "2026-10-01T15:06:48.804096+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2362072749965591, "exit_code": 0} +{"utc": "2026-10-01T15:06:50.001672+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.195550534001086, "exit_code": 0} +{"utc": "2026-10-01T15:06:51.208977+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2055341169907479, "exit_code": 0} +{"utc": "2026-10-01T15:06:52.455515+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.243776043993421, "exit_code": 0} +{"utc": "2026-10-01T15:06:53.700618+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2348693620006088, "exit_code": 0} +{"utc": "2026-10-01T15:06:54.910454+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2077700089866994, "exit_code": 0} +{"utc": "2026-10-01T15:06:56.150526+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2385733219998656, "exit_code": 0} +{"utc": "2026-10-01T15:06:57.368384+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2159943459992064, "exit_code": 0} +{"utc": "2026-10-01T15:06:58.620567+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2499831939931028, "exit_code": 0} +{"utc": "2026-10-01T15:06:59.892675+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.270066137003596, "exit_code": 0} +{"utc": "2026-10-01T15:07:01.127503+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.232458473998122, "exit_code": 0} +{"utc": "2026-10-01T15:07:02.406720+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2774088769947411, "exit_code": 0} +{"utc": "2026-10-01T15:07:03.715975+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.300052795006195, "exit_code": 0} +{"utc": "2026-10-01T15:07:05.003358+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2853258669929346, "exit_code": 0} +{"utc": "2026-10-01T15:07:06.240937+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2359862129960675, "exit_code": 0} +{"utc": "2026-10-01T15:07:07.531731+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2888600689911982, "exit_code": 0} +{"utc": "2026-10-01T15:07:06.018448+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2912498939986108, "exit_code": 0} +{"utc": "2026-10-01T15:07:07.252779+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2326947030087467, "exit_code": 0} +{"utc": "2026-10-01T15:07:08.515352+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2602200089895632, "exit_code": 0} +{"utc": "2026-10-01T15:07:09.754207+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2366255189990625, "exit_code": 0} +{"utc": "2026-10-01T15:07:11.377818+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.611743697008933, "exit_code": 0} +{"utc": "2026-10-01T15:07:12.697801+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3167193950066576, "exit_code": 0} +{"utc": "2026-10-01T15:07:14.014148+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.314052959001856, "exit_code": 0} +{"utc": "2026-10-01T15:07:15.231515+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2152219820127357, "exit_code": 0} +{"utc": "2026-10-01T15:07:16.463456+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2293431069992948, "exit_code": 0} +{"utc": "2026-10-01T15:07:17.646719+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1807407930027694, "exit_code": 0} +{"utc": "2026-10-01T15:07:18.967216+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3187063740042504, "exit_code": 0} +{"utc": "2026-10-01T15:07:20.200986+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.231607270994573, "exit_code": 0} +{"utc": "2026-10-01T15:07:21.562646+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3601436600001762, "exit_code": 0} +{"utc": "2026-10-01T15:07:22.812738+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2477816480095498, "exit_code": 0} +{"utc": "2026-10-01T15:07:24.046298+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2309437160001835, "exit_code": 0} +{"utc": "2026-10-01T15:07:25.276779+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2280668500025058, "exit_code": 0} +{"utc": "2026-10-01T15:07:26.543336+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2647854899987578, "exit_code": 0} +{"utc": "2026-10-01T15:07:27.771522+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2260266759985825, "exit_code": 0} +{"utc": "2026-10-01T15:07:29.087246+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3139285999932326, "exit_code": 0} +{"utc": "2026-10-01T15:07:30.291464+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2021887430018978, "exit_code": 0} +{"utc": "2026-10-01T15:07:31.581202+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2880449249933008, "exit_code": 0} +{"utc": "2026-10-01T15:07:32.801467+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2182048380054766, "exit_code": 0} +{"utc": "2026-10-01T15:07:34.178543+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3749643359915353, "exit_code": 0} +{"utc": "2026-10-01T15:07:32.774140+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2492772089899518, "exit_code": 0} +{"utc": "2026-10-01T15:07:34.069336+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2927610730112065, "exit_code": 0} +{"utc": "2026-10-01T15:07:35.334897+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.263774523002212, "exit_code": 0} +{"utc": "2026-10-01T15:07:36.623394+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2857399420026923, "exit_code": 0} +{"utc": "2026-10-01T15:07:37.924562+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2994457790046, "exit_code": 0} +{"utc": "2026-10-01T15:07:39.211867+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2853372219979065, "exit_code": 0} +{"utc": "2026-10-01T15:07:40.528434+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3140344690036727, "exit_code": 0} +{"utc": "2026-10-01T15:07:41.899074+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3689825780020328, "exit_code": 0} +{"utc": "2026-10-01T15:07:43.169584+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2674464870069642, "exit_code": 0} +{"utc": "2026-10-01T15:07:44.543259+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3720534089952707, "exit_code": 0} +{"utc": "2026-10-01T15:07:45.716659+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1713153180025984, "exit_code": 0} +{"utc": "2026-10-01T15:07:47.096324+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3776887740095844, "exit_code": 0} +{"utc": "2026-10-01T15:07:48.278021+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1796900229965104, "exit_code": 0} +{"utc": "2026-10-01T15:07:49.778293+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4983314429991879, "exit_code": 0} +{"utc": "2026-10-01T15:07:51.038948+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2589562779903645, "exit_code": 0} +{"utc": "2026-10-01T15:07:52.342958+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.301530508993892, "exit_code": 0} +{"utc": "2026-10-01T15:07:53.606304+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2609608370112255, "exit_code": 0} +{"utc": "2026-10-01T15:07:54.932093+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3239017419982702, "exit_code": 0} +{"utc": "2026-10-01T15:07:56.179359+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2457165519881528, "exit_code": 0} +{"utc": "2026-10-01T15:07:57.489352+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3078768759878585, "exit_code": 0} +{"utc": "2026-10-01T15:07:58.679715+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1799317010008963, "exit_code": 0} +{"utc": "2026-10-01T15:07:59.890164+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2083883459999925, "exit_code": 0} +{"utc": "2026-10-01T15:08:01.131180+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2396582229994237, "exit_code": 0} +{"utc": "2026-10-01T15:08:02.226616+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2621965930011356, "exit_code": 0} +{"utc": "2026-10-01T15:08:00.886387+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2099000359885395, "exit_code": 0} +{"utc": "2026-10-01T15:08:02.314274+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4246778359956807, "exit_code": 0} +{"utc": "2026-10-01T15:08:03.578386+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.261907306005014, "exit_code": 0} +{"utc": "2026-10-01T15:08:04.862405+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2817197819967987, "exit_code": 0} +{"utc": "2026-10-01T15:08:06.101045+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.236282742000185, "exit_code": 0} +{"utc": "2026-10-01T15:08:07.385496+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2824914930097293, "exit_code": 0} +{"utc": "2026-10-01T15:08:08.704372+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3166754090052564, "exit_code": 0} +{"utc": "2026-10-01T15:08:10.065428+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3593395400093868, "exit_code": 0} +{"utc": "2026-10-01T15:08:11.341169+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2736316599912243, "exit_code": 0} +{"utc": "2026-10-01T15:08:12.972903+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.6299473179969937, "exit_code": 0} +{"utc": "2026-10-01T15:08:14.323577+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3485360490012681, "exit_code": 0} +{"utc": "2026-10-01T15:08:15.725522+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.400153798997053, "exit_code": 0} +{"utc": "2026-10-01T15:08:17.031952+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3042540869937511, "exit_code": 0} +{"utc": "2026-10-01T15:08:18.325596+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.291781506006373, "exit_code": 0} +{"utc": "2026-10-01T15:08:19.636673+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3092316500114975, "exit_code": 0} +{"utc": "2026-10-01T15:08:20.874043+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2357688659976702, "exit_code": 0} +{"utc": "2026-10-01T15:08:22.120481+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2374972329998855, "exit_code": 0} +{"utc": "2026-10-01T15:08:23.360021+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2379119530087337, "exit_code": 0} +{"utc": "2026-10-01T15:08:24.552791+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1909687590086833, "exit_code": 0} +{"utc": "2026-10-01T15:08:25.832241+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2480567739985418, "exit_code": 0} +{"utc": "2026-10-01T15:08:27.046350+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2123860369902104, "exit_code": 0} +{"utc": "2026-10-01T15:08:28.296941+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2489718720025849, "exit_code": 0} +{"utc": "2026-10-01T15:08:29.555477+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2570914769894443, "exit_code": 0} +{"utc": "2026-10-01T15:08:27.870508+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2315853720065206, "exit_code": 0} +{"utc": "2026-10-01T15:08:29.139212+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2670269299997017, "exit_code": 0} +{"utc": "2026-10-01T15:08:30.429948+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2880482530017616, "exit_code": 0} +{"utc": "2026-10-01T15:08:31.667958+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2363079389906488, "exit_code": 0} +{"utc": "2026-10-01T15:08:32.949188+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2796460120007396, "exit_code": 0} +{"utc": "2026-10-01T15:08:34.144319+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1932611619995441, "exit_code": 0} +{"utc": "2026-10-01T15:08:35.383283+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.237135543997283, "exit_code": 0} +{"utc": "2026-10-01T15:08:36.645526+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2604557489976287, "exit_code": 0} +{"utc": "2026-10-01T15:08:37.856886+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2099575299944263, "exit_code": 0} +{"utc": "2026-10-01T15:08:39.141515+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2829507360002026, "exit_code": 0} +{"utc": "2026-10-01T15:08:40.343768+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.201014928999939, "exit_code": 0} +{"utc": "2026-10-01T15:08:42.247407+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "pg_dump", "-U", "track2", "-d", "messenger_track2", "-Fc"], "seconds": 1.901214262994472, "exit_code": 0} +{"utc": "2026-10-01T15:08:43.693067+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3158999369916273, "exit_code": 0} +{"utc": "2026-10-01T15:08:49.351770+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "up", "-d", "--wait", "restore"], "seconds": 5.6573203389998525, "exit_code": 0} +{"utc": "2026-10-01T15:08:51.525788+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "pg_restore", "--exit-on-error", "--no-owner", "--no-acl", "-U", "track2", "-d", "messenger_track2"], "seconds": 2.1699398909986485, "exit_code": 0} +{"utc": "2026-10-01T15:08:52.767696+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2402213960012887, "exit_code": 0} +{"utc": "2026-10-01T15:08:54.039098+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2696671090088785, "exit_code": 0} +{"utc": "2026-10-01T15:08:55.310597+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.26930475399422, "exit_code": 0} +{"utc": "2026-10-01T15:08:56.624749+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3117783229972702, "exit_code": 0} +{"utc": "2026-10-01T15:08:55.284631+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.21023940500163, "exit_code": 0} +{"utc": "2026-10-01T15:08:56.555518+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2692721719940891, "exit_code": 0} +{"utc": "2026-10-01T15:08:57.820383+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.262550358005683, "exit_code": 0} +{"utc": "2026-10-01T15:08:59.163395+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3410104729991872, "exit_code": 0} +{"utc": "2026-10-01T15:09:00.452210+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2868145999964327, "exit_code": 0} +{"utc": "2026-10-01T15:09:01.717620+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2636857030011015, "exit_code": 0} +{"utc": "2026-10-01T15:09:03.041043+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3203397499892162, "exit_code": 0} +{"utc": "2026-10-01T15:09:04.314886+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2714305340050487, "exit_code": 0} +{"utc": "2026-10-01T15:09:05.535487+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2188335929968162, "exit_code": 0} +{"utc": "2026-10-01T15:09:06.740566+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.20329210399359, "exit_code": 0} +{"utc": "2026-10-01T15:09:07.976289+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.234160548003274, "exit_code": 0} +{"utc": "2026-10-01T15:09:09.256080+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2779183789971285, "exit_code": 0} +{"utc": "2026-10-01T15:09:10.654114+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-b", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.396201371011557, "exit_code": 0} diff --git a/evidence/track2/20261001-b/first-query.json b/evidence/track2/20261001-b/first-query.json new file mode 100644 index 00000000..caf95ae5 --- /dev/null +++ b/evidence/track2/20261001-b/first-query.json @@ -0,0 +1,9 @@ +{ + "run_id": "20261001-b", + "calculation": "commands.jsonl: end of first SELECT count(users) after pg_restore minus start of up --wait restore", + "startup_restore_first_verified_count_seconds": 8.6573203, + "first_verified_count_table": "users", + "expected": 1, + "actual": 1, + "includes_docker_client_overhead": true +} diff --git a/evidence/track2/20261001-b/manifest.json b/evidence/track2/20261001-b/manifest.json new file mode 100644 index 00000000..e971d7ca --- /dev/null +++ b/evidence/track2/20261001-b/manifest.json @@ -0,0 +1,32 @@ +{ + "started_utc": "2026-10-01T15:03:27.871929+00:00", + "run_id": "20261001-b", + "base_commit": "a9dda2054084cb22936feb90d197462c7dc74809", + "dirty": true, + "docker_version": "28.5.1", + "docker_resources": "16 CPUs; 7942131712 bytes RAM", + "postgres": "PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit", + "page_size": 50, + "warmup": 1, + "repetitions": 7, + "settings": { + "effective_cache_size": "524288", + "fsync": "on", + "full_page_writes": "on", + "max_parallel_workers_per_gather": "2", + "shared_buffers": "16384", + "synchronous_commit": "on", + "work_mem": "4096" + }, + "container_limits": "image=sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74 memory_limit=0 nano_cpus=0", + "source_hashes": { + "src/experiments/track2/run.py": "f08094b4892febbd789e17f7d18af1407d3a5a5f52c6bbd13b882d99d003017d", + "src/experiments/track2/seed.sql": "db0c76bfd8963c8f09186a5c320062110b63f0930a92097f3ac9bacae695e5d7", + "compose.track2.yaml": "8e9da80fb6cd9c93f87c5432a9d0ad8e5b899ba6ede399aea94504f67351f34f", + "evidence/track2.md": "b460d26ec81f01e923c7438a5b5ec1f38834f7e3a3efc904b8b952fcc57043d7", + "src/backend/repositories/migrations/000001_initial.down.sql": "89033de00bcc07836119f37efda571faa60dfcd4c645b39f29fd0ac782b3393b", + "src/backend/repositories/migrations/000001_initial.up.sql": "52a3ad07adb5da6142c03cccdff99eb40754f63ba3466967cecc3ccbefb4ea1a", + "src/backend/repositories/migrations/000002_redis_sessions.down.sql": "562e93808b65e787b13017bc7eb6a473877271cb8d2301b3db4187e0ba55c0cb", + "src/backend/repositories/migrations/000002_redis_sessions.up.sql": "4cb7d577c88adce11c4d352e6f6c635ca6387e26ae86eabce67a00f7fa4cdfbb" + } +} diff --git a/evidence/track2/20261001-b/queries.sql b/evidence/track2/20261001-b/queries.sql new file mode 100644 index 00000000..71f0b6c7 --- /dev/null +++ b/evidence/track2/20261001-b/queries.sql @@ -0,0 +1,62 @@ +-- read-base-large-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-large-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('2026-01-01 00:00:00.09+00'::timestamptz,'1d664eb1-42e9-c630-c739-4623b08094d7'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-large-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' ORDER BY created_at,id OFFSET 90000 LIMIT 50; + +-- read-base-medium-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-medium-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('2026-01-01 00:00:00.0135+00'::timestamptz,'3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-medium-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' ORDER BY created_at,id OFFSET 13500 LIMIT 50; + +-- read-base-small-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-small-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('2026-01-01 00:00:00.0045+00'::timestamptz,'21919306-3e96-9707-0768-3cffae975c19'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-small-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' ORDER BY created_at,id OFFSET 4500 LIMIT 50; + +-- read-covering-large-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-large-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('2026-01-01 00:00:00.09+00'::timestamptz,'1d664eb1-42e9-c630-c739-4623b08094d7'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-large-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' ORDER BY created_at,id OFFSET 90000 LIMIT 50; + +-- read-covering-medium-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-medium-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('2026-01-01 00:00:00.0135+00'::timestamptz,'3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-medium-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' ORDER BY created_at,id OFFSET 13500 LIMIT 50; + +-- read-covering-small-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-small-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('2026-01-01 00:00:00.0045+00'::timestamptz,'21919306-3e96-9707-0768-3cffae975c19'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-small-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' ORDER BY created_at,id OFFSET 4500 LIMIT 50; + +-- write-none (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; + +-- write-base (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; + +-- write-covering (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; diff --git a/evidence/track2/20261001-b/read-base-large-first.json b/evidence/track2/20261001-b/read-base-large-first.json new file mode 100644 index 00000000..14088928 --- /dev/null +++ b/evidence/track2/20261001-b/read-base-large-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8698.25, + "Plan Rows": 100098, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.704, + "Triggers": [], + "Execution Time": 0.156 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.076, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8698.25, + "Plan Rows": 100098, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.692, + "Triggers": [], + "Execution Time": 0.153 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8698.25, + "Plan Rows": 100098, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.825, + "Triggers": [], + "Execution Time": 0.158 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8698.25, + "Plan Rows": 100098, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.766, + "Triggers": [], + "Execution Time": 0.135 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8698.25, + "Plan Rows": 100098, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.716, + "Triggers": [], + "Execution Time": 0.138 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 0.05, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8698.25, + "Plan Rows": 100098, + "Plan Width": 86, + "Actual Startup Time": 0.041, + "Actual Total Time": 0.046, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.433, + "Triggers": [], + "Execution Time": 0.102 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.041, + "Actual Total Time": 0.049, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8698.25, + "Plan Rows": 100098, + "Plan Width": 86, + "Actual Startup Time": 0.04, + "Actual Total Time": 0.045, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.46, + "Triggers": [], + "Execution Time": 0.107 + } +] diff --git a/evidence/track2/20261001-b/read-base-large-late.json b/evidence/track2/20261001-b/read-base-large-late.json new file mode 100644 index 00000000..b4abfc6f --- /dev/null +++ b/evidence/track2/20261001-b/read-base-large-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.06, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.083, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3484.2, + "Plan Rows": 8439, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.762, + "Triggers": [], + "Execution Time": 0.172 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.06, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.09, + "Actual Total Time": 0.13, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3484.2, + "Plan Rows": 8439, + "Plan Width": 86, + "Actual Startup Time": 0.088, + "Actual Total Time": 0.125, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.747, + "Triggers": [], + "Execution Time": 0.212 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.06, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3484.2, + "Plan Rows": 8439, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.477, + "Triggers": [], + "Execution Time": 0.129 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.06, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3484.2, + "Plan Rows": 8439, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.534, + "Triggers": [], + "Execution Time": 0.131 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.06, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3484.2, + "Plan Rows": 8439, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.507, + "Triggers": [], + "Execution Time": 0.141 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.06, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.083, + "Actual Total Time": 0.112, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3484.2, + "Plan Rows": 8439, + "Plan Width": 86, + "Actual Startup Time": 0.082, + "Actual Total Time": 0.106, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.953, + "Triggers": [], + "Execution Time": 0.182 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.06, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.097, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3484.2, + "Plan Rows": 8439, + "Plan Width": 86, + "Actual Startup Time": 0.067, + "Actual Total Time": 0.092, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.398, + "Triggers": [], + "Execution Time": 0.171 + } +] diff --git a/evidence/track2/20261001-b/read-base-large-offset.json b/evidence/track2/20261001-b/read-base-large-offset.json new file mode 100644 index 00000000..9cb0c5ed --- /dev/null +++ b/evidence/track2/20261001-b/read-base-large-offset.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7595.2, + "Total Cost": 7599.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 16.924, + "Actual Total Time": 16.944, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8448.18, + "Plan Rows": 100108, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 13.881, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.641, + "Triggers": [], + "Execution Time": 16.986 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7595.2, + "Total Cost": 7599.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.584, + "Actual Total Time": 18.604, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8448.18, + "Plan Rows": 100108, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 14.941, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.588, + "Triggers": [], + "Execution Time": 18.651 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7595.2, + "Total Cost": 7599.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 17.378, + "Actual Total Time": 17.398, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8448.18, + "Plan Rows": 100108, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 14.177, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.488, + "Triggers": [], + "Execution Time": 17.445 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7595.2, + "Total Cost": 7599.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 39.278, + "Actual Total Time": 39.31, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8448.18, + "Plan Rows": 100108, + "Plan Width": 86, + "Actual Startup Time": 0.068, + "Actual Total Time": 28.76, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.785, + "Triggers": [], + "Execution Time": 39.382 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7595.2, + "Total Cost": 7599.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 17.898, + "Actual Total Time": 17.927, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8448.18, + "Plan Rows": 100108, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 14.641, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.582, + "Triggers": [], + "Execution Time": 17.974 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7595.2, + "Total Cost": 7599.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.981, + "Actual Total Time": 19.001, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8448.18, + "Plan Rows": 100108, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 15.792, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.528, + "Triggers": [], + "Execution Time": 19.043 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7595.2, + "Total Cost": 7599.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 20.152, + "Actual Total Time": 20.173, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8448.18, + "Plan Rows": 100108, + "Plan Width": 86, + "Actual Startup Time": 0.046, + "Actual Total Time": 16.867, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.496, + "Triggers": [], + "Execution Time": 20.211 + } +] diff --git a/evidence/track2/20261001-b/read-base-medium-first.json b/evidence/track2/20261001-b/read-base-medium-first.json new file mode 100644 index 00000000..8d4fe73f --- /dev/null +++ b/evidence/track2/20261001-b/read-base-medium-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.33, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3854.19, + "Plan Rows": 14923, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.064, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.655, + "Triggers": [], + "Execution Time": 0.127 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.33, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.08, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3854.19, + "Plan Rows": 14923, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.477, + "Triggers": [], + "Execution Time": 0.131 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.33, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3854.19, + "Plan Rows": 14923, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.659, + "Triggers": [], + "Execution Time": 0.165 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.33, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.081, + "Actual Total Time": 0.093, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3854.19, + "Plan Rows": 14923, + "Plan Width": 86, + "Actual Startup Time": 0.08, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.719, + "Triggers": [], + "Execution Time": 0.183 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.33, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3854.19, + "Plan Rows": 14923, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.501, + "Triggers": [], + "Execution Time": 0.127 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.33, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.101, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3854.19, + "Plan Rows": 14923, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.097, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.44, + "Triggers": [], + "Execution Time": 0.154 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.33, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3854.19, + "Plan Rows": 14923, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.468, + "Triggers": [], + "Execution Time": 0.114 + } +] diff --git a/evidence/track2/20261001-b/read-base-medium-late.json b/evidence/track2/20261001-b/read-base-medium-late.json new file mode 100644 index 00000000..047c9c78 --- /dev/null +++ b/evidence/track2/20261001-b/read-base-medium-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 16.97, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.064, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3626.81, + "Plan Rows": 10957, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.4, + "Triggers": [], + "Execution Time": 0.119 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 16.97, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3626.81, + "Plan Rows": 10957, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.057, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.395, + "Triggers": [], + "Execution Time": 0.11 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 16.97, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.078, + "Actual Total Time": 0.094, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3626.81, + "Plan Rows": 10957, + "Plan Width": 86, + "Actual Startup Time": 0.077, + "Actual Total Time": 0.089, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.443, + "Triggers": [], + "Execution Time": 0.169 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 16.97, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.064, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3626.81, + "Plan Rows": 10957, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.465, + "Triggers": [], + "Execution Time": 0.117 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 16.97, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.09, + "Actual Total Time": 0.119, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3626.81, + "Plan Rows": 10957, + "Plan Width": 86, + "Actual Startup Time": 0.088, + "Actual Total Time": 0.112, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.681, + "Triggers": [], + "Execution Time": 0.201 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 16.97, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3626.81, + "Plan Rows": 10957, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.72, + "Triggers": [], + "Execution Time": 0.148 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 16.97, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3626.81, + "Plan Rows": 10957, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.456, + "Triggers": [], + "Execution Time": 0.12 + } +] diff --git a/evidence/track2/20261001-b/read-base-medium-offset.json b/evidence/track2/20261001-b/read-base-medium-offset.json new file mode 100644 index 00000000..474ec3db --- /dev/null +++ b/evidence/track2/20261001-b/read-base-medium-offset.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3452.74, + "Total Cost": 3465.53, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.153, + "Actual Total Time": 3.17, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3816.9, + "Plan Rows": 14924, + "Plan Width": 86, + "Actual Startup Time": 0.079, + "Actual Total Time": 2.645, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.611, + "Triggers": [], + "Execution Time": 3.237 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3452.74, + "Total Cost": 3465.53, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.676, + "Actual Total Time": 2.693, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3816.9, + "Plan Rows": 14924, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 2.216, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.46, + "Triggers": [], + "Execution Time": 2.734 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3452.74, + "Total Cost": 3465.53, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.983, + "Actual Total Time": 2.997, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3816.9, + "Plan Rows": 14924, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 2.479, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.445, + "Triggers": [], + "Execution Time": 3.037 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3452.74, + "Total Cost": 3465.53, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.413, + "Actual Total Time": 2.425, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3816.9, + "Plan Rows": 14924, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 1.973, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.427, + "Triggers": [], + "Execution Time": 2.486 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3452.74, + "Total Cost": 3465.53, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.375, + "Actual Total Time": 2.386, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3816.9, + "Plan Rows": 14924, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 1.933, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.407, + "Triggers": [], + "Execution Time": 2.421 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3452.74, + "Total Cost": 3465.53, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.59, + "Actual Total Time": 3.603, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3816.9, + "Plan Rows": 14924, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 3.08, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.784, + "Triggers": [], + "Execution Time": 3.662 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3452.74, + "Total Cost": 3465.53, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.039, + "Actual Total Time": 3.051, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3816.9, + "Plan Rows": 14924, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 2.477, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 295, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.43, + "Triggers": [], + "Execution Time": 3.091 + } +] diff --git a/evidence/track2/20261001-b/read-base-small-first.json b/evidence/track2/20261001-b/read-base-small-first.json new file mode 100644 index 00000000..ea88cde9 --- /dev/null +++ b/evidence/track2/20261001-b/read-base-small-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.49, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3286.65, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.404, + "Triggers": [], + "Execution Time": 0.111 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.49, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3286.65, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.479, + "Triggers": [], + "Execution Time": 0.132 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.49, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3286.65, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.5, + "Triggers": [], + "Execution Time": 0.122 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.49, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3286.65, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.534, + "Triggers": [], + "Execution Time": 0.181 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.49, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3286.65, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.715, + "Triggers": [], + "Execution Time": 0.147 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.49, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3286.65, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.505, + "Triggers": [], + "Execution Time": 0.227 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 33.49, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3286.65, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.055, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.453, + "Triggers": [], + "Execution Time": 0.115 + } +] diff --git a/evidence/track2/20261001-b/read-base-small-late.json b/evidence/track2/20261001-b/read-base-small-late.json new file mode 100644 index 00000000..8df201cd --- /dev/null +++ b/evidence/track2/20261001-b/read-base-small-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.34, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3254.93, + "Plan Rows": 4407, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.894, + "Triggers": [], + "Execution Time": 0.172 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.34, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3254.93, + "Plan Rows": 4407, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.057, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.53, + "Triggers": [], + "Execution Time": 0.128 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.34, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.058, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3254.93, + "Plan Rows": 4407, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.053, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.48, + "Triggers": [], + "Execution Time": 0.116 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.34, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3254.93, + "Plan Rows": 4407, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.057, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.63, + "Triggers": [], + "Execution Time": 0.115 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.34, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3254.93, + "Plan Rows": 4407, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.055, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.529, + "Triggers": [], + "Execution Time": 0.113 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.34, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3254.93, + "Plan Rows": 4407, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.054, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.534, + "Triggers": [], + "Execution Time": 0.112 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 37.34, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.091, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3254.93, + "Plan Rows": 4407, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.086, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.584, + "Triggers": [], + "Execution Time": 0.149 + } +] diff --git a/evidence/track2/20261001-b/read-base-small-offset.json b/evidence/track2/20261001-b/read-base-small-offset.json new file mode 100644 index 00000000..f2448452 --- /dev/null +++ b/evidence/track2/20261001-b/read-base-small-offset.json @@ -0,0 +1,933 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2276.27, + "Total Cost": 2276.39, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.528, + "Actual Total Time": 2.535, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2265.02, + "Total Cost": 2277.44, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 2.172, + "Actual Total Time": 2.342, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 182.92, + "Total Cost": 1960.02, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.304, + "Actual Total Time": 0.752, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.68, + "Plan Rows": 4968, + "Plan Width": 0, + "Actual Startup Time": 0.289, + "Actual Total Time": 0.289, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.589, + "Triggers": [], + "Execution Time": 2.732 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2276.27, + "Total Cost": 2276.39, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.741, + "Actual Total Time": 2.749, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2265.02, + "Total Cost": 2277.44, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 2.249, + "Actual Total Time": 2.571, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 182.92, + "Total Cost": 1960.02, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.361, + "Actual Total Time": 0.911, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.68, + "Plan Rows": 4968, + "Plan Width": 0, + "Actual Startup Time": 0.345, + "Actual Total Time": 0.345, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.423, + "Triggers": [], + "Execution Time": 2.93 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2276.27, + "Total Cost": 2276.39, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.696, + "Actual Total Time": 2.704, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2265.02, + "Total Cost": 2277.44, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 2.177, + "Actual Total Time": 2.374, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 182.92, + "Total Cost": 1960.02, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.443, + "Actual Total Time": 0.932, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.68, + "Plan Rows": 4968, + "Plan Width": 0, + "Actual Startup Time": 0.424, + "Actual Total Time": 0.424, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.564, + "Triggers": [], + "Execution Time": 2.92 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2276.27, + "Total Cost": 2276.39, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.562, + "Actual Total Time": 2.568, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2265.02, + "Total Cost": 2277.44, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 2.227, + "Actual Total Time": 2.395, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 182.92, + "Total Cost": 1960.02, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.505, + "Actual Total Time": 0.92, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.68, + "Plan Rows": 4968, + "Plan Width": 0, + "Actual Startup Time": 0.488, + "Actual Total Time": 0.489, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.472, + "Triggers": [], + "Execution Time": 2.739 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2276.27, + "Total Cost": 2276.39, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.246, + "Actual Total Time": 3.255, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2265.02, + "Total Cost": 2277.44, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 2.844, + "Actual Total Time": 3.1, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 182.92, + "Total Cost": 1960.02, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.443, + "Actual Total Time": 1.186, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.68, + "Plan Rows": 4968, + "Plan Width": 0, + "Actual Startup Time": 0.422, + "Actual Total Time": 0.423, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.672, + "Triggers": [], + "Execution Time": 3.525 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2276.27, + "Total Cost": 2276.39, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.582, + "Actual Total Time": 2.591, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2265.02, + "Total Cost": 2277.44, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 2.227, + "Actual Total Time": 2.427, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 182.92, + "Total Cost": 1960.02, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.294, + "Actual Total Time": 0.793, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.68, + "Plan Rows": 4968, + "Plan Width": 0, + "Actual Startup Time": 0.28, + "Actual Total Time": 0.281, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.545, + "Triggers": [], + "Execution Time": 2.822 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2276.27, + "Total Cost": 2276.39, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.997, + "Actual Total Time": 3.004, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2265.02, + "Total Cost": 2277.44, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 2.682, + "Actual Total Time": 2.849, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 182.92, + "Total Cost": 1960.02, + "Plan Rows": 4968, + "Plan Width": 86, + "Actual Startup Time": 0.961, + "Actual Total Time": 1.442, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 181.68, + "Plan Rows": 4968, + "Plan Width": 0, + "Actual Startup Time": 0.942, + "Actual Total Time": 0.943, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.818, + "Triggers": [], + "Execution Time": 3.222 + } +] diff --git a/evidence/track2/20261001-b/read-covering-large-first.json b/evidence/track2/20261001-b/read-covering-large-first.json new file mode 100644 index 00000000..2365f55a --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-large-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.044, + "Actual Total Time": 0.052, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7513.66, + "Plan Rows": 99862, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 0.047, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.455, + "Triggers": [], + "Execution Time": 0.106 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7513.66, + "Plan Rows": 99862, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.055, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.662, + "Triggers": [], + "Execution Time": 0.141 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.547, + "Actual Total Time": 0.555, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7513.66, + "Plan Rows": 99862, + "Plan Width": 86, + "Actual Startup Time": 0.546, + "Actual Total Time": 0.55, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.528, + "Triggers": [], + "Execution Time": 0.635 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.044, + "Actual Total Time": 0.052, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7513.66, + "Plan Rows": 99862, + "Plan Width": 86, + "Actual Startup Time": 0.043, + "Actual Total Time": 0.047, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.419, + "Triggers": [], + "Execution Time": 0.107 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 0.05, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7513.66, + "Plan Rows": 99862, + "Plan Width": 86, + "Actual Startup Time": 0.041, + "Actual Total Time": 0.045, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.423, + "Triggers": [], + "Execution Time": 0.104 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.045, + "Actual Total Time": 0.053, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7513.66, + "Plan Rows": 99862, + "Plan Width": 86, + "Actual Startup Time": 0.044, + "Actual Total Time": 0.048, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.522, + "Triggers": [], + "Execution Time": 0.115 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.058, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7513.66, + "Plan Rows": 99862, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.053, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.47, + "Triggers": [], + "Execution Time": 0.116 + } +] diff --git a/evidence/track2/20261001-b/read-covering-large-late.json b/evidence/track2/20261001-b/read-covering-large-late.json new file mode 100644 index 00000000..65d74e5b --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-large-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.86, + "Plan Rows": 8222, + "Plan Width": 86, + "Actual Startup Time": 0.041, + "Actual Total Time": 0.055, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.431, + "Triggers": [], + "Execution Time": 0.118 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.04, + "Actual Total Time": 0.058, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.86, + "Plan Rows": 8222, + "Plan Width": 86, + "Actual Startup Time": 0.039, + "Actual Total Time": 0.053, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.512, + "Triggers": [], + "Execution Time": 0.114 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.86, + "Plan Rows": 8222, + "Plan Width": 86, + "Actual Startup Time": 0.064, + "Actual Total Time": 0.082, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.531, + "Triggers": [], + "Execution Time": 0.168 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.08, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.86, + "Plan Rows": 8222, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.694, + "Triggers": [], + "Execution Time": 0.168 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.09, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.86, + "Plan Rows": 8222, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.085, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.448, + "Triggers": [], + "Execution Time": 0.147 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.86, + "Plan Rows": 8222, + "Plan Width": 86, + "Actual Startup Time": 0.041, + "Actual Total Time": 0.055, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.498, + "Triggers": [], + "Execution Time": 0.117 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.86, + "Plan Rows": 8222, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.472, + "Triggers": [], + "Execution Time": 0.153 + } +] diff --git a/evidence/track2/20261001-b/read-covering-large-offset.json b/evidence/track2/20261001-b/read-covering-large-offset.json new file mode 100644 index 00000000..2787bbf7 --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-large-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6549.78, + "Total Cost": 6553.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 19.269, + "Actual Total Time": 19.287, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7268.18, + "Plan Rows": 99872, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 16.11, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.474, + "Triggers": [], + "Execution Time": 19.338 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6549.78, + "Total Cost": 6553.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 20.1, + "Actual Total Time": 20.113, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7268.18, + "Plan Rows": 99872, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 16.924, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.551, + "Triggers": [], + "Execution Time": 20.164 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6549.78, + "Total Cost": 6553.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 19.859, + "Actual Total Time": 19.875, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7268.18, + "Plan Rows": 99872, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 16.591, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.52, + "Triggers": [], + "Execution Time": 19.952 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6549.78, + "Total Cost": 6553.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 22.519, + "Actual Total Time": 22.537, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7268.18, + "Plan Rows": 99872, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 19.081, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.471, + "Triggers": [], + "Execution Time": 22.588 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6549.78, + "Total Cost": 6553.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 19.029, + "Actual Total Time": 19.047, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7268.18, + "Plan Rows": 99872, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 15.525, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.457, + "Triggers": [], + "Execution Time": 19.095 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6549.78, + "Total Cost": 6553.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 21.442, + "Actual Total Time": 21.455, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7268.18, + "Plan Rows": 99872, + "Plan Width": 86, + "Actual Startup Time": 0.091, + "Actual Total Time": 18.184, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.506, + "Triggers": [], + "Execution Time": 21.52 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6549.78, + "Total Cost": 6553.42, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.847, + "Actual Total Time": 18.861, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7268.18, + "Plan Rows": 99872, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 15.526, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.513, + "Triggers": [], + "Execution Time": 18.91 + } +] diff --git a/evidence/track2/20261001-b/read-covering-medium-first.json b/evidence/track2/20261001-b/read-covering-medium-first.json new file mode 100644 index 00000000..cb2b3b21 --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-medium-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.045, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1144.46, + "Plan Rows": 15202, + "Plan Width": 86, + "Actual Startup Time": 0.044, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.422, + "Triggers": [], + "Execution Time": 0.118 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.046, + "Actual Total Time": 0.064, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1144.46, + "Plan Rows": 15202, + "Plan Width": 86, + "Actual Startup Time": 0.045, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.521, + "Triggers": [], + "Execution Time": 0.121 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.071, + "Actual Total Time": 0.105, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1144.46, + "Plan Rows": 15202, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.098, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.601, + "Triggers": [], + "Execution Time": 0.181 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1144.46, + "Plan Rows": 15202, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.064, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.441, + "Triggers": [], + "Execution Time": 0.186 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.043, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1144.46, + "Plan Rows": 15202, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.414, + "Triggers": [], + "Execution Time": 0.121 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1144.46, + "Plan Rows": 15202, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.465, + "Triggers": [], + "Execution Time": 0.174 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.09, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1144.46, + "Plan Rows": 15202, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.085, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.669, + "Triggers": [], + "Execution Time": 0.19 + } +] diff --git a/evidence/track2/20261001-b/read-covering-medium-late.json b/evidence/track2/20261001-b/read-covering-medium-late.json new file mode 100644 index 00000000..80c25835 --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-medium-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.044, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 839.34, + "Plan Rows": 11146, + "Plan Width": 86, + "Actual Startup Time": 0.043, + "Actual Total Time": 0.057, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.493, + "Triggers": [], + "Execution Time": 0.12 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.126, + "Actual Total Time": 0.166, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 839.34, + "Plan Rows": 11146, + "Plan Width": 86, + "Actual Startup Time": 0.124, + "Actual Total Time": 0.158, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.468, + "Triggers": [], + "Execution Time": 0.229 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.086, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 839.34, + "Plan Rows": 11146, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.654, + "Triggers": [], + "Execution Time": 0.145 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 839.34, + "Plan Rows": 11146, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.459, + "Triggers": [], + "Execution Time": 0.167 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.043, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 839.34, + "Plan Rows": 11146, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.412, + "Triggers": [], + "Execution Time": 0.116 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.043, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 839.34, + "Plan Rows": 11146, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.435, + "Triggers": [], + "Execution Time": 0.119 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.045, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 839.34, + "Plan Rows": 11146, + "Plan Width": 86, + "Actual Startup Time": 0.044, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.537, + "Triggers": [], + "Execution Time": 0.124 + } +] diff --git a/evidence/track2/20261001-b/read-covering-medium-offset.json b/evidence/track2/20261001-b/read-covering-medium-offset.json new file mode 100644 index 00000000..399ab78e --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-medium-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 982.52, + "Total Cost": 986.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.206, + "Actual Total Time": 2.216, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1106.49, + "Plan Rows": 15204, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 1.765, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.514, + "Triggers": [], + "Execution Time": 2.262 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 982.52, + "Total Cost": 986.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 4.54, + "Actual Total Time": 4.602, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1106.49, + "Plan Rows": 15204, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 3.963, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.775, + "Triggers": [], + "Execution Time": 4.673 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 982.52, + "Total Cost": 986.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.242, + "Actual Total Time": 2.252, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1106.49, + "Plan Rows": 15204, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 1.792, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.607, + "Triggers": [], + "Execution Time": 2.299 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 982.52, + "Total Cost": 986.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.909, + "Actual Total Time": 3.928, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1106.49, + "Plan Rows": 15204, + "Plan Width": 86, + "Actual Startup Time": 0.132, + "Actual Total Time": 3.394, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.565, + "Triggers": [], + "Execution Time": 4.081 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 982.52, + "Total Cost": 986.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.401, + "Actual Total Time": 2.416, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1106.49, + "Plan Rows": 15204, + "Plan Width": 86, + "Actual Startup Time": 0.081, + "Actual Total Time": 1.957, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.5, + "Triggers": [], + "Execution Time": 2.481 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 982.52, + "Total Cost": 986.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.484, + "Actual Total Time": 2.498, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1106.49, + "Plan Rows": 15204, + "Plan Width": 86, + "Actual Startup Time": 0.104, + "Actual Total Time": 2.024, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.636, + "Triggers": [], + "Execution Time": 2.548 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 982.52, + "Total Cost": 986.16, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.535, + "Actual Total Time": 2.546, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1106.49, + "Plan Rows": 15204, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 2.086, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.478, + "Triggers": [], + "Execution Time": 2.597 + } +] diff --git a/evidence/track2/20261001-b/read-covering-small-first.json b/evidence/track2/20261001-b/read-covering-small-first.json new file mode 100644 index 00000000..14929648 --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-small-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 370.9, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.064, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.413, + "Triggers": [], + "Execution Time": 0.128 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 370.9, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.432, + "Triggers": [], + "Execution Time": 0.291 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 370.9, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.422, + "Triggers": [], + "Execution Time": 0.124 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 370.9, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.537, + "Triggers": [], + "Execution Time": 0.146 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 370.9, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.461, + "Triggers": [], + "Execution Time": 0.128 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 370.9, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.507, + "Triggers": [], + "Execution Time": 0.136 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 370.9, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.417, + "Triggers": [], + "Execution Time": 0.125 + } +] diff --git a/evidence/track2/20261001-b/read-covering-small-late.json b/evidence/track2/20261001-b/read-covering-small-late.json new file mode 100644 index 00000000..b7054bc0 --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-small-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.06, + "Plan Rows": 4382, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.53, + "Triggers": [], + "Execution Time": 0.16 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.08, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.06, + "Plan Rows": 4382, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.6, + "Triggers": [], + "Execution Time": 0.143 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.084, + "Actual Total Time": 0.112, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.06, + "Plan Rows": 4382, + "Plan Width": 86, + "Actual Startup Time": 0.083, + "Actual Total Time": 0.106, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.535, + "Triggers": [], + "Execution Time": 0.191 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.097, + "Actual Total Time": 0.118, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.06, + "Plan Rows": 4382, + "Plan Width": 86, + "Actual Startup Time": 0.096, + "Actual Total Time": 0.113, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.529, + "Triggers": [], + "Execution Time": 0.174 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.079, + "Actual Total Time": 0.114, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.06, + "Plan Rows": 4382, + "Plan Width": 86, + "Actual Startup Time": 0.077, + "Actual Total Time": 0.108, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.789, + "Triggers": [], + "Execution Time": 0.212 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.067, + "Actual Total Time": 0.095, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.06, + "Plan Rows": 4382, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.089, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.852, + "Triggers": [], + "Execution Time": 0.18 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.2, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.045, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 332.06, + "Plan Rows": 4382, + "Plan Width": 86, + "Actual Startup Time": 0.044, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.453, + "Triggers": [], + "Execution Time": 0.119 + } +] diff --git a/evidence/track2/20261001-b/read-covering-small-offset.json b/evidence/track2/20261001-b/read-covering-small-offset.json new file mode 100644 index 00000000..f17919d2 --- /dev/null +++ b/evidence/track2/20261001-b/read-covering-small-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 327.75, + "Total Cost": 331.38, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.795, + "Actual Total Time": 0.805, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 358.59, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.071, + "Actual Total Time": 0.652, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.478, + "Triggers": [], + "Execution Time": 0.853 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 327.75, + "Total Cost": 331.38, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.925, + "Actual Total Time": 0.935, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 358.59, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.085, + "Actual Total Time": 0.77, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.53, + "Triggers": [], + "Execution Time": 1.023 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 327.75, + "Total Cost": 331.38, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.94, + "Actual Total Time": 0.95, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 358.59, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.098, + "Actual Total Time": 0.786, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.652, + "Triggers": [], + "Execution Time": 1.013 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 327.75, + "Total Cost": 331.38, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.912, + "Actual Total Time": 0.922, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 358.59, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.116, + "Actual Total Time": 0.74, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.443, + "Triggers": [], + "Execution Time": 0.967 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 327.75, + "Total Cost": 331.38, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.9, + "Actual Total Time": 0.913, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 358.59, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.088, + "Actual Total Time": 0.749, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.562, + "Triggers": [], + "Execution Time": 0.966 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 327.75, + "Total Cost": 331.38, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.834, + "Actual Total Time": 0.844, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 358.59, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.663, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.493, + "Triggers": [], + "Execution Time": 0.888 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 327.75, + "Total Cost": 331.38, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 1.231, + "Actual Total Time": 1.245, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 358.59, + "Plan Rows": 4924, + "Plan Width": 86, + "Actual Startup Time": 0.132, + "Actual Total Time": 1.023, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.558, + "Triggers": [], + "Execution Time": 1.311 + } +] diff --git a/evidence/track2/20261001-b/reads.json b/evidence/track2/20261001-b/reads.json new file mode 100644 index 00000000..58d075f2 --- /dev/null +++ b/evidence/track2/20261001-b/reads.json @@ -0,0 +1,218 @@ +[ + { + "name": "read-base-large-first", + "median_ms": 0.138, + "min_ms": 0.102, + "max_ms": 0.158, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-base-large-late", + "median_ms": 0.171, + "min_ms": 0.129, + "max_ms": 0.212, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 6, + "shared_read": 0 + }, + { + "name": "read-base-large-offset", + "median_ms": 18.651, + "min_ms": 16.986, + "max_ms": 39.382, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 90050, + "heap_fetches": null, + "shared_hit": 1933, + "shared_read": 0 + }, + { + "name": "read-base-medium-first", + "median_ms": 0.131, + "min_ms": 0.114, + "max_ms": 0.183, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-base-medium-late", + "median_ms": 0.12, + "min_ms": 0.11, + "max_ms": 0.201, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 6, + "shared_read": 0 + }, + { + "name": "read-base-medium-offset", + "median_ms": 3.037, + "min_ms": 2.421, + "max_ms": 3.662, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 13550, + "heap_fetches": null, + "shared_hit": 295, + "shared_read": 0 + }, + { + "name": "read-base-small-first", + "median_ms": 0.132, + "min_ms": 0.111, + "max_ms": 0.227, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-base-small-late", + "median_ms": 0.116, + "min_ms": 0.112, + "max_ms": 0.172, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-base-small-offset", + "median_ms": 2.92, + "min_ms": 2.732, + "max_ms": 3.525, + "scan": "Bitmap Index Scan", + "index": "messages_history_idx", + "scan_rows": 5000, + "heap_fetches": null, + "shared_hit": 118, + "shared_read": 0 + }, + { + "name": "read-covering-large-first", + "median_ms": 0.115, + "min_ms": 0.104, + "max_ms": 0.635, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-covering-large-late", + "median_ms": 0.147, + "min_ms": 0.114, + "max_ms": 0.168, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-large-offset", + "median_ms": 19.952, + "min_ms": 18.91, + "max_ms": 22.588, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 90050, + "heap_fetches": 0, + "shared_hit": 1237, + "shared_read": 0 + }, + { + "name": "read-covering-medium-first", + "median_ms": 0.174, + "min_ms": 0.118, + "max_ms": 0.19, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-medium-late", + "median_ms": 0.124, + "min_ms": 0.116, + "max_ms": 0.229, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-medium-offset", + "median_ms": 2.548, + "min_ms": 2.262, + "max_ms": 4.673, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 13550, + "heap_fetches": 0, + "shared_hit": 190, + "shared_read": 0 + }, + { + "name": "read-covering-small-first", + "median_ms": 0.128, + "min_ms": 0.124, + "max_ms": 0.291, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-small-late", + "median_ms": 0.174, + "min_ms": 0.119, + "max_ms": 0.212, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-small-offset", + "median_ms": 0.967, + "min_ms": 0.853, + "max_ms": 1.311, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 4550, + "heap_fetches": 0, + "shared_hit": 66, + "shared_read": 0 + } +] diff --git a/evidence/track2/20261001-b/recovery.json b/evidence/track2/20261001-b/recovery.json new file mode 100644 index 00000000..56144645 --- /dev/null +++ b/evidence/track2/20261001-b/recovery.json @@ -0,0 +1,52 @@ +{ + "dump_seconds": 1.9034151829982875, + "dump_bytes": 3613568, + "dump_sha256": "121cbeafd3688412600444352a6bd675003ff2b18c75c7da09913618c1587bfb", + "restore_seconds": 2.171829875005642, + "startup_restore_verify_seconds": 29.519009519994142, + "expected": { + "counts": { + "users": 1, + "chats": 3, + "chat_members": 3, + "messages": 120000, + "schema_migrations": 1 + }, + "distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000", + "samples": [ + "{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}", + "{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}", + "{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}", + "{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}", + "{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}", + "{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}" + ] + }, + "actual": { + "counts": { + "users": 1, + "chats": 3, + "chat_members": 3, + "messages": 120000, + "schema_migrations": 1 + }, + "distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000", + "samples": [ + "{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}", + "{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}", + "{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}", + "{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}", + "{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}", + "{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}" + ] + }, + "match": true, + "marker_source": 1, + "marker_restore": 0 +} diff --git a/evidence/track2/20261001-b/sizes.json b/evidence/track2/20261001-b/sizes.json new file mode 100644 index 00000000..0b99748c --- /dev/null +++ b/evidence/track2/20261001-b/sizes.json @@ -0,0 +1,10 @@ +{ + "base": { + "table_bytes": 14049280, + "index_bytes": 7086080 + }, + "covering": { + "table_bytes": 14049280, + "index_bytes": 13574144 + } +} diff --git a/evidence/track2/20261001-b/write-base.json b/evidence/track2/20261001-b/write-base.json new file mode 100644 index 00000000..e9d8a0cf --- /dev/null +++ b/evidence/track2/20261001-b/write-base.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 45.433, + "Actual Total Time": 45.439, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50266, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.598, + "Actual Total Time": 5.273, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.008, + "Actual Total Time": 1.364, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.314, + "Triggers": [], + "Execution Time": 45.875 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 46.481, + "Actual Total Time": 46.483, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.532, + "Actual Total Time": 4.348, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.007, + "Actual Total Time": 0.785, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.318, + "Triggers": [], + "Execution Time": 46.799 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 59.258, + "Actual Total Time": 59.263, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 5.874, + "Actual Total Time": 6.792, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.01, + "Actual Total Time": 1.028, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.401, + "Triggers": [], + "Execution Time": 59.728 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 74.444, + "Actual Total Time": 74.446, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 21.502, + "Actual Total Time": 22.189, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.05, + "Actual Total Time": 1.465, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 1.367, + "Triggers": [], + "Execution Time": 75.057 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 48.778, + "Actual Total Time": 48.786, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.829, + "Actual Total Time": 5.581, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.01, + "Actual Total Time": 1.046, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.389, + "Triggers": [], + "Execution Time": 49.282 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 51.39, + "Actual Total Time": 51.392, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.475, + "Actual Total Time": 4.324, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.007, + "Actual Total Time": 0.816, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.503, + "Triggers": [], + "Execution Time": 51.818 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 57.853, + "Actual Total Time": 57.855, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.423, + "Actual Total Time": 5.266, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.011, + "Actual Total Time": 0.965, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.322, + "Triggers": [], + "Execution Time": 58.449 + } +] diff --git a/evidence/track2/20261001-b/write-covering.json b/evidence/track2/20261001-b/write-covering.json new file mode 100644 index 00000000..6da1b849 --- /dev/null +++ b/evidence/track2/20261001-b/write-covering.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 51.577, + "Actual Total Time": 51.579, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.351, + "Actual Total Time": 5.186, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.007, + "Actual Total Time": 0.888, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.351, + "Triggers": [], + "Execution Time": 51.897 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 57.087, + "Actual Total Time": 57.089, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.75, + "Actual Total Time": 4.584, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.008, + "Actual Total Time": 0.743, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.505, + "Triggers": [], + "Execution Time": 57.407 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 52.327, + "Actual Total Time": 52.329, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50364, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.929, + "Actual Total Time": 5.564, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.011, + "Actual Total Time": 0.928, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.362, + "Triggers": [], + "Execution Time": 52.71 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 61.712, + "Actual Total Time": 61.714, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.777, + "Actual Total Time": 5.527, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.008, + "Actual Total Time": 1.028, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.478, + "Triggers": [], + "Execution Time": 62.051 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 63.192, + "Actual Total Time": 63.193, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.577, + "Actual Total Time": 5.408, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.008, + "Actual Total Time": 0.943, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.336, + "Triggers": [], + "Execution Time": 63.52 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 48.788, + "Actual Total Time": 48.789, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 5.14, + "Actual Total Time": 5.793, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.009, + "Actual Total Time": 0.949, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.315, + "Triggers": [], + "Execution Time": 49.111 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 55.55, + "Actual Total Time": 55.552, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.718, + "Actual Total Time": 5.485, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.008, + "Actual Total Time": 0.952, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.382, + "Triggers": [], + "Execution Time": 55.875 + } +] diff --git a/evidence/track2/20261001-b/write-none.json b/evidence/track2/20261001-b/write-none.json new file mode 100644 index 00000000..167b0844 --- /dev/null +++ b/evidence/track2/20261001-b/write-none.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 34.21, + "Actual Total Time": 34.216, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.324, + "Actual Total Time": 4.963, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.013, + "Actual Total Time": 1.075, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.454, + "Triggers": [], + "Execution Time": 34.665 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 29.623, + "Actual Total Time": 29.625, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.701, + "Actual Total Time": 4.238, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.008, + "Actual Total Time": 1.034, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.31, + "Triggers": [], + "Execution Time": 29.941 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 29.516, + "Actual Total Time": 29.518, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.747, + "Actual Total Time": 4.498, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.008, + "Actual Total Time": 0.981, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.361, + "Triggers": [], + "Execution Time": 29.819 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 30.81, + "Actual Total Time": 30.813, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.067, + "Actual Total Time": 4.764, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.008, + "Actual Total Time": 1.032, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.331, + "Triggers": [], + "Execution Time": 31.182 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 34.815, + "Actual Total Time": 34.816, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 4.122, + "Actual Total Time": 4.729, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.008, + "Actual Total Time": 1.092, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.362, + "Triggers": [], + "Execution Time": 35.201 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 33.066, + "Actual Total Time": 33.068, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.997, + "Actual Total Time": 4.545, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.008, + "Actual Total Time": 0.946, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.372, + "Triggers": [], + "Execution Time": 33.364 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 29.243, + "Actual Total Time": 29.246, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.647, + "Actual Total Time": 4.152, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.008, + "Actual Total Time": 1.014, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.303, + "Triggers": [], + "Execution Time": 29.573 + } +] diff --git a/evidence/track2/20261001-b/writes.json b/evidence/track2/20261001-b/writes.json new file mode 100644 index 00000000..14389d20 --- /dev/null +++ b/evidence/track2/20261001-b/writes.json @@ -0,0 +1,26 @@ +[ + { + "variant": "none", + "median_ms": 31.182, + "min_ms": 29.573, + "max_ms": 35.201, + "median_wal_bytes": 2319396, + "index_bytes": 417792 + }, + { + "variant": "base", + "median_ms": 51.818, + "min_ms": 45.875, + "max_ms": 75.057, + "median_wal_bytes": 3343720, + "index_bytes": 1024000 + }, + { + "variant": "covering", + "median_ms": 55.875, + "min_ms": 49.111, + "max_ms": 63.52, + "median_wal_bytes": 3897536, + "index_bytes": 1572864 + } +] diff --git a/evidence/track2/20261001-c/commands.jsonl b/evidence/track2/20261001-c/commands.jsonl new file mode 100644 index 00000000..10b1701c --- /dev/null +++ b/evidence/track2/20261001-c/commands.jsonl @@ -0,0 +1,275 @@ +{"utc": "2026-10-01T16:01:53.855795+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "up", "-d", "--wait", "source"], "seconds": 5.368857314999332, "exit_code": 0} +{"utc": "2026-10-01T16:01:59.091228+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "run", "--build", "--rm", "migrator"], "seconds": 5.232276890004869, "exit_code": 0} +{"utc": "2026-10-01T16:02:02.677915+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 3.5720005780021893, "exit_code": 0} +{"utc": "2026-10-01T16:02:02.767714+00:00", "command": ["git", "rev-parse", "HEAD"], "seconds": 0.0876666429976467, "exit_code": 0} +{"utc": "2026-10-01T16:02:03.453988+00:00", "command": ["git", "status", "--porcelain"], "seconds": 0.6847655369929271, "exit_code": 0} +{"utc": "2026-10-01T16:02:03.513913+00:00", "command": ["docker", "version", "--format", "{{.Server.Version}}"], "seconds": 0.05847007599368226, "exit_code": 0} +{"utc": "2026-10-01T16:02:04.608061+00:00", "command": ["docker", "info", "--format", "{{.NCPU}} CPUs; {{.MemTotal}} bytes RAM"], "seconds": 1.0926960720098577, "exit_code": 0} +{"utc": "2026-10-01T16:02:05.850475+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2406151149916695, "exit_code": 0} +{"utc": "2026-10-01T16:02:07.059693+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2078860599867767, "exit_code": 0} +{"utc": "2026-10-01T16:02:07.111299+00:00", "command": ["docker", "inspect", "--format", "image={{.Image}} memory_limit={{.HostConfig.Memory}} nano_cpus={{.HostConfig.NanoCpus}}", "messenger-track2-20261001-c-source-1"], "seconds": 0.05002756700559985, "exit_code": 0} +{"utc": "2026-10-01T16:02:08.572008+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4116871600126615, "exit_code": 0} +{"utc": "2026-10-01T16:02:07.072348+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2291627620143117, "exit_code": 0} +{"utc": "2026-10-01T16:02:08.261827+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.187999599991599, "exit_code": 0} +{"utc": "2026-10-01T16:02:09.449377+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1854581919906195, "exit_code": 0} +{"utc": "2026-10-01T16:02:10.676818+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2254119999997783, "exit_code": 0} +{"utc": "2026-10-01T16:02:11.840625+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1620331839949358, "exit_code": 0} +{"utc": "2026-10-01T16:02:13.050244+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2080283510003937, "exit_code": 0} +{"utc": "2026-10-01T16:02:14.264186+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2123050520021934, "exit_code": 0} +{"utc": "2026-10-01T16:02:15.373990+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1079109889979009, "exit_code": 0} +{"utc": "2026-10-01T16:02:16.565075+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1893439350096742, "exit_code": 0} +{"utc": "2026-10-01T16:02:17.723420+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1554419590102043, "exit_code": 0} +{"utc": "2026-10-01T16:02:18.900967+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1753094260056969, "exit_code": 0} +{"utc": "2026-10-01T16:02:20.136787+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2338571790023707, "exit_code": 0} +{"utc": "2026-10-01T16:02:21.364729+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2178815239894902, "exit_code": 0} +{"utc": "2026-10-01T16:02:22.558260+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.191871025992441, "exit_code": 0} +{"utc": "2026-10-01T16:02:23.775837+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2158439680060837, "exit_code": 0} +{"utc": "2026-10-01T16:02:24.978923+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2009627999941586, "exit_code": 0} +{"utc": "2026-10-01T16:02:26.176396+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.195641329002683, "exit_code": 0} +{"utc": "2026-10-01T16:02:27.352658+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1748366779938806, "exit_code": 0} +{"utc": "2026-10-01T16:02:28.523181+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1686028319963953, "exit_code": 0} +{"utc": "2026-10-01T16:02:29.763144+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.237750396001502, "exit_code": 0} +{"utc": "2026-10-01T16:02:30.971383+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.200541668004007, "exit_code": 0} +{"utc": "2026-10-01T16:02:32.159660+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1864616719976766, "exit_code": 0} +{"utc": "2026-10-01T16:02:33.352200+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1899293699971167, "exit_code": 0} +{"utc": "2026-10-01T16:02:34.538694+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.18500041399966, "exit_code": 0} +{"utc": "2026-10-01T16:02:35.947593+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4070630710048135, "exit_code": 0} +{"utc": "2026-10-01T16:02:34.465900+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2539406860014424, "exit_code": 0} +{"utc": "2026-10-01T16:02:35.717372+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.250088118002168, "exit_code": 0} +{"utc": "2026-10-01T16:02:36.973594+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2541148430027533, "exit_code": 0} +{"utc": "2026-10-01T16:02:38.196202+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2148810360085918, "exit_code": 0} +{"utc": "2026-10-01T16:02:39.436167+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2383213699940825, "exit_code": 0} +{"utc": "2026-10-01T16:02:40.636567+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1987350350100314, "exit_code": 0} +{"utc": "2026-10-01T16:02:41.812552+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1737242459930712, "exit_code": 0} +{"utc": "2026-10-01T16:02:43.109964+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2952536299999338, "exit_code": 0} +{"utc": "2026-10-01T16:02:44.447728+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.335644525999669, "exit_code": 0} +{"utc": "2026-10-01T16:02:45.702271+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.252635710989125, "exit_code": 0} +{"utc": "2026-10-01T16:02:46.951422+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.247306170000229, "exit_code": 0} +{"utc": "2026-10-01T16:02:48.156289+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2029947959963465, "exit_code": 0} +{"utc": "2026-10-01T16:02:49.401429+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2428376409952762, "exit_code": 0} +{"utc": "2026-10-01T16:02:50.550122+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1468427969957702, "exit_code": 0} +{"utc": "2026-10-01T16:02:51.835382+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2769915590033634, "exit_code": 0} +{"utc": "2026-10-01T16:02:53.061989+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.224680414001341, "exit_code": 0} +{"utc": "2026-10-01T16:02:54.300383+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.236659114001668, "exit_code": 0} +{"utc": "2026-10-01T16:02:55.587364+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.285050197999226, "exit_code": 0} +{"utc": "2026-10-01T16:02:56.812283+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2232080929970834, "exit_code": 0} +{"utc": "2026-10-01T16:02:58.097822+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2840056459972402, "exit_code": 0} +{"utc": "2026-10-01T16:02:59.276980+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1766434559976915, "exit_code": 0} +{"utc": "2026-10-01T16:03:00.512306+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2335821039887378, "exit_code": 0} +{"utc": "2026-10-01T16:03:01.765418+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2442335779924178, "exit_code": 0} +{"utc": "2026-10-01T16:03:02.973589+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.206715565000195, "exit_code": 0} +{"utc": "2026-10-01T16:03:01.517628+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2633767740044277, "exit_code": 0} +{"utc": "2026-10-01T16:03:02.698052+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1784860560001107, "exit_code": 0} +{"utc": "2026-10-01T16:03:03.902205+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2021098819968756, "exit_code": 0} +{"utc": "2026-10-01T16:03:05.123144+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2191092309949454, "exit_code": 0} +{"utc": "2026-10-01T16:03:06.348044+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2226723159983521, "exit_code": 0} +{"utc": "2026-10-01T16:03:07.516938+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1666873560025124, "exit_code": 0} +{"utc": "2026-10-01T16:03:08.777455+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2503994930011686, "exit_code": 0} +{"utc": "2026-10-01T16:03:10.020116+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2396070449904073, "exit_code": 0} +{"utc": "2026-10-01T16:03:11.306783+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.284987013990758, "exit_code": 0} +{"utc": "2026-10-01T16:03:12.543877+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2353121109917993, "exit_code": 0} +{"utc": "2026-10-01T16:03:13.731155+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1859268010011874, "exit_code": 0} +{"utc": "2026-10-01T16:03:15.035994+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3027743699931307, "exit_code": 0} +{"utc": "2026-10-01T16:03:16.199889+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.16200655499415, "exit_code": 0} +{"utc": "2026-10-01T16:03:17.416679+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2147500870050862, "exit_code": 0} +{"utc": "2026-10-01T16:03:18.600435+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.181660803995328, "exit_code": 0} +{"utc": "2026-10-01T16:03:19.783948+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1815660930005834, "exit_code": 0} +{"utc": "2026-10-01T16:03:21.025144+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2394989269960206, "exit_code": 0} +{"utc": "2026-10-01T16:03:22.220540+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1866839540016372, "exit_code": 0} +{"utc": "2026-10-01T16:03:23.380457+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1580679149919888, "exit_code": 0} +{"utc": "2026-10-01T16:03:24.617532+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2347839499998372, "exit_code": 0} +{"utc": "2026-10-01T16:03:25.817544+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1981684120110003, "exit_code": 0} +{"utc": "2026-10-01T16:03:27.060796+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.24101786200481, "exit_code": 0} +{"utc": "2026-10-01T16:03:28.292761+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2301969050022308, "exit_code": 0} +{"utc": "2026-10-01T16:03:29.465900+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1715310959989438, "exit_code": 0} +{"utc": "2026-10-01T16:03:30.713867+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.203826721990481, "exit_code": 0} +{"utc": "2026-10-01T16:03:29.167658+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.220855556006427, "exit_code": 0} +{"utc": "2026-10-01T16:03:30.360532+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1908475499949418, "exit_code": 0} +{"utc": "2026-10-01T16:03:31.624754+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.262258524002391, "exit_code": 0} +{"utc": "2026-10-01T16:03:32.796521+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1691830849886173, "exit_code": 0} +{"utc": "2026-10-01T16:03:34.058102+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.259973883992643, "exit_code": 0} +{"utc": "2026-10-01T16:03:35.212959+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1533373550046235, "exit_code": 0} +{"utc": "2026-10-01T16:03:36.433267+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2176484009978594, "exit_code": 0} +{"utc": "2026-10-01T16:03:37.659163+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2242544900072971, "exit_code": 0} +{"utc": "2026-10-01T16:03:39.068939+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.397077026005718, "exit_code": 0} +{"utc": "2026-10-01T16:03:40.516385+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4455979319900507, "exit_code": 0} +{"utc": "2026-10-01T16:03:41.696247+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1779401149979094, "exit_code": 0} +{"utc": "2026-10-01T16:03:42.974444+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2762741030019242, "exit_code": 0} +{"utc": "2026-10-01T16:03:44.198551+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2217371789884055, "exit_code": 0} +{"utc": "2026-10-01T16:03:45.543067+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3429116170009365, "exit_code": 0} +{"utc": "2026-10-01T16:03:46.876634+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3319366140058264, "exit_code": 0} +{"utc": "2026-10-01T16:03:48.195868+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3173958849947667, "exit_code": 0} +{"utc": "2026-10-01T16:03:49.485590+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.287686247000238, "exit_code": 0} +{"utc": "2026-10-01T16:03:50.681153+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1937838299927535, "exit_code": 0} +{"utc": "2026-10-01T16:03:51.899105+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2162062630086439, "exit_code": 0} +{"utc": "2026-10-01T16:03:53.135452+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.234198716992978, "exit_code": 0} +{"utc": "2026-10-01T16:03:54.320004+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1828667859954294, "exit_code": 0} +{"utc": "2026-10-01T16:03:55.497814+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1759432059916435, "exit_code": 0} +{"utc": "2026-10-01T16:03:56.749172+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2443383909994736, "exit_code": 0} +{"utc": "2026-10-01T16:03:57.987659+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.188818804002949, "exit_code": 0} +{"utc": "2026-10-01T16:03:56.557314+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3485600590065587, "exit_code": 0} +{"utc": "2026-10-01T16:03:57.809225+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2498698690033052, "exit_code": 0} +{"utc": "2026-10-01T16:03:59.006768+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.195675692986697, "exit_code": 0} +{"utc": "2026-10-01T16:04:00.284844+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2752533210004913, "exit_code": 0} +{"utc": "2026-10-01T16:04:01.452153+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1649835029966198, "exit_code": 0} +{"utc": "2026-10-01T16:04:02.656350+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.20207999899867, "exit_code": 0} +{"utc": "2026-10-01T16:04:03.850189+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.186035995997372, "exit_code": 0} +{"utc": "2026-10-01T16:04:05.008006+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1561288540106034, "exit_code": 0} +{"utc": "2026-10-01T16:04:06.248801+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2387409820075845, "exit_code": 0} +{"utc": "2026-10-01T16:04:07.448542+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1977473680017283, "exit_code": 0} +{"utc": "2026-10-01T16:04:08.683490+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2332904420036357, "exit_code": 0} +{"utc": "2026-10-01T16:04:09.889467+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2042134330113186, "exit_code": 0} +{"utc": "2026-10-01T16:04:11.088362+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1973224789981032, "exit_code": 0} +{"utc": "2026-10-01T16:04:12.314662+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2243798330018762, "exit_code": 0} +{"utc": "2026-10-01T16:04:13.499192+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1764193900016835, "exit_code": 0} +{"utc": "2026-10-01T16:04:14.684100+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.182936179000535, "exit_code": 0} +{"utc": "2026-10-01T16:04:15.922921+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2367266379878856, "exit_code": 0} +{"utc": "2026-10-01T16:04:17.078559+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1540048149909126, "exit_code": 0} +{"utc": "2026-10-01T16:04:18.337464+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2568433779961197, "exit_code": 0} +{"utc": "2026-10-01T16:04:19.528365+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1888794080005027, "exit_code": 0} +{"utc": "2026-10-01T16:04:20.733617+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.202860192002845, "exit_code": 0} +{"utc": "2026-10-01T16:04:22.042146+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3065598940011114, "exit_code": 0} +{"utc": "2026-10-01T16:04:23.253689+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2096354520035675, "exit_code": 0} +{"utc": "2026-10-01T16:04:24.482265+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2239782870019553, "exit_code": 0} +{"utc": "2026-10-01T16:04:22.940587+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2216847050003707, "exit_code": 0} +{"utc": "2026-10-01T16:04:24.170595+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2223177279956872, "exit_code": 0} +{"utc": "2026-10-01T16:04:25.434289+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2618344060028903, "exit_code": 0} +{"utc": "2026-10-01T16:04:26.629199+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1928101439989405, "exit_code": 0} +{"utc": "2026-10-01T16:04:27.819717+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1885580669913907, "exit_code": 0} +{"utc": "2026-10-01T16:04:29.018430+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1929345140088117, "exit_code": 0} +{"utc": "2026-10-01T16:04:30.228578+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2078171899920562, "exit_code": 0} +{"utc": "2026-10-01T16:04:31.438882+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2068633290036814, "exit_code": 0} +{"utc": "2026-10-01T16:04:32.664082+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.222960579994833, "exit_code": 0} +{"utc": "2026-10-01T16:04:33.811189+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1336951900011627, "exit_code": 0} +{"utc": "2026-10-01T16:04:35.043665+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2306481109990273, "exit_code": 0} +{"utc": "2026-10-01T16:04:36.219485+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1737476429989329, "exit_code": 0} +{"utc": "2026-10-01T16:04:37.406286+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1851147770066746, "exit_code": 0} +{"utc": "2026-10-01T16:04:38.599144+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1904024260002188, "exit_code": 0} +{"utc": "2026-10-01T16:04:39.744285+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1432361979968846, "exit_code": 0} +{"utc": "2026-10-01T16:04:41.016396+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2700617759983288, "exit_code": 0} +{"utc": "2026-10-01T16:04:42.201685+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1836984709952958, "exit_code": 0} +{"utc": "2026-10-01T16:04:43.468221+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2570734030014137, "exit_code": 0} +{"utc": "2026-10-01T16:04:44.701725+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2313281770038884, "exit_code": 0} +{"utc": "2026-10-01T16:04:45.919896+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2161221279966412, "exit_code": 0} +{"utc": "2026-10-01T16:04:47.181950+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2604084959893953, "exit_code": 0} +{"utc": "2026-10-01T16:04:48.445374+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2607595919980668, "exit_code": 0} +{"utc": "2026-10-01T16:04:49.708066+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.259849539012066, "exit_code": 0} +{"utc": "2026-10-01T16:04:50.994003+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2838326429919107, "exit_code": 0} +{"utc": "2026-10-01T16:04:52.315020+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3189441720023751, "exit_code": 0} +{"utc": "2026-10-01T16:04:50.840627+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2412081689981278, "exit_code": 0} +{"utc": "2026-10-01T16:04:52.073564+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.231088953994913, "exit_code": 0} +{"utc": "2026-10-01T16:04:53.314040+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.238763512999867, "exit_code": 0} +{"utc": "2026-10-01T16:04:54.580360+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2557647789944895, "exit_code": 0} +{"utc": "2026-10-01T16:04:55.813541+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2311725909967208, "exit_code": 0} +{"utc": "2026-10-01T16:04:57.188301+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.372993598008179, "exit_code": 0} +{"utc": "2026-10-01T16:04:58.470007+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2799987710022833, "exit_code": 0} +{"utc": "2026-10-01T16:04:59.638611+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1664543749939185, "exit_code": 0} +{"utc": "2026-10-01T16:05:00.886902+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.246168661993579, "exit_code": 0} +{"utc": "2026-10-01T16:05:02.133919+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2452728509961162, "exit_code": 0} +{"utc": "2026-10-01T16:05:03.369966+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2341093680006452, "exit_code": 0} +{"utc": "2026-10-01T16:05:04.551102+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1722948669921607, "exit_code": 0} +{"utc": "2026-10-01T16:05:05.832000+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2795124510012101, "exit_code": 0} +{"utc": "2026-10-01T16:05:07.152582+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.319084657006897, "exit_code": 0} +{"utc": "2026-10-01T16:05:08.340958+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1867622870049672, "exit_code": 0} +{"utc": "2026-10-01T16:05:09.631251+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2884222569991834, "exit_code": 0} +{"utc": "2026-10-01T16:05:10.853757+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2207603770075366, "exit_code": 0} +{"utc": "2026-10-01T16:05:12.112860+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2533067990007112, "exit_code": 0} +{"utc": "2026-10-01T16:05:13.360610+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.245821361997514, "exit_code": 0} +{"utc": "2026-10-01T16:05:14.825168+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4539172370132292, "exit_code": 0} +{"utc": "2026-10-01T16:05:16.142723+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3156418330036104, "exit_code": 0} +{"utc": "2026-10-01T16:05:17.352089+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2076612160017248, "exit_code": 0} +{"utc": "2026-10-01T16:05:18.592766+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2392768360004993, "exit_code": 0} +{"utc": "2026-10-01T16:05:19.975283+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2992369510029675, "exit_code": 0} +{"utc": "2026-10-01T16:05:18.283505+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2654953800083604, "exit_code": 0} +{"utc": "2026-10-01T16:05:19.579776+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2947506430064095, "exit_code": 0} +{"utc": "2026-10-01T16:05:20.814385+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2320884840009967, "exit_code": 0} +{"utc": "2026-10-01T16:05:22.127466+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.311098304009647, "exit_code": 0} +{"utc": "2026-10-01T16:05:23.396876+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2676239819993498, "exit_code": 0} +{"utc": "2026-10-01T16:05:24.666477+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2680431490007322, "exit_code": 0} +{"utc": "2026-10-01T16:05:25.925880+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2574244099960197, "exit_code": 0} +{"utc": "2026-10-01T16:05:27.232636+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3038140739954542, "exit_code": 0} +{"utc": "2026-10-01T16:05:28.488597+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.25426640099613, "exit_code": 0} +{"utc": "2026-10-01T16:05:29.787347+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2970094110060018, "exit_code": 0} +{"utc": "2026-10-01T16:05:31.028617+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2398233720014105, "exit_code": 0} +{"utc": "2026-10-01T16:05:32.366328+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.335932107991539, "exit_code": 0} +{"utc": "2026-10-01T16:05:33.655848+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2863255670090439, "exit_code": 0} +{"utc": "2026-10-01T16:05:34.930762+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2731407579994993, "exit_code": 0} +{"utc": "2026-10-01T16:05:36.102367+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.163087644992629, "exit_code": 0} +{"utc": "2026-10-01T16:05:37.344730+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2410397909989115, "exit_code": 0} +{"utc": "2026-10-01T16:05:38.585344+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.237955086005968, "exit_code": 0} +{"utc": "2026-10-01T16:05:39.853838+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2665237899927888, "exit_code": 0} +{"utc": "2026-10-01T16:05:41.157427+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3019359359896043, "exit_code": 0} +{"utc": "2026-10-01T16:05:42.447839+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.287777969992021, "exit_code": 0} +{"utc": "2026-10-01T16:05:43.707229+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2576206460071262, "exit_code": 0} +{"utc": "2026-10-01T16:05:45.035318+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.326037279999582, "exit_code": 0} +{"utc": "2026-10-01T16:05:46.288183+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2510069959971588, "exit_code": 0} +{"utc": "2026-10-01T16:05:45.034668+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2908988050039625, "exit_code": 0} +{"utc": "2026-10-01T16:05:46.261241+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.224585058997036, "exit_code": 0} +{"utc": "2026-10-01T16:05:47.609795+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3465243019891204, "exit_code": 0} +{"utc": "2026-10-01T16:05:48.884542+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2729575900011696, "exit_code": 0} +{"utc": "2026-10-01T16:05:50.177110+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2907314129988663, "exit_code": 0} +{"utc": "2026-10-01T16:05:51.399117+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2201723090111045, "exit_code": 0} +{"utc": "2026-10-01T16:05:52.806259+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4046753290022025, "exit_code": 0} +{"utc": "2026-10-01T16:05:54.080877+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2725572630006354, "exit_code": 0} +{"utc": "2026-10-01T16:05:55.459987+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3770422599918675, "exit_code": 0} +{"utc": "2026-10-01T16:05:56.656165+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1937919930060161, "exit_code": 0} +{"utc": "2026-10-01T16:05:58.094496+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.4367134170024656, "exit_code": 0} +{"utc": "2026-10-01T16:05:59.398337+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2920464830094716, "exit_code": 0} +{"utc": "2026-10-01T16:06:00.637574+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2376940859976457, "exit_code": 0} +{"utc": "2026-10-01T16:06:01.834675+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.19532803799666, "exit_code": 0} +{"utc": "2026-10-01T16:06:03.062674+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2261872770031914, "exit_code": 0} +{"utc": "2026-10-01T16:06:04.337276+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2728714359982405, "exit_code": 0} +{"utc": "2026-10-01T16:06:05.640576+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3014239059993997, "exit_code": 0} +{"utc": "2026-10-01T16:06:06.928736+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2857592209911672, "exit_code": 0} +{"utc": "2026-10-01T16:06:08.216915+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2856620250095148, "exit_code": 0} +{"utc": "2026-10-01T16:06:09.457138+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2385418310004752, "exit_code": 0} +{"utc": "2026-10-01T16:06:10.772357+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3135931200085906, "exit_code": 0} +{"utc": "2026-10-01T16:06:11.970240+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1958916040020995, "exit_code": 0} +{"utc": "2026-10-01T16:06:13.301732+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.328859449000447, "exit_code": 0} +{"utc": "2026-10-01T16:06:11.826176+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3041641960007837, "exit_code": 0} +{"utc": "2026-10-01T16:06:13.192031+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3640671339962864, "exit_code": 0} +{"utc": "2026-10-01T16:06:14.496441+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3024937840091297, "exit_code": 0} +{"utc": "2026-10-01T16:06:15.740237+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2420778999949107, "exit_code": 0} +{"utc": "2026-10-01T16:06:17.028685+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.286806300005992, "exit_code": 0} +{"utc": "2026-10-01T16:06:18.298587+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2678705709986389, "exit_code": 0} +{"utc": "2026-10-01T16:06:19.508457+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2077398569963407, "exit_code": 0} +{"utc": "2026-10-01T16:06:20.858531+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.347546410994255, "exit_code": 0} +{"utc": "2026-10-01T16:06:22.092621+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.225918639000156, "exit_code": 0} +{"utc": "2026-10-01T16:06:23.378140+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2838161290128483, "exit_code": 0} +{"utc": "2026-10-01T16:06:24.606891+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.226955773003283, "exit_code": 0} +{"utc": "2026-10-01T16:06:25.869524+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2333657290000701, "exit_code": 0} +{"utc": "2026-10-01T16:06:27.175267+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.304175290002604, "exit_code": 0} +{"utc": "2026-10-01T16:06:28.418889+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.241802495002048, "exit_code": 0} +{"utc": "2026-10-01T16:06:29.666493+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2453678129968466, "exit_code": 0} +{"utc": "2026-10-01T16:06:30.857728+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1894351899973117, "exit_code": 0} +{"utc": "2026-10-01T16:06:32.104621+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2440709539951058, "exit_code": 0} +{"utc": "2026-10-01T16:06:33.353090+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2461168899899349, "exit_code": 0} +{"utc": "2026-10-01T16:06:34.549055+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.194013708998682, "exit_code": 0} +{"utc": "2026-10-01T16:06:35.717110+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.166678626992507, "exit_code": 0} +{"utc": "2026-10-01T16:06:36.922817+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2040935830009403, "exit_code": 0} +{"utc": "2026-10-01T16:06:38.110394+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1856424289871939, "exit_code": 0} +{"utc": "2026-10-01T16:06:39.308884+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.195953925998765, "exit_code": 0} +{"utc": "2026-10-01T16:06:40.490177+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1794002880051266, "exit_code": 0} +{"utc": "2026-10-01T16:06:41.793283+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1965245449973736, "exit_code": 0} +{"utc": "2026-10-01T16:06:43.002119+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.207227533988771, "exit_code": 0} +{"utc": "2026-10-01T16:06:42.560499+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "pg_dump", "-U", "track2", "-d", "messenger_track2", "-Fc"], "seconds": 1.6470247769902926, "exit_code": 0} +{"utc": "2026-10-01T16:06:43.991575+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.387782582998625, "exit_code": 0} +{"utc": "2026-10-01T16:06:49.378260+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "up", "-d", "--wait", "restore"], "seconds": 5.384081038995646, "exit_code": 0} +{"utc": "2026-10-01T16:06:51.405713+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "pg_restore", "--exit-on-error", "--no-owner", "--no-acl", "-U", "track2", "-d", "messenger_track2"], "seconds": 2.0244783100060886, "exit_code": 0} +{"utc": "2026-10-01T16:06:52.609059+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.201600465006777, "exit_code": 0} +{"utc": "2026-10-01T16:06:53.852853+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.242105694997008, "exit_code": 0} +{"utc": "2026-10-01T16:06:54.991430+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1366018730041105, "exit_code": 0} +{"utc": "2026-10-01T16:06:56.065579+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.0728420579980593, "exit_code": 0} +{"utc": "2026-10-01T16:06:56.954114+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 0.8870942690118682, "exit_code": 0} +{"utc": "2026-10-01T16:06:57.926691+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 0.9710176150110783, "exit_code": 0} +{"utc": "2026-10-01T16:06:59.248333+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.320496025000466, "exit_code": 0} +{"utc": "2026-10-01T16:07:00.580015+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3296889049961464, "exit_code": 0} +{"utc": "2026-10-01T16:07:01.858485+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.276744877002784, "exit_code": 0} +{"utc": "2026-10-01T16:07:03.132968+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2725783920031972, "exit_code": 0} +{"utc": "2026-10-01T16:07:04.291611+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.1566239590029, "exit_code": 0} +{"utc": "2026-10-01T16:07:05.549710+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2565722110011848, "exit_code": 0} +{"utc": "2026-10-01T16:07:06.781339+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2296818680042634, "exit_code": 0} +{"utc": "2026-10-01T16:07:08.012467+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.229394884998328, "exit_code": 0} +{"utc": "2026-10-01T16:07:09.340069+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.3256938660051674, "exit_code": 0} +{"utc": "2026-10-01T16:07:07.150306+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "source", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.2299202520080144, "exit_code": 0} +{"utc": "2026-10-01T16:07:08.382992+00:00", "command": ["docker", "compose", "-f", "compose.track2.yaml", "-p", "messenger-track2-20261001-c", "exec", "-T", "restore", "psql", "-X", "-qAt", "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], "seconds": 1.230820301003405, "exit_code": 0} diff --git a/evidence/track2/20261001-c/first-query.json b/evidence/track2/20261001-c/first-query.json new file mode 100644 index 00000000..882dfac5 --- /dev/null +++ b/evidence/track2/20261001-c/first-query.json @@ -0,0 +1,8 @@ +{ + "run_id": "20261001-c", + "calculation": "commands.jsonl: first SELECT count(users) after pg_restore minus start of up --wait restore", + "startup_restore_first_verified_count_seconds": 8.614880038995647, + "expected": 1, + "actual": 1, + "includes_docker_client_overhead": true +} diff --git a/evidence/track2/20261001-c/manifest.json b/evidence/track2/20261001-c/manifest.json new file mode 100644 index 00000000..56663ef8 --- /dev/null +++ b/evidence/track2/20261001-c/manifest.json @@ -0,0 +1,32 @@ +{ + "started_utc": "2026-10-01T16:02:02.680049+00:00", + "run_id": "20261001-c", + "base_commit": "a9dda2054084cb22936feb90d197462c7dc74809", + "dirty": true, + "docker_version": "28.5.1", + "docker_resources": "16 CPUs; 7942131712 bytes RAM", + "postgres": "PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit", + "page_size": 50, + "warmup": 1, + "repetitions": 7, + "settings": { + "effective_cache_size": "524288", + "fsync": "on", + "full_page_writes": "on", + "max_parallel_workers_per_gather": "2", + "shared_buffers": "16384", + "synchronous_commit": "on", + "work_mem": "4096" + }, + "container_limits": "image=sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74 memory_limit=0 nano_cpus=0", + "source_hashes": { + "src/experiments/track2/run.py": "f96eba00dc720eb5d7de230e3eb3d1371497183b8c668ca53bc58735ec1fd605", + "src/experiments/track2/seed.sql": "db0c76bfd8963c8f09186a5c320062110b63f0930a92097f3ac9bacae695e5d7", + "compose.track2.yaml": "8e9da80fb6cd9c93f87c5432a9d0ad8e5b899ba6ede399aea94504f67351f34f", + "evidence/track2.md": "0ae7cb35f05ccb955d48cc54f7b57d0eb9e8419344abc463787a5fd9f0c522b8", + "src/backend/repositories/migrations/000001_initial.down.sql": "89033de00bcc07836119f37efda571faa60dfcd4c645b39f29fd0ac782b3393b", + "src/backend/repositories/migrations/000001_initial.up.sql": "52a3ad07adb5da6142c03cccdff99eb40754f63ba3466967cecc3ccbefb4ea1a", + "src/backend/repositories/migrations/000002_redis_sessions.down.sql": "562e93808b65e787b13017bc7eb6a473877271cb8d2301b3db4187e0ba55c0cb", + "src/backend/repositories/migrations/000002_redis_sessions.up.sql": "4cb7d577c88adce11c4d352e6f6c635ca6387e26ae86eabce67a00f7fa4cdfbb" + } +} diff --git a/evidence/track2/20261001-c/queries.sql b/evidence/track2/20261001-c/queries.sql new file mode 100644 index 00000000..71f0b6c7 --- /dev/null +++ b/evidence/track2/20261001-c/queries.sql @@ -0,0 +1,62 @@ +-- read-base-large-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-large-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('2026-01-01 00:00:00.09+00'::timestamptz,'1d664eb1-42e9-c630-c739-4623b08094d7'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-large-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' ORDER BY created_at,id OFFSET 90000 LIMIT 50; + +-- read-base-medium-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-medium-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('2026-01-01 00:00:00.0135+00'::timestamptz,'3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-medium-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' ORDER BY created_at,id OFFSET 13500 LIMIT 50; + +-- read-base-small-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-small-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('2026-01-01 00:00:00.0045+00'::timestamptz,'21919306-3e96-9707-0768-3cffae975c19'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-base-small-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' ORDER BY created_at,id OFFSET 4500 LIMIT 50; + +-- read-covering-large-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-large-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' AND (created_at,id)>('2026-01-01 00:00:00.09+00'::timestamptz,'1d664eb1-42e9-c630-c739-4623b08094d7'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-large-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222221' ORDER BY created_at,id OFFSET 90000 LIMIT 50; + +-- read-covering-medium-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-medium-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' AND (created_at,id)>('2026-01-01 00:00:00.0135+00'::timestamptz,'3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-medium-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222222' ORDER BY created_at,id OFFSET 13500 LIMIT 50; + +-- read-covering-small-first +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-small-late +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' AND (created_at,id)>('2026-01-01 00:00:00.0045+00'::timestamptz,'21919306-3e96-9707-0768-3cffae975c19'::uuid) ORDER BY created_at,id LIMIT 50; + +-- read-covering-small-offset +SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='22222222-2222-4222-8222-222222222223' ORDER BY created_at,id OFFSET 4500 LIMIT 50; + +-- write-none (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; + +-- write-base (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; + +-- write-covering (TRUNCATE before each trial) +INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id; diff --git a/evidence/track2/20261001-c/read-base-large-first.json b/evidence/track2/20261001-c/read-base-large-first.json new file mode 100644 index 00000000..7d0738ef --- /dev/null +++ b/evidence/track2/20261001-c/read-base-large-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.039, + "Actual Total Time": 0.047, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8704.65, + "Plan Rows": 100190, + "Plan Width": 86, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.042, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.379, + "Triggers": [], + "Execution Time": 0.096 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.034, + "Actual Total Time": 0.042, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8704.65, + "Plan Rows": 100190, + "Plan Width": 86, + "Actual Startup Time": 0.033, + "Actual Total Time": 0.038, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.392, + "Triggers": [], + "Execution Time": 0.093 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8704.65, + "Plan Rows": 100190, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.514, + "Triggers": [], + "Execution Time": 0.135 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.035, + "Actual Total Time": 0.043, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8704.65, + "Plan Rows": 100190, + "Plan Width": 86, + "Actual Startup Time": 0.034, + "Actual Total Time": 0.039, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.375, + "Triggers": [], + "Execution Time": 0.093 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.082, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8704.65, + "Plan Rows": 100190, + "Plan Width": 86, + "Actual Startup Time": 0.067, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.703, + "Triggers": [], + "Execution Time": 0.155 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.035, + "Actual Total Time": 0.043, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8704.65, + "Plan Rows": 100190, + "Plan Width": 86, + "Actual Startup Time": 0.034, + "Actual Total Time": 0.039, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.394, + "Triggers": [], + "Execution Time": 0.111 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.76, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8704.65, + "Plan Rows": 100190, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.75, + "Triggers": [], + "Execution Time": 0.146 + } +] diff --git a/evidence/track2/20261001-c/read-base-large-late.json b/evidence/track2/20261001-c/read-base-large-late.json new file mode 100644 index 00000000..578ac8a4 --- /dev/null +++ b/evidence/track2/20261001-c/read-base-large-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.516, + "Triggers": [], + "Execution Time": 0.172 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.433, + "Triggers": [], + "Execution Time": 0.128 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.511, + "Triggers": [], + "Execution Time": 0.145 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.397, + "Triggers": [], + "Execution Time": 0.112 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.056, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.38, + "Triggers": [], + "Execution Time": 0.111 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.11, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.104, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.565, + "Triggers": [], + "Execution Time": 0.175 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 21.32, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3480.77, + "Plan Rows": 8324, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.643, + "Triggers": [], + "Execution Time": 0.155 + } +] diff --git a/evidence/track2/20261001-c/read-base-large-offset.json b/evidence/track2/20261001-c/read-base-large-offset.json new file mode 100644 index 00000000..5b9de277 --- /dev/null +++ b/evidence/track2/20261001-c/read-base-large-offset.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 15.987, + "Actual Total Time": 16.0, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.035, + "Actual Total Time": 12.893, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.384, + "Triggers": [], + "Execution Time": 16.037 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.273, + "Actual Total Time": 18.288, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.043, + "Actual Total Time": 14.993, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.614, + "Triggers": [], + "Execution Time": 18.342 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 17.393, + "Actual Total Time": 17.409, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.042, + "Actual Total Time": 13.994, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.514, + "Triggers": [], + "Execution Time": 17.451 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.011, + "Actual Total Time": 18.023, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.034, + "Actual Total Time": 14.458, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.389, + "Triggers": [], + "Execution Time": 18.06 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 17.534, + "Actual Total Time": 17.547, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.035, + "Actual Total Time": 14.086, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.377, + "Triggers": [], + "Execution Time": 17.581 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.384, + "Actual Total Time": 18.396, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 15.14, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.837, + "Triggers": [], + "Execution Time": 18.436 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 7594.28, + "Total Cost": 7598.5, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 23.358, + "Actual Total Time": 23.371, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 8454.92, + "Plan Rows": 100200, + "Plan Width": 86, + "Actual Startup Time": 0.078, + "Actual Total Time": 20.196, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 1933, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 1.034, + "Triggers": [], + "Execution Time": 23.447 + } +] diff --git a/evidence/track2/20261001-c/read-base-medium-first.json b/evidence/track2/20261001-c/read-base-medium-first.json new file mode 100644 index 00000000..d4379fce --- /dev/null +++ b/evidence/track2/20261001-c/read-base-medium-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.48, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3844.34, + "Plan Rows": 14715, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.061, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.407, + "Triggers": [], + "Execution Time": 0.112 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.48, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.08, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3844.34, + "Plan Rows": 14715, + "Plan Width": 86, + "Actual Startup Time": 0.064, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.58, + "Triggers": [], + "Execution Time": 0.159 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.48, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.089, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3844.34, + "Plan Rows": 14715, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 0.082, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.961, + "Triggers": [], + "Execution Time": 0.162 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.48, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.077, + "Actual Total Time": 0.091, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3844.34, + "Plan Rows": 14715, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.086, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.56, + "Triggers": [], + "Execution Time": 0.191 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.48, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3844.34, + "Plan Rows": 14715, + "Plan Width": 86, + "Actual Startup Time": 0.068, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.436, + "Triggers": [], + "Execution Time": 0.144 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.48, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.097, + "Actual Total Time": 0.115, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3844.34, + "Plan Rows": 14715, + "Plan Width": 86, + "Actual Startup Time": 0.096, + "Actual Total Time": 0.11, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.686, + "Triggers": [], + "Execution Time": 0.19 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 13.48, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3844.34, + "Plan Rows": 14715, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.369, + "Triggers": [], + "Execution Time": 0.216 + } +] diff --git a/evidence/track2/20261001-c/read-base-medium-late.json b/evidence/track2/20261001-c/read-base-medium-late.json new file mode 100644 index 00000000..f08f1518 --- /dev/null +++ b/evidence/track2/20261001-c/read-base-medium-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3618.3, + "Plan Rows": 10788, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.064, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.453, + "Triggers": [], + "Execution Time": 0.123 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.076, + "Actual Total Time": 0.094, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3618.3, + "Plan Rows": 10788, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.645, + "Triggers": [], + "Execution Time": 0.174 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.094, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3618.3, + "Plan Rows": 10788, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.502, + "Triggers": [], + "Execution Time": 0.158 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3618.3, + "Plan Rows": 10788, + "Plan Width": 86, + "Actual Startup Time": 0.064, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.377, + "Triggers": [], + "Execution Time": 0.127 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.097, + "Actual Total Time": 0.117, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3618.3, + "Plan Rows": 10788, + "Plan Width": 86, + "Actual Startup Time": 0.096, + "Actual Total Time": 0.111, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.648, + "Triggers": [], + "Execution Time": 0.205 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.233, + "Actual Total Time": 0.247, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3618.3, + "Plan Rows": 10788, + "Plan Width": 86, + "Actual Startup Time": 0.232, + "Actual Total Time": 0.242, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.498, + "Triggers": [], + "Execution Time": 0.321 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 17.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.084, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3618.3, + "Plan Rows": 10788, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.608, + "Triggers": [], + "Execution Time": 0.154 + } +] diff --git a/evidence/track2/20261001-c/read-base-medium-offset.json b/evidence/track2/20261001-c/read-base-medium-offset.json new file mode 100644 index 00000000..788962d5 --- /dev/null +++ b/evidence/track2/20261001-c/read-base-medium-offset.json @@ -0,0 +1,933 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3493.89, + "Total Cost": 3494.01, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 9.424, + "Actual Total Time": 9.433, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3460.14, + "Total Cost": 3496.93, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 8.439, + "Actual Total Time": 8.978, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 542.47, + "Total Cost": 2441.42, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 2.169, + "Actual Total Time": 4.007, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 538.79, + "Plan Rows": 14716, + "Plan Width": 0, + "Actual Startup Time": 2.113, + "Actual Total Time": 2.114, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.797, + "Triggers": [], + "Execution Time": 9.909 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3493.89, + "Total Cost": 3494.01, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 16.434, + "Actual Total Time": 16.443, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3460.14, + "Total Cost": 3496.93, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 15.186, + "Actual Total Time": 15.915, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 542.47, + "Total Cost": 2441.42, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 3.065, + "Actual Total Time": 6.481, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 538.79, + "Plan Rows": 14716, + "Plan Width": 0, + "Actual Startup Time": 2.976, + "Actual Total Time": 2.977, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.682, + "Triggers": [], + "Execution Time": 17.063 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3493.89, + "Total Cost": 3494.01, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 6.529, + "Actual Total Time": 6.537, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3460.14, + "Total Cost": 3496.93, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 5.549, + "Actual Total Time": 6.055, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 542.47, + "Total Cost": 2441.42, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 0.879, + "Actual Total Time": 2.145, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 538.79, + "Plan Rows": 14716, + "Plan Width": 0, + "Actual Startup Time": 0.851, + "Actual Total Time": 0.852, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.395, + "Triggers": [], + "Execution Time": 7.084 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3493.89, + "Total Cost": 3494.01, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 7.567, + "Actual Total Time": 7.574, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3460.14, + "Total Cost": 3496.93, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 6.502, + "Actual Total Time": 7.103, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 542.47, + "Total Cost": 2441.42, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 1.255, + "Actual Total Time": 2.663, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 538.79, + "Plan Rows": 14716, + "Plan Width": 0, + "Actual Startup Time": 1.222, + "Actual Total Time": 1.222, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.591, + "Triggers": [], + "Execution Time": 8.073 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3493.89, + "Total Cost": 3494.01, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 7.591, + "Actual Total Time": 7.598, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3460.14, + "Total Cost": 3496.93, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 6.632, + "Actual Total Time": 7.133, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 542.47, + "Total Cost": 2441.42, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 1.133, + "Actual Total Time": 2.895, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 538.79, + "Plan Rows": 14716, + "Plan Width": 0, + "Actual Startup Time": 1.092, + "Actual Total Time": 1.093, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.382, + "Triggers": [], + "Execution Time": 8.016 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3493.89, + "Total Cost": 3494.01, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 6.743, + "Actual Total Time": 6.75, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3460.14, + "Total Cost": 3496.93, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 5.798, + "Actual Total Time": 6.3, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 542.47, + "Total Cost": 2441.42, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 0.993, + "Actual Total Time": 2.269, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 538.79, + "Plan Rows": 14716, + "Plan Width": 0, + "Actual Startup Time": 0.964, + "Actual Total Time": 0.965, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.382, + "Triggers": [], + "Execution Time": 7.177 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3493.89, + "Total Cost": 3494.01, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 9.364, + "Actual Total Time": 9.374, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3460.14, + "Total Cost": 3496.93, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 7.954, + "Actual Total Time": 8.76, + "Actual Rows": 13550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 2377, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 331, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 542.47, + "Total Cost": 2441.42, + "Plan Rows": 14716, + "Plan Width": 86, + "Actual Startup Time": 1.116, + "Actual Total Time": 3.024, + "Actual Rows": 15000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 215, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 325, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 538.79, + "Plan Rows": 14716, + "Plan Width": 0, + "Actual Startup Time": 1.082, + "Actual Total Time": 1.083, + "Actual Rows": 15000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Shared Hit Blocks": 110, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.547, + "Triggers": [], + "Execution Time": 9.933 + } +] diff --git a/evidence/track2/20261001-c/read-base-small-first.json b/evidence/track2/20261001-c/read-base-small-first.json new file mode 100644 index 00000000..f01cf32e --- /dev/null +++ b/evidence/track2/20261001-c/read-base-small-first.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 32.82, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.073, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3294.08, + "Plan Rows": 5083, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.629, + "Triggers": [], + "Execution Time": 0.142 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 32.82, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3294.08, + "Plan Rows": 5083, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.064, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.508, + "Triggers": [], + "Execution Time": 0.151 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 32.82, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3294.08, + "Plan Rows": 5083, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.511, + "Triggers": [], + "Execution Time": 0.159 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 32.82, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3294.08, + "Plan Rows": 5083, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.402, + "Triggers": [], + "Execution Time": 0.116 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 32.82, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3294.08, + "Plan Rows": 5083, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.057, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.392, + "Triggers": [], + "Execution Time": 0.113 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 32.82, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.057, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3294.08, + "Plan Rows": 5083, + "Plan Width": 86, + "Actual Startup Time": 0.047, + "Actual Total Time": 0.053, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.362, + "Triggers": [], + "Execution Time": 0.111 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 32.82, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.059, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3294.08, + "Plan Rows": 5083, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.054, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.373, + "Triggers": [], + "Execution Time": 0.107 + } +] diff --git a/evidence/track2/20261001-c/read-base-small-late.json b/evidence/track2/20261001-c/read-base-small-late.json new file mode 100644 index 00000000..126bd5be --- /dev/null +++ b/evidence/track2/20261001-c/read-base-small-late.json @@ -0,0 +1,506 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.55, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3262.18, + "Plan Rows": 4513, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.06, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.463, + "Triggers": [], + "Execution Time": 0.122 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.55, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3262.18, + "Plan Rows": 4513, + "Plan Width": 86, + "Actual Startup Time": 0.064, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.431, + "Triggers": [], + "Execution Time": 0.133 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.55, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.077, + "Actual Total Time": 0.085, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3262.18, + "Plan Rows": 4513, + "Plan Width": 86, + "Actual Startup Time": 0.076, + "Actual Total Time": 0.08, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.397, + "Triggers": [], + "Execution Time": 0.14 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.55, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3262.18, + "Plan Rows": 4513, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.058, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.375, + "Triggers": [], + "Execution Time": 0.111 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.55, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.071, + "Actual Total Time": 0.082, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3262.18, + "Plan Rows": 4513, + "Plan Width": 86, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.512, + "Triggers": [], + "Execution Time": 0.149 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.55, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3262.18, + "Plan Rows": 4513, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.058, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.389, + "Triggers": [], + "Execution Time": 0.112 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.55, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 3262.18, + "Plan Rows": 4513, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.058, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 106, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.368, + "Triggers": [], + "Execution Time": 0.112 + } +] diff --git a/evidence/track2/20261001-c/read-base-small-offset.json b/evidence/track2/20261001-c/read-base-small-offset.json new file mode 100644 index 00000000..b527c584 --- /dev/null +++ b/evidence/track2/20261001-c/read-base-small-offset.json @@ -0,0 +1,933 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2290.58, + "Total Cost": 2290.71, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.706, + "Actual Total Time": 2.716, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2279.33, + "Total Cost": 2292.04, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 2.187, + "Actual Total Time": 2.445, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 187.82, + "Total Cost": 1966.37, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 0.344, + "Actual Total Time": 0.806, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 186.55, + "Plan Rows": 5084, + "Plan Width": 0, + "Actual Startup Time": 0.328, + "Actual Total Time": 0.328, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.517, + "Triggers": [], + "Execution Time": 2.94 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2290.58, + "Total Cost": 2290.71, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.606, + "Actual Total Time": 2.613, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2279.33, + "Total Cost": 2292.04, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 2.291, + "Actual Total Time": 2.46, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 187.82, + "Total Cost": 1966.37, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 0.344, + "Actual Total Time": 0.822, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 186.55, + "Plan Rows": 5084, + "Plan Width": 0, + "Actual Startup Time": 0.33, + "Actual Total Time": 0.33, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.436, + "Triggers": [], + "Execution Time": 2.781 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2290.58, + "Total Cost": 2290.71, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.598, + "Actual Total Time": 2.604, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2279.33, + "Total Cost": 2292.04, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 2.285, + "Actual Total Time": 2.452, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 187.82, + "Total Cost": 1966.37, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 0.364, + "Actual Total Time": 0.84, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 186.55, + "Plan Rows": 5084, + "Plan Width": 0, + "Actual Startup Time": 0.344, + "Actual Total Time": 0.344, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.4, + "Triggers": [], + "Execution Time": 2.765 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2290.58, + "Total Cost": 2290.71, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.261, + "Actual Total Time": 3.27, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2279.33, + "Total Cost": 2292.04, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 2.792, + "Actual Total Time": 3.042, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 187.82, + "Total Cost": 1966.37, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 0.356, + "Actual Total Time": 0.974, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 186.55, + "Plan Rows": 5084, + "Plan Width": 0, + "Actual Startup Time": 0.34, + "Actual Total Time": 0.34, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.418, + "Triggers": [], + "Execution Time": 3.45 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2290.58, + "Total Cost": 2290.71, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.274, + "Actual Total Time": 2.28, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2279.33, + "Total Cost": 2292.04, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 1.947, + "Actual Total Time": 2.128, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 187.82, + "Total Cost": 1966.37, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 0.314, + "Actual Total Time": 0.723, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 186.55, + "Plan Rows": 5084, + "Plan Width": 0, + "Actual Startup Time": 0.3, + "Actual Total Time": 0.3, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.384, + "Triggers": [], + "Execution Time": 2.443 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2290.58, + "Total Cost": 2290.71, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.025, + "Actual Total Time": 3.036, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2279.33, + "Total Cost": 2292.04, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 2.62, + "Actual Total Time": 2.857, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 187.82, + "Total Cost": 1966.37, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 0.34, + "Actual Total Time": 0.933, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 186.55, + "Plan Rows": 5084, + "Plan Width": 0, + "Actual Startup Time": 0.324, + "Actual Total Time": 0.326, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.422, + "Triggers": [], + "Execution Time": 3.266 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2290.58, + "Total Cost": 2290.71, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 3.17, + "Actual Total Time": 3.178, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 2279.33, + "Total Cost": 2292.04, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 2.808, + "Actual Total Time": 3.012, + "Actual Rows": 4550, + "Actual Loops": 1, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 857, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 118, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Heap Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 187.82, + "Total Cost": 1966.37, + "Plan Rows": 5084, + "Plan Width": 86, + "Actual Startup Time": 0.449, + "Actual Total Time": 1.054, + "Actual Rows": 5000, + "Actual Loops": 1, + "Recheck Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Exact Heap Blocks": 73, + "Lossy Heap Blocks": 0, + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Bitmap Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Index Name": "messages_history_idx", + "Startup Cost": 0.0, + "Total Cost": 186.55, + "Plan Rows": 5084, + "Plan Width": 0, + "Actual Startup Time": 0.427, + "Actual Total Time": 0.428, + "Actual Rows": 5000, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 107, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.499, + "Triggers": [], + "Execution Time": 3.392 + } +] diff --git a/evidence/track2/20261001-c/read-covering-large-first.json b/evidence/track2/20261001-c/read-covering-large-first.json new file mode 100644 index 00000000..42505c03 --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-large-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.064, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7507.42, + "Plan Rows": 99750, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.067, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.772, + "Triggers": [], + "Execution Time": 0.135 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7507.42, + "Plan Rows": 99750, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.058, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.397, + "Triggers": [], + "Execution Time": 0.116 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7507.42, + "Plan Rows": 99750, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.46, + "Triggers": [], + "Execution Time": 0.124 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.104, + "Actual Total Time": 0.115, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7507.42, + "Plan Rows": 99750, + "Plan Width": 86, + "Actual Startup Time": 0.103, + "Actual Total Time": 0.109, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.384, + "Triggers": [], + "Execution Time": 0.17 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7507.42, + "Plan Rows": 99750, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.063, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.42, + "Triggers": [], + "Execution Time": 0.123 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.067, + "Actual Total Time": 0.075, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7507.42, + "Plan Rows": 99750, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.438, + "Triggers": [], + "Execution Time": 0.132 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7507.42, + "Plan Rows": 99750, + "Plan Width": 86, + "Actual Startup Time": 0.068, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.382, + "Triggers": [], + "Execution Time": 0.156 + } +] diff --git a/evidence/track2/20261001-c/read-covering-large-late.json b/evidence/track2/20261001-c/read-covering-large-late.json new file mode 100644 index 00000000..0eed2a42 --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-large-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.086, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.472, + "Triggers": [], + "Execution Time": 0.16 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.093, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.525, + "Triggers": [], + "Execution Time": 0.147 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.067, + "Actual Total Time": 0.088, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.083, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.481, + "Triggers": [], + "Execution Time": 0.149 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.123, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.073, + "Actual Total Time": 0.117, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.517, + "Triggers": [], + "Execution Time": 0.195 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.104, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.074, + "Actual Total Time": 0.099, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.482, + "Triggers": [], + "Execution Time": 0.167 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.429, + "Triggers": [], + "Execution Time": 0.167 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.049, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 620.82, + "Plan Rows": 8220, + "Plan Width": 86, + "Actual Startup Time": 0.048, + "Actual Total Time": 0.062, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222221'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.09+00'::timestamp with time zone, '1d664eb1-42e9-c630-c739-4623b08094d7'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.393, + "Triggers": [], + "Execution Time": 0.121 + } +] diff --git a/evidence/track2/20261001-c/read-covering-large-offset.json b/evidence/track2/20261001-c/read-covering-large-offset.json new file mode 100644 index 00000000..6aa3b454 --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-large-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6548.15, + "Total Cost": 6551.79, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 17.281, + "Actual Total Time": 17.297, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7258.22, + "Plan Rows": 99760, + "Plan Width": 86, + "Actual Startup Time": 0.067, + "Actual Total Time": 14.298, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.578, + "Triggers": [], + "Execution Time": 17.441 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6548.15, + "Total Cost": 6551.79, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 22.331, + "Actual Total Time": 22.346, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7258.22, + "Plan Rows": 99760, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 18.904, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.435, + "Triggers": [], + "Execution Time": 22.398 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6548.15, + "Total Cost": 6551.79, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 22.815, + "Actual Total Time": 22.826, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7258.22, + "Plan Rows": 99760, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 19.467, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.401, + "Triggers": [], + "Execution Time": 22.872 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6548.15, + "Total Cost": 6551.79, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 20.123, + "Actual Total Time": 20.134, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7258.22, + "Plan Rows": 99760, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 16.784, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.42, + "Triggers": [], + "Execution Time": 20.181 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6548.15, + "Total Cost": 6551.79, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 19.572, + "Actual Total Time": 19.583, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7258.22, + "Plan Rows": 99760, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 16.214, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.389, + "Triggers": [], + "Execution Time": 19.628 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6548.15, + "Total Cost": 6551.79, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.621, + "Actual Total Time": 18.632, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7258.22, + "Plan Rows": 99760, + "Plan Width": 86, + "Actual Startup Time": 0.177, + "Actual Total Time": 15.412, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.571, + "Triggers": [], + "Execution Time": 18.769 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6548.15, + "Total Cost": 6551.79, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 18.335, + "Actual Total Time": 18.346, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 7258.22, + "Plan Rows": 99760, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 15.013, + "Actual Rows": 90050, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222221'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 1237, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.43, + "Triggers": [], + "Execution Time": 18.39 + } +] diff --git a/evidence/track2/20261001-c/read-covering-medium-first.json b/evidence/track2/20261001-c/read-covering-medium-first.json new file mode 100644 index 00000000..c1353845 --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-medium-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1138.62, + "Plan Rows": 15110, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.391, + "Triggers": [], + "Execution Time": 0.13 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.138, + "Actual Total Time": 0.183, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1138.62, + "Plan Rows": 15110, + "Plan Width": 86, + "Actual Startup Time": 0.135, + "Actual Total Time": 0.175, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.765, + "Triggers": [], + "Execution Time": 0.365 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.098, + "Actual Total Time": 0.129, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1138.62, + "Plan Rows": 15110, + "Plan Width": 86, + "Actual Startup Time": 0.096, + "Actual Total Time": 0.124, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.852, + "Triggers": [], + "Execution Time": 0.249 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.187, + "Actual Total Time": 0.25, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1138.62, + "Plan Rows": 15110, + "Plan Width": 86, + "Actual Startup Time": 0.182, + "Actual Total Time": 0.24, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.823, + "Triggers": [], + "Execution Time": 0.51 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.061, + "Actual Total Time": 0.079, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1138.62, + "Plan Rows": 15110, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.517, + "Triggers": [], + "Execution Time": 0.132 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1138.62, + "Plan Rows": 15110, + "Plan Width": 86, + "Actual Startup Time": 0.057, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.45, + "Triggers": [], + "Execution Time": 0.13 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.18, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.138, + "Actual Total Time": 0.167, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1138.62, + "Plan Rows": 15110, + "Plan Width": 86, + "Actual Startup Time": 0.137, + "Actual Total Time": 0.161, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.574, + "Triggers": [], + "Execution Time": 0.253 + } +] diff --git a/evidence/track2/20261001-c/read-covering-medium-late.json b/evidence/track2/20261001-c/read-covering-medium-late.json new file mode 100644 index 00000000..60eabdaf --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-medium-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.092, + "Actual Total Time": 0.115, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.42, + "Plan Rows": 11050, + "Plan Width": 86, + "Actual Startup Time": 0.09, + "Actual Total Time": 0.109, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.446, + "Triggers": [], + "Execution Time": 0.199 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.127, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.42, + "Plan Rows": 11050, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.121, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.403, + "Triggers": [], + "Execution Time": 0.184 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.078, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.42, + "Plan Rows": 11050, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.498, + "Triggers": [], + "Execution Time": 0.138 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.105, + "Actual Total Time": 0.129, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.42, + "Plan Rows": 11050, + "Plan Width": 86, + "Actual Startup Time": 0.104, + "Actual Total Time": 0.124, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.415, + "Triggers": [], + "Execution Time": 0.313 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.42, + "Plan Rows": 11050, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.406, + "Triggers": [], + "Execution Time": 0.129 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.42, + "Plan Rows": 11050, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.065, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.415, + "Triggers": [], + "Execution Time": 0.123 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.051, + "Actual Total Time": 0.071, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 833.42, + "Plan Rows": 11050, + "Plan Width": 86, + "Actual Startup Time": 0.05, + "Actual Total Time": 0.066, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0135+00'::timestamp with time zone, '3ce23fad-998f-354a-bffb-5063eaf8f02a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.38, + "Triggers": [], + "Execution Time": 0.125 + } +] diff --git a/evidence/track2/20261001-c/read-covering-medium-offset.json b/evidence/track2/20261001-c/read-covering-medium-offset.json new file mode 100644 index 00000000..e7858a0c --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-medium-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.49, + "Total Cost": 987.13, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.295, + "Actual Total Time": 2.306, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1100.88, + "Plan Rows": 15112, + "Plan Width": 86, + "Actual Startup Time": 0.09, + "Actual Total Time": 1.854, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.418, + "Triggers": [], + "Execution Time": 2.361 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.49, + "Total Cost": 987.13, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.57, + "Actual Total Time": 2.581, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1100.88, + "Plan Rows": 15112, + "Plan Width": 86, + "Actual Startup Time": 0.072, + "Actual Total Time": 2.12, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.55, + "Triggers": [], + "Execution Time": 2.638 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.49, + "Total Cost": 987.13, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.87, + "Actual Total Time": 2.881, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1100.88, + "Plan Rows": 15112, + "Plan Width": 86, + "Actual Startup Time": 0.108, + "Actual Total Time": 2.383, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.821, + "Triggers": [], + "Execution Time": 2.951 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.49, + "Total Cost": 987.13, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.181, + "Actual Total Time": 2.192, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1100.88, + "Plan Rows": 15112, + "Plan Width": 86, + "Actual Startup Time": 0.082, + "Actual Total Time": 1.724, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.562, + "Triggers": [], + "Execution Time": 2.235 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.49, + "Total Cost": 987.13, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.555, + "Actual Total Time": 2.566, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1100.88, + "Plan Rows": 15112, + "Plan Width": 86, + "Actual Startup Time": 0.115, + "Actual Total Time": 2.083, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.481, + "Triggers": [], + "Execution Time": 2.625 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.49, + "Total Cost": 987.13, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.348, + "Actual Total Time": 2.358, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1100.88, + "Plan Rows": 15112, + "Plan Width": 86, + "Actual Startup Time": 0.085, + "Actual Total Time": 1.876, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.44, + "Triggers": [], + "Execution Time": 2.403 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 983.49, + "Total Cost": 987.13, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 2.135, + "Actual Total Time": 2.146, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1100.88, + "Plan Rows": 15112, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 1.698, + "Actual Rows": 13550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222222'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 190, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.404, + "Triggers": [], + "Execution Time": 2.201 + } +] diff --git a/evidence/track2/20261001-c/read-covering-small-first.json b/evidence/track2/20261001-c/read-covering-small-first.json new file mode 100644 index 00000000..a388e9b3 --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-small-first.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 386.96, + "Plan Rows": 5127, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.39, + "Triggers": [], + "Execution Time": 0.127 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.103, + "Actual Total Time": 0.12, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 386.96, + "Plan Rows": 5127, + "Plan Width": 86, + "Actual Startup Time": 0.101, + "Actual Total Time": 0.115, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.431, + "Triggers": [], + "Execution Time": 0.176 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.081, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 386.96, + "Plan Rows": 5127, + "Plan Width": 86, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.076, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.405, + "Triggers": [], + "Execution Time": 0.136 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.06, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 386.96, + "Plan Rows": 5127, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.07, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.381, + "Triggers": [], + "Execution Time": 0.127 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.091, + "Actual Total Time": 0.121, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 386.96, + "Plan Rows": 5127, + "Plan Width": 86, + "Actual Startup Time": 0.09, + "Actual Total Time": 0.116, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.564, + "Triggers": [], + "Execution Time": 0.191 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 386.96, + "Plan Rows": 5127, + "Plan Width": 86, + "Actual Startup Time": 0.058, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.406, + "Triggers": [], + "Execution Time": 0.128 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.095, + "Actual Total Time": 0.11, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 386.96, + "Plan Rows": 5127, + "Plan Width": 86, + "Actual Startup Time": 0.093, + "Actual Total Time": 0.105, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.531, + "Triggers": [], + "Execution Time": 0.193 + } +] diff --git a/evidence/track2/20261001-c/read-covering-small-late.json b/evidence/track2/20261001-c/read-covering-small-late.json new file mode 100644 index 00000000..e5e8b95f --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-small-late.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.056, + "Actual Total Time": 0.18, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 343.4, + "Plan Rows": 4549, + "Plan Width": 86, + "Actual Startup Time": 0.055, + "Actual Total Time": 0.175, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.434, + "Triggers": [], + "Execution Time": 0.237 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.11, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 343.4, + "Plan Rows": 4549, + "Plan Width": 86, + "Actual Startup Time": 0.068, + "Actual Total Time": 0.104, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.723, + "Triggers": [], + "Execution Time": 0.184 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 343.4, + "Plan Rows": 4549, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.428, + "Triggers": [], + "Execution Time": 0.133 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.084, + "Actual Total Time": 0.118, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 343.4, + "Plan Rows": 4549, + "Plan Width": 86, + "Actual Startup Time": 0.083, + "Actual Total Time": 0.112, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.594, + "Triggers": [], + "Execution Time": 0.209 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.074, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 343.4, + "Plan Rows": 4549, + "Plan Width": 86, + "Actual Startup Time": 0.052, + "Actual Total Time": 0.069, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.773, + "Triggers": [], + "Execution Time": 0.131 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.063, + "Actual Total Time": 0.082, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 343.4, + "Plan Rows": 4549, + "Plan Width": 86, + "Actual Startup Time": 0.062, + "Actual Total Time": 0.077, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.461, + "Triggers": [], + "Execution Time": 0.143 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 4.19, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.054, + "Actual Total Time": 0.072, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 343.4, + "Plan Rows": 4549, + "Plan Width": 86, + "Actual Startup Time": 0.053, + "Actual Total Time": 0.068, + "Actual Rows": 50, + "Actual Loops": 1, + "Index Cond": "((chat_id = '22222222-2222-4222-8222-222222222223'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.0045+00'::timestamp with time zone, '21919306-3e96-9707-0768-3cffae975c19'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 112, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.557, + "Triggers": [], + "Execution Time": 0.128 + } +] diff --git a/evidence/track2/20261001-c/read-covering-small-offset.json b/evidence/track2/20261001-c/read-covering-small-offset.json new file mode 100644 index 00000000..d502471e --- /dev/null +++ b/evidence/track2/20261001-c/read-covering-small-offset.json @@ -0,0 +1,513 @@ +[ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 328.39, + "Total Cost": 332.03, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.762, + "Actual Total Time": 0.772, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 374.16, + "Plan Rows": 5128, + "Plan Width": 86, + "Actual Startup Time": 0.066, + "Actual Total Time": 0.62, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.415, + "Triggers": [], + "Execution Time": 0.814 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 328.39, + "Total Cost": 332.03, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 1.001, + "Actual Total Time": 1.012, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 374.16, + "Plan Rows": 5128, + "Plan Width": 86, + "Actual Startup Time": 0.087, + "Actual Total Time": 0.856, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.525, + "Triggers": [], + "Execution Time": 1.067 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 328.39, + "Total Cost": 332.03, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.95, + "Actual Total Time": 0.96, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 374.16, + "Plan Rows": 5128, + "Plan Width": 86, + "Actual Startup Time": 0.084, + "Actual Total Time": 0.794, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.444, + "Triggers": [], + "Execution Time": 1.002 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 328.39, + "Total Cost": 332.03, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 1.274, + "Actual Total Time": 1.292, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 374.16, + "Plan Rows": 5128, + "Plan Width": 86, + "Actual Startup Time": 0.08, + "Actual Total Time": 1.128, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.534, + "Triggers": [], + "Execution Time": 1.345 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 328.39, + "Total Cost": 332.03, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.827, + "Actual Total Time": 0.836, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 374.16, + "Plan Rows": 5128, + "Plan Width": 86, + "Actual Startup Time": 0.075, + "Actual Total Time": 0.679, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.444, + "Triggers": [], + "Execution Time": 0.879 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 328.39, + "Total Cost": 332.03, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 0.8, + "Actual Total Time": 0.809, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 374.16, + "Plan Rows": 5128, + "Plan Width": 86, + "Actual Startup Time": 0.067, + "Actual Total Time": 0.637, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.573, + "Triggers": [], + "Execution Time": 0.854 + }, + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 328.39, + "Total Cost": 332.03, + "Plan Rows": 50, + "Plan Width": 86, + "Actual Startup Time": 1.122, + "Actual Total Time": 1.136, + "Actual Rows": 50, + "Actual Loops": 1, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Only Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_covering_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 374.16, + "Plan Rows": 5128, + "Plan Width": 86, + "Actual Startup Time": 0.092, + "Actual Total Time": 0.937, + "Actual Rows": 4550, + "Actual Loops": 1, + "Index Cond": "(chat_id = '22222222-2222-4222-8222-222222222223'::uuid)", + "Rows Removed by Index Recheck": 0, + "Heap Fetches": 0, + "Shared Hit Blocks": 66, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 113, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.651, + "Triggers": [], + "Execution Time": 1.195 + } +] diff --git a/evidence/track2/20261001-c/reads.json b/evidence/track2/20261001-c/reads.json new file mode 100644 index 00000000..a0504f17 --- /dev/null +++ b/evidence/track2/20261001-c/reads.json @@ -0,0 +1,218 @@ +[ + { + "name": "read-base-large-first", + "median_ms": 0.111, + "min_ms": 0.093, + "max_ms": 0.155, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-base-large-late", + "median_ms": 0.145, + "min_ms": 0.111, + "max_ms": 0.175, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 6, + "shared_read": 0 + }, + { + "name": "read-base-large-offset", + "median_ms": 18.06, + "min_ms": 16.037, + "max_ms": 23.447, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 90050, + "heap_fetches": null, + "shared_hit": 1933, + "shared_read": 0 + }, + { + "name": "read-base-medium-first", + "median_ms": 0.162, + "min_ms": 0.112, + "max_ms": 0.216, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-base-medium-late", + "median_ms": 0.158, + "min_ms": 0.123, + "max_ms": 0.321, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 6, + "shared_read": 0 + }, + { + "name": "read-base-medium-offset", + "median_ms": 8.073, + "min_ms": 7.084, + "max_ms": 17.063, + "scan": "Bitmap Index Scan", + "index": "messages_history_idx", + "scan_rows": 15000, + "heap_fetches": null, + "shared_hit": 331, + "shared_read": 0 + }, + { + "name": "read-base-small-first", + "median_ms": 0.116, + "min_ms": 0.107, + "max_ms": 0.159, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-base-small-late", + "median_ms": 0.122, + "min_ms": 0.111, + "max_ms": 0.149, + "scan": "Index Scan", + "index": "messages_history_idx", + "scan_rows": 50, + "heap_fetches": null, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-base-small-offset", + "median_ms": 2.94, + "min_ms": 2.443, + "max_ms": 3.45, + "scan": "Bitmap Index Scan", + "index": "messages_history_idx", + "scan_rows": 5000, + "heap_fetches": null, + "shared_hit": 118, + "shared_read": 0 + }, + { + "name": "read-covering-large-first", + "median_ms": 0.132, + "min_ms": 0.116, + "max_ms": 0.17, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 4, + "shared_read": 0 + }, + { + "name": "read-covering-large-late", + "median_ms": 0.16, + "min_ms": 0.121, + "max_ms": 0.195, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-large-offset", + "median_ms": 19.628, + "min_ms": 17.441, + "max_ms": 22.872, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 90050, + "heap_fetches": 0, + "shared_hit": 1237, + "shared_read": 0 + }, + { + "name": "read-covering-medium-first", + "median_ms": 0.249, + "min_ms": 0.13, + "max_ms": 0.51, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-medium-late", + "median_ms": 0.138, + "min_ms": 0.123, + "max_ms": 0.313, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-medium-offset", + "median_ms": 2.403, + "min_ms": 2.201, + "max_ms": 2.951, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 13550, + "heap_fetches": 0, + "shared_hit": 190, + "shared_read": 0 + }, + { + "name": "read-covering-small-first", + "median_ms": 0.136, + "min_ms": 0.127, + "max_ms": 0.193, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-small-late", + "median_ms": 0.143, + "min_ms": 0.128, + "max_ms": 0.237, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 50, + "heap_fetches": 0, + "shared_hit": 5, + "shared_read": 0 + }, + { + "name": "read-covering-small-offset", + "median_ms": 1.002, + "min_ms": 0.814, + "max_ms": 1.345, + "scan": "Index Only Scan", + "index": "messages_history_covering_idx", + "scan_rows": 4550, + "heap_fetches": 0, + "shared_hit": 66, + "shared_read": 0 + } +] diff --git a/evidence/track2/20261001-c/recovery.json b/evidence/track2/20261001-c/recovery.json new file mode 100644 index 00000000..ef96207b --- /dev/null +++ b/evidence/track2/20261001-c/recovery.json @@ -0,0 +1,52 @@ +{ + "dump_seconds": 1.6488487130118301, + "dump_bytes": 3613568, + "dump_sha256": "9a122dacc08103b96c8a611fe99e8705336befc74aea4c69a82b42ead9d00264", + "restore_seconds": 2.0262277989968425, + "startup_restore_verify_seconds": 27.81630390700593, + "expected": { + "counts": { + "users": 1, + "chats": 3, + "chat_members": 3, + "messages": 120000, + "schema_migrations": 1 + }, + "distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000", + "samples": [ + "{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}", + "{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}", + "{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}", + "{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}", + "{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}", + "{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}" + ] + }, + "actual": { + "counts": { + "users": 1, + "chats": 3, + "chat_members": 3, + "messages": 120000, + "schema_migrations": 1 + }, + "distribution": "22222222-2222-4222-8222-222222222221|100000\n22222222-2222-4222-8222-222222222222|15000\n22222222-2222-4222-8222-222222222223|5000", + "samples": [ + "{\"id\":\"86df7685-58d6-bf77-98a5-5f693ad7a610\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in large\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"5066486c-6b59-e258-0fe6-c29dab4fee17\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 50001 in large\",\"created_at\":\"2026-01-01T00:00:00.050001+00:00\"}", + "{\"id\":\"6879ac46-9457-ef70-838b-c6792908827d\",\"chat_id\":\"22222222-2222-4222-8222-222222222221\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 100000 in large\",\"created_at\":\"2026-01-01T00:00:00.1+00:00\"}", + "{\"id\":\"994002fe-f9b8-8061-d2c7-245625ce6e0c\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in medium\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"1fcd94de-441b-a2d7-f450-46a0cb19f22b\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 7501 in medium\",\"created_at\":\"2026-01-01T00:00:00.007501+00:00\"}", + "{\"id\":\"3394d288-436f-39af-d357-e5c05ac87275\",\"chat_id\":\"22222222-2222-4222-8222-222222222222\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 15000 in medium\",\"created_at\":\"2026-01-01T00:00:00.015+00:00\"}", + "{\"id\":\"dd2f08c9-6b6a-cd79-a05d-284c0e30ceca\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 1 in small\",\"created_at\":\"2026-01-01T00:00:00.000001+00:00\"}", + "{\"id\":\"c708ea44-eca6-fd26-aada-9e382df88db4\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 2501 in small\",\"created_at\":\"2026-01-01T00:00:00.002501+00:00\"}", + "{\"id\":\"8a4a4601-9d78-252c-8d95-2b34691cb6b9\",\"chat_id\":\"22222222-2222-4222-8222-222222222223\",\"sender_id\":\"11111111-1111-4111-8111-111111111111\",\"text\":\"Track 2 message 5000 in small\",\"created_at\":\"2026-01-01T00:00:00.005+00:00\"}" + ] + }, + "match": true, + "marker_source": 1, + "marker_restore": 0 +} diff --git a/evidence/track2/20261001-c/run-output.txt b/evidence/track2/20261001-c/run-output.txt new file mode 100644 index 00000000..bbebdfbc --- /dev/null +++ b/evidence/track2/20261001-c/run-output.txt @@ -0,0 +1,6 @@ +python3 src/experiments/track2/run.py run --run-id "20261001-c" +Starting isolated source database +Read measurements complete: base +Read measurements complete: covering +Creating backup and restoring into a new volume +PASS: messenger-track2-20261001-c; evidence: /mnt/c/projects/Highload-systems/mtusi2026lab2-fork/evidence/track2/20261001-c diff --git a/evidence/track2/20261001-c/sizes.json b/evidence/track2/20261001-c/sizes.json new file mode 100644 index 00000000..0b99748c --- /dev/null +++ b/evidence/track2/20261001-c/sizes.json @@ -0,0 +1,10 @@ +{ + "base": { + "table_bytes": 14049280, + "index_bytes": 7086080 + }, + "covering": { + "table_bytes": 14049280, + "index_bytes": 13574144 + } +} diff --git a/evidence/track2/20261001-c/write-base.json b/evidence/track2/20261001-c/write-base.json new file mode 100644 index 00000000..12486e10 --- /dev/null +++ b/evidence/track2/20261001-c/write-base.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 52.204, + "Actual Total Time": 52.208, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.989, + "Actual Total Time": 4.975, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.874, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.299, + "Triggers": [], + "Execution Time": 52.544 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 48.414, + "Actual Total Time": 48.415, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.824, + "Actual Total Time": 5.725, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.017, + "Actual Total Time": 1.015, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.296, + "Triggers": [], + "Execution Time": 48.76 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 49.348, + "Actual Total Time": 49.35, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.756, + "Actual Total Time": 4.647, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.017, + "Actual Total Time": 0.877, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.311, + "Triggers": [], + "Execution Time": 50.063 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 43.243, + "Actual Total Time": 43.245, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.984, + "Actual Total Time": 4.734, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.018, + "Actual Total Time": 0.886, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.321, + "Triggers": [], + "Execution Time": 43.652 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 43.769, + "Actual Total Time": 43.771, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.701, + "Actual Total Time": 4.376, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.943, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.297, + "Triggers": [], + "Execution Time": 44.132 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 61.93, + "Actual Total Time": 61.932, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.563, + "Actual Total Time": 4.507, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.016, + "Actual Total Time": 0.8, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.33, + "Triggers": [], + "Execution Time": 62.255 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 47.142, + "Actual Total Time": 47.146, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50217, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 269, + "Shared Written Blocks": 269, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30121, + "WAL FPI": 0, + "WAL Bytes": 3343720, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.688, + "Actual Total Time": 4.426, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.017, + "Actual Total Time": 0.835, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.449, + "Triggers": [], + "Execution Time": 47.509 + } +] diff --git a/evidence/track2/20261001-c/write-covering.json b/evidence/track2/20261001-c/write-covering.json new file mode 100644 index 00000000..1242bf31 --- /dev/null +++ b/evidence/track2/20261001-c/write-covering.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 46.234, + "Actual Total Time": 46.236, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.591, + "Actual Total Time": 4.562, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.797, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.283, + "Triggers": [], + "Execution Time": 46.544 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 47.509, + "Actual Total Time": 47.51, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.304, + "Actual Total Time": 5.167, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.02, + "Actual Total Time": 0.981, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.646, + "Triggers": [], + "Execution Time": 47.94 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 45.951, + "Actual Total Time": 45.953, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50364, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.759, + "Actual Total Time": 5.584, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.021, + "Actual Total Time": 1.14, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.407, + "Triggers": [], + "Execution Time": 46.269 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 51.278, + "Actual Total Time": 51.28, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.632, + "Actual Total Time": 4.602, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.866, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.308, + "Triggers": [], + "Execution Time": 51.712 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 48.958, + "Actual Total Time": 48.959, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.518, + "Actual Total Time": 4.318, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.803, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.296, + "Triggers": [], + "Execution Time": 49.295 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 44.771, + "Actual Total Time": 44.773, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.46, + "Actual Total Time": 4.163, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.769, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.296, + "Triggers": [], + "Execution Time": 45.408 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 44.825, + "Actual Total Time": 44.827, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 50365, + "Shared Read Blocks": 2, + "Shared Dirtied Blocks": 336, + "Shared Written Blocks": 336, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 30188, + "WAL FPI": 0, + "WAL Bytes": 3897536, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.539, + "Actual Total Time": 4.378, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.778, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.386, + "Triggers": [], + "Execution Time": 45.157 + } +] diff --git a/evidence/track2/20261001-c/write-none.json b/evidence/track2/20261001-c/write-none.json new file mode 100644 index 00000000..4617487d --- /dev/null +++ b/evidence/track2/20261001-c/write-none.json @@ -0,0 +1,800 @@ +[ + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 31.167, + "Actual Total Time": 31.169, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.841, + "Actual Total Time": 4.476, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.018, + "Actual Total Time": 1.038, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.33, + "Triggers": [], + "Execution Time": 31.466 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 34.017, + "Actual Total Time": 34.019, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30326, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 1248.0, + "Total Cost": 1281.6, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 3.711, + "Actual Total Time": 4.398, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 198, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 326.4, + "Plan Rows": 13440, + "Plan Width": 88, + "Actual Startup Time": 0.015, + "Actual Total Time": 1.009, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 192, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.275, + "Triggers": [], + "Execution Time": 34.365 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 32.233, + "Actual Total Time": 32.235, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30277, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 3.418, + "Actual Total Time": 4.196, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.792, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.322, + "Triggers": [], + "Execution Time": 32.743 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 35.568, + "Actual Total Time": 35.569, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30277, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.0, + "Actual Total Time": 4.813, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.02, + "Actual Total Time": 0.889, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.286, + "Triggers": [], + "Execution Time": 35.912 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 32.215, + "Actual Total Time": 32.216, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30277, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.242, + "Actual Total Time": 5.036, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.019, + "Actual Total Time": 0.967, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.493, + "Triggers": [], + "Execution Time": 32.565 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 33.892, + "Actual Total Time": 33.895, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30277, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.097, + "Actual Total Time": 5.018, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.016, + "Actual Total Time": 1.012, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.315, + "Triggers": [], + "Execution Time": 34.362 + }, + { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_bench", + "Alias": "write_bench", + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 35.442, + "Actual Total Time": 35.444, + "Actual Rows": 0, + "Actual Loops": 1, + "Shared Hit Blocks": 30277, + "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 195, + "Shared Written Blocks": 196, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 20049, + "WAL FPI": 0, + "WAL Bytes": 2319396, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 907.39, + "Total Cost": 932.39, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 4.514, + "Actual Total Time": 5.261, + "Actual Rows": 10000, + "Actual Loops": 1, + "Sort Key": [ + "write_input.chat_id", + "write_input.created_at", + "write_input.id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 1478, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 149, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "write_input", + "Alias": "write_input", + "Startup Cost": 0.0, + "Total Cost": 243.0, + "Plan Rows": 10000, + "Plan Width": 85, + "Actual Startup Time": 0.018, + "Actual Total Time": 1.072, + "Actual Rows": 10000, + "Actual Loops": 1, + "Shared Hit Blocks": 143, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "WAL Records": 0, + "WAL FPI": 0, + "WAL Bytes": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 53, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.366, + "Triggers": [], + "Execution Time": 35.797 + } +] diff --git a/evidence/track2/20261001-c/writes.json b/evidence/track2/20261001-c/writes.json new file mode 100644 index 00000000..727e1ebd --- /dev/null +++ b/evidence/track2/20261001-c/writes.json @@ -0,0 +1,26 @@ +[ + { + "variant": "none", + "median_ms": 34.362, + "min_ms": 31.466, + "max_ms": 35.912, + "median_wal_bytes": 2319396, + "index_bytes": 417792 + }, + { + "variant": "base", + "median_ms": 48.76, + "min_ms": 43.652, + "max_ms": 62.255, + "median_wal_bytes": 3343720, + "index_bytes": 1024000 + }, + { + "variant": "covering", + "median_ms": 46.544, + "min_ms": 45.157, + "max_ms": 51.712, + "median_wal_bytes": 3897536, + "index_bytes": 1572864 + } +] diff --git a/evidence/track2/repeatability.json b/evidence/track2/repeatability.json new file mode 100644 index 00000000..585438bb --- /dev/null +++ b/evidence/track2/repeatability.json @@ -0,0 +1,31 @@ +{ + "runs": [ + "20261001-a", + "20261001-b", + "20261001-c" + ], + "counts_distribution_and_nine_samples_identical": true, + "archives": [ + { + "run_id": "20261001-a", + "measured_plans": 147, + "medians_match_raw_plans": true, + "archive_sha256_matches": true, + "restored_snapshot_matches": true + }, + { + "run_id": "20261001-b", + "measured_plans": 147, + "medians_match_raw_plans": true, + "archive_sha256_matches": true, + "restored_snapshot_matches": true + }, + { + "run_id": "20261001-c", + "measured_plans": 147, + "medians_match_raw_plans": true, + "archive_sha256_matches": true, + "restored_snapshot_matches": true + } + ] +} diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..8a8c1c6a --- /dev/null +++ b/go.mod @@ -0,0 +1,26 @@ +module messenger + +go 1.22.2 + +require ( + github.com/golang-migrate/migrate/v4 v4.17.1 + github.com/google/uuid v1.6.0 + github.com/jackc/pgx/v5 v5.5.5 + github.com/redis/go-redis/v9 v9.17.3 + golang.org/x/crypto v0.22.0 +) + +require ( + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa // indirect + github.com/jackc/pgpassfile v1.0.0 // indirect + github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect + github.com/jackc/puddle/v2 v2.2.1 // indirect + go.uber.org/atomic v1.7.0 // indirect + golang.org/x/sync v0.5.0 // indirect + golang.org/x/sys v0.19.0 // indirect + golang.org/x/text v0.14.0 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..048dc4c9 --- /dev/null +++ b/go.sum @@ -0,0 +1,87 @@ +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= +github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= +github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= +github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= +github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= +github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= +github.com/dhui/dktest v0.4.1 h1:/w+IWuDXVymg3IrRJCHHOkMK10m9aNVMOyD0X12YVTg= +github.com/dhui/dktest v0.4.1/go.mod h1:DdOqcUpL7vgyP4GlF3X3w7HbSlz8cEQzwewPveYEQbA= +github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= +github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v24.0.9+incompatible h1:HPGzNmwfLZWdxHqK9/II92pyi1EpYKsAqcl4G0Of9v0= +github.com/docker/docker v24.0.9+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-migrate/migrate/v4 v4.17.1 h1:4zQ6iqL6t6AiItphxJctQb3cFqWiSpMnX7wLTPnnYO4= +github.com/golang-migrate/migrate/v4 v4.17.1/go.mod h1:m8hinFyWBn0SA4QKHuKh175Pm9wjmxj3S2Mia7dbXzM= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa h1:s+4MhCQ6YrzisK6hFJUX53drDT4UsSW3DEhKn0ifuHw= +github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa/go.mod h1:a/s9Lp5W7n/DD0VrVoyJ00FbP2ytTPDVOivvn2bMlds= +github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= +github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= +github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk= +github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= +github.com/jackc/pgx/v5 v5.5.5 h1:amBjrZVmksIdNjxGW/IiIMzxMKZFelXbUoPNb+8sjQw= +github.com/jackc/pgx/v5 v5.5.5/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A= +github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk= +github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= +github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= +github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM= +github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/redis/go-redis/v9 v9.17.3 h1:fN29NdNrE17KttK5Ndf20buqfDZwGNgoUr9qjl1DQx4= +github.com/redis/go-redis/v9 v9.17.3/go.mod h1:u410H11HMLoB+TP67dz8rL9s6QW2j76l0//kSOd3370= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU= +golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/tools v0.10.0 h1:tvDr/iQoUqNdohiYm0LmmKcBk+q86lb9EprIUFhHHGg= +golang.org/x/tools v0.10.0/go.mod h1:UJwyiVBsOA2uwvK/e5OY3GTpDUJriEd+/YlqAwLPmyM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/scripts/restart.sh b/scripts/restart.sh new file mode 100755 index 00000000..a4743836 --- /dev/null +++ b/scripts/restart.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu +cd "$(dirname "$0")/.." +docker compose --env-file .env restart db redis >/dev/null +docker compose --env-file .env up -d --wait db redis >/dev/null +docker compose --env-file .env restart api >/dev/null +docker compose --env-file .env up -d --wait >/dev/null diff --git a/src/backend/handlers/chat_http.go b/src/backend/handlers/chat_http.go new file mode 100644 index 00000000..ef5edf8f --- /dev/null +++ b/src/backend/handlers/chat_http.go @@ -0,0 +1,128 @@ +package handlers + +import ( + "net/http" + "strings" + + "github.com/google/uuid" + "messenger/src/backend/services" +) + +type createChatRequest struct { + Title string `json:"title"` + MemberIDs []string `json:"member_ids"` +} + +func createChatHandler(chats *services.ChatService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodPost { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + userID, ok := requestUserID(w, r, requestID) + if !ok { + return + } + if !strings.HasPrefix(r.Header.Get("Content-Type"), "application/json") { + writeError(w, 415, "unsupported_media_type", "content type must be application/json", requestID) + return + } + var request createChatRequest + if err := decodeJSONBody(r, &request); err != nil { + writeError(w, 400, "invalid_request", "invalid JSON body", requestID) + return + } + chat, err := chats.Create(r.Context(), userID, request.Title, request.MemberIDs) + if err != nil { + writeServiceError(w, err, requestID) + return + } + writeJSON(w, 201, chat) + } +} + +func getChatHandler(chats *services.ChatService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodGet { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + userID, ok := requestUserID(w, r, requestID) + if !ok { + return + } + chatID := strings.TrimPrefix(r.URL.Path, "/api/v1/chats/") + if chatID == "" || strings.Contains(chatID, "/") { + writeError(w, 400, "invalid_request", "invalid chat id", requestID) + return + } + if _, err := uuid.Parse(chatID); err != nil { + writeError(w, 400, "invalid_request", "invalid chat id", requestID) + return + } + chat, err := chats.Get(r.Context(), userID, chatID) + if err != nil { + writeServiceError(w, err, requestID) + return + } + writeJSON(w, 200, chat) + } +} + +func listChatsHandler(chats *services.ChatService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodGet { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + userID, ok := requestUserID(w, r, requestID) + if !ok { + return + } + limit, cursor, ok := pageParams(w, r, requestID) + if !ok { + return + } + page, err := chats.List(r.Context(), userID, limit, cursor) + if err != nil { + writeServiceError(w, err, requestID) + return + } + writeJSON(w, 200, page) + } +} + +func chatCollectionHandler(chats *services.ChatService) http.HandlerFunc { + create := createChatHandler(chats) + list := listChatsHandler(chats) + return func(w http.ResponseWriter, r *http.Request) { + if r.Method == http.MethodGet { + list(w, r) + } else { + create(w, r) + } + } +} + +func chatSubresourceHandler(chats *services.ChatService, messages *services.MessageService) http.HandlerFunc { + get := getChatHandler(chats) + createMessage := createMessageHandler(chats, messages) + listMessages := listMessagesHandler(chats, messages) + return func(w http.ResponseWriter, r *http.Request) { + if strings.HasSuffix(r.URL.Path, "/messages") { + if r.Method == http.MethodGet { + listMessages(w, r) + } else { + createMessage(w, r) + } + return + } + get(w, r) + } +} diff --git a/src/backend/handlers/http.go b/src/backend/handlers/http.go new file mode 100644 index 00000000..6efd7ef5 --- /dev/null +++ b/src/backend/handlers/http.go @@ -0,0 +1,143 @@ +package handlers + +import ( + "context" + "crypto/rand" + "encoding/hex" + "encoding/json" + "errors" + "log" + "net/http" + "strconv" + "time" + + "messenger/src/backend/services" +) + +type healthResponse struct { + Status string `json:"status"` +} +type apiError struct { + Code string `json:"code"` + Message string `json:"message"` + RequestID string `json:"request_id"` +} +type errorResponse struct { + Error apiError `json:"error"` +} + +func newRequestID() string { + bytes := make([]byte, 16) + if _, err := rand.Read(bytes); err != nil { + return "request-id-generation-failed" + } + return hex.EncodeToString(bytes) +} + +func writeError(w http.ResponseWriter, status int, code, message, requestID string) { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(status) + response := errorResponse{Error: apiError{Code: code, Message: message, RequestID: requestID}} + if err := json.NewEncoder(w).Encode(response); err != nil { + log.Printf("failed to encode error response: %v", err) + } +} + +func writeServiceError(w http.ResponseWriter, err error, requestID string) { + var invalid services.InvalidInput + switch { + case errors.As(err, &invalid): + writeError(w, 400, "invalid_request", invalid.Message, requestID) + case errors.Is(err, services.ErrConflict): + writeError(w, 409, "conflict", "username is already taken", requestID) + case errors.Is(err, services.ErrUnknownUser): + writeError(w, 401, "unauthorized", "unknown user", requestID) + case errors.Is(err, services.ErrChatNotFound): + writeError(w, 404, "not_found", "chat not found", requestID) + default: + writeError(w, 503, "unavailable", "dependency unavailable", requestID) + } +} + +func writeJSON(w http.ResponseWriter, status int, value any) { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(status) + if err := json.NewEncoder(w).Encode(value); err != nil { + log.Printf("failed to encode response: %v", err) + } +} + +func requestUserID(w http.ResponseWriter, r *http.Request, requestID string) (string, bool) { + id := currentUserID(r) + if id == "" { + writeError(w, 401, "unauthorized", "valid Bearer session is required", requestID) + return "", false + } + return id, true +} + +func pageParams(w http.ResponseWriter, r *http.Request, requestID string) (int, string, bool) { + limit := 50 + if values, exists := r.URL.Query()["limit"]; exists { + if len(values) != 1 || values[0] == "" { + writeError(w, 400, "invalid_request", "invalid limit", requestID) + return 0, "", false + } + parsed, err := strconv.Atoi(values[0]) + if err != nil { + writeError(w, 400, "invalid_request", "limit must be between 1 and 100", requestID) + return 0, "", false + } + limit = parsed + } + var cursor string + if values, exists := r.URL.Query()["cursor"]; exists { + if len(values) != 1 || values[0] == "" { + writeError(w, 400, "invalid_request", "invalid cursor", requestID) + return 0, "", false + } + cursor = values[0] + } + return limit, cursor, true +} + +func healthHandler(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodGet { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + writeJSON(w, 200, healthResponse{"ok"}) +} + +func readyHandler(health *services.HealthService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodGet { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + ctx, cancel := context.WithTimeout(r.Context(), 2*time.Second) + defer cancel() + if err := health.Ready(ctx); err != nil { + writeError(w, 503, "unavailable", "dependency unavailable", requestID) + return + } + writeJSON(w, 200, healthResponse{"ok"}) + } +} + +func NewRouter(health *services.HealthService, users *services.UserService, sessions *services.SessionService, chats *services.ChatService, messages *services.MessageService) http.Handler { + mux := http.NewServeMux() + mux.HandleFunc("/health/live", healthHandler) + mux.HandleFunc("/health/ready", readyHandler(health)) + mux.Handle("/api/v1/users", createUserHandler(users)) + mux.Handle("/api/v1/auth/sessions", sessionHandler(sessions)) + mux.Handle("/api/v1/auth/sessions/current", authRequired(sessions, logoutHandler(sessions))) + mux.Handle("/api/v1/users/me", authRequired(sessions, currentUserHandler(users))) + mux.Handle("/api/v1/chats", authRequired(sessions, chatCollectionHandler(chats))) + mux.Handle("/api/v1/chats/", authRequired(sessions, chatSubresourceHandler(chats, messages))) + return mux +} diff --git a/src/backend/handlers/message_http.go b/src/backend/handlers/message_http.go new file mode 100644 index 00000000..d42ca6ab --- /dev/null +++ b/src/backend/handlers/message_http.go @@ -0,0 +1,109 @@ +package handlers + +import ( + "net/http" + "strings" + + "github.com/google/uuid" + "messenger/src/backend/services" +) + +type createMessageRequest struct { + Text string `json:"text"` +} + +func messageChatID(path string) (string, bool) { + const prefix = "/api/v1/chats/" + const suffix = "/messages" + if !strings.HasPrefix(path, prefix) || !strings.HasSuffix(path, suffix) { + return "", false + } + chatID := strings.TrimSuffix(strings.TrimPrefix(path, prefix), suffix) + if chatID == "" || strings.Contains(chatID, "/") { + return "", false + } + return chatID, true +} + +func createMessageHandler(chats *services.ChatService, messages *services.MessageService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodPost { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + userID, ok := requestUserID(w, r, requestID) + if !ok { + return + } + chatID, ok := messageChatID(r.URL.Path) + if !ok { + writeError(w, 400, "invalid_request", "invalid chat id", requestID) + return + } + if _, err := uuid.Parse(chatID); err != nil { + writeError(w, 400, "invalid_request", "invalid chat id", requestID) + return + } + chat, err := chats.Get(r.Context(), userID, chatID) + if err != nil { + writeServiceError(w, err, requestID) + return + } + if !strings.HasPrefix(r.Header.Get("Content-Type"), "application/json") { + writeError(w, 415, "unsupported_media_type", "content type must be application/json", requestID) + return + } + var request createMessageRequest + if err := decodeJSONBody(r, &request); err != nil { + writeError(w, 400, "invalid_request", "invalid JSON body", requestID) + return + } + message, err := messages.Create(r.Context(), userID, chat, request.Text) + if err != nil { + writeServiceError(w, err, requestID) + return + } + writeJSON(w, 201, message) + } +} + +func listMessagesHandler(chats *services.ChatService, messages *services.MessageService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodGet { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + userID, ok := requestUserID(w, r, requestID) + if !ok { + return + } + chatID, ok := messageChatID(r.URL.Path) + if !ok { + writeError(w, 400, "invalid_request", "invalid chat id", requestID) + return + } + if _, err := uuid.Parse(chatID); err != nil { + writeError(w, 400, "invalid_request", "invalid chat id", requestID) + return + } + chat, err := chats.Get(r.Context(), userID, chatID) + if err != nil { + writeServiceError(w, err, requestID) + return + } + limit, cursor, ok := pageParams(w, r, requestID) + if !ok { + return + } + page, err := messages.List(r.Context(), userID, chat, limit, cursor) + if err != nil { + writeServiceError(w, err, requestID) + return + } + writeJSON(w, 200, page) + } +} diff --git a/src/backend/handlers/session.go b/src/backend/handlers/session.go new file mode 100644 index 00000000..6a9d4c3e --- /dev/null +++ b/src/backend/handlers/session.go @@ -0,0 +1,98 @@ +package handlers + +import ( + "context" + "errors" + "net/http" + "strings" + "time" + + "messenger/src/backend/services" +) + +type authenticatedUserKey struct{} + +func currentUserID(r *http.Request) string { + id, _ := r.Context().Value(authenticatedUserKey{}).(string) + return id +} + +func authRequired(sessions *services.SessionService, next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + authorization := r.Header.Get("Authorization") + if !strings.HasPrefix(authorization, "Bearer ") || strings.TrimSpace(strings.TrimPrefix(authorization, "Bearer ")) == "" { + unauthorized(w, "Bearer", newRequestID()) + return + } + user, err := sessions.User(r.Context(), strings.TrimPrefix(authorization, "Bearer ")) + if errors.Is(err, services.ErrInvalidSession) { + unauthorized(w, "Bearer", newRequestID()) + return + } + if err != nil { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + writeError(w, 503, "unavailable", "dependency unavailable", requestID) + return + } + next.ServeHTTP(w, r.WithContext(context.WithValue(r.Context(), authenticatedUserKey{}, user.ID))) + }) +} + +func unauthorized(w http.ResponseWriter, scheme, requestID string) { + w.Header().Set("X-Request-Id", requestID) + if scheme == "Basic" { + w.Header().Set("WWW-Authenticate", `Basic realm="messenger", charset="UTF-8"`) + } else { + w.Header().Set("WWW-Authenticate", `Bearer realm="messenger"`) + } + writeError(w, 401, "unauthorized", "invalid credentials", requestID) +} + +func sessionHandler(sessions *services.SessionService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodPost { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + username, password, ok := r.BasicAuth() + if !ok || r.ContentLength > 0 { + unauthorized(w, "Basic", requestID) + return + } + user, token, expires, valid, err := sessions.Login(r.Context(), username, password) + if err != nil { + writeError(w, 503, "unavailable", "dependency unavailable", requestID) + return + } + if !valid { + unauthorized(w, "Basic", requestID) + return + } + writeJSON(w, 201, struct { + Token string `json:"token"` + TokenType string `json:"token_type"` + ExpiresAt time.Time `json:"expires_at"` + User any `json:"user"` + }{token, "Bearer", expires, user}) + } +} + +func logoutHandler(sessions *services.SessionService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodDelete { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + token := strings.TrimPrefix(r.Header.Get("Authorization"), "Bearer ") + if err := sessions.Revoke(r.Context(), token); err != nil { + writeError(w, 503, "unavailable", "dependency unavailable", requestID) + return + } + w.WriteHeader(204) + } +} diff --git a/src/backend/handlers/user_http.go b/src/backend/handlers/user_http.go new file mode 100644 index 00000000..e298f48f --- /dev/null +++ b/src/backend/handlers/user_http.go @@ -0,0 +1,80 @@ +package handlers + +import ( + "encoding/json" + "fmt" + "io" + "net/http" + "strings" + + "messenger/src/backend/services" +) + +type createUserRequest struct { + Username string `json:"username"` + DisplayName string `json:"display_name"` + Password string `json:"password"` +} + +func decodeJSONBody(r *http.Request, destination any) error { + decoder := json.NewDecoder(r.Body) + decoder.DisallowUnknownFields() + if err := decoder.Decode(destination); err != nil { + return err + } + var extra any + if err := decoder.Decode(&extra); err != io.EOF { + if err != nil { + return err + } + return fmt.Errorf("more than one JSON value") + } + return nil +} + +func createUserHandler(users *services.UserService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodPost { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + if !strings.HasPrefix(r.Header.Get("Content-Type"), "application/json") { + writeError(w, 415, "unsupported_media_type", "content type must be application/json", requestID) + return + } + var request createUserRequest + if err := decodeJSONBody(r, &request); err != nil { + writeError(w, 400, "invalid_request", "invalid JSON body", requestID) + return + } + user, err := users.Create(r.Context(), request.Username, request.DisplayName, request.Password) + if err != nil { + writeServiceError(w, err, requestID) + return + } + writeJSON(w, 201, user) + } +} + +func currentUserHandler(users *services.UserService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + requestID := newRequestID() + w.Header().Set("X-Request-Id", requestID) + if r.Method != http.MethodGet { + writeError(w, 405, "method_not_allowed", "method not allowed", requestID) + return + } + userID, ok := requestUserID(w, r, requestID) + if !ok { + return + } + user, err := users.Get(r.Context(), userID) + if err != nil { + writeServiceError(w, err, requestID) + return + } + writeJSON(w, 200, user) + } +} diff --git a/src/backend/main.go b/src/backend/main.go new file mode 100644 index 00000000..c1246ae0 --- /dev/null +++ b/src/backend/main.go @@ -0,0 +1,133 @@ +package main + +import ( + "context" + "errors" + "log" + "messenger/src/backend/handlers" + "messenger/src/backend/repositories" + "messenger/src/backend/services" + "net" + "net/http" + "os" + "os/signal" + "syscall" + "time" +) + +func serverAddress() string { + host := os.Getenv("APP_HOST") + if host == "" { + host = "0.0.0.0" + } + + port := os.Getenv("APP_PORT") + if port == "" { + port = "8080" + } + + return net.JoinHostPort(host, port) +} + +func main() { + if len(os.Args) > 1 { + if len(os.Args) == 2 && os.Args[1] == "healthcheck" { + client := http.Client{Timeout: 2 * time.Second} + response, err := client.Get("http://127.0.0.1:8080/health/ready") + if err != nil { + os.Exit(1) + } + response.Body.Close() + if response.StatusCode != http.StatusOK { + os.Exit(1) + } + return + } + if len(os.Args) != 3 || os.Args[1] != "migrate" || (os.Args[2] != "up" && os.Args[2] != "down") { + log.Fatal("usage: messenger migrate up|down") + } + url, err := repositories.DatabaseURL() + if err != nil { + log.Fatal(err) + } + if err = repositories.RunMigrations(url, os.Args[2]); err != nil { + log.Fatal(err) + } + log.Printf("migration %s complete", os.Args[2]) + return + } + ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) + db, err := repositories.OpenDatabase(ctx) + cancel() + if err != nil { + log.Fatalf("database initialization failed: %v", err) + } + defer db.Close() + redisAddress := os.Getenv("REDIS_ADDR") + if redisAddress == "" { + redisAddress = "redis:6379" + } + redisClient := repositories.NewRedisClient(redisAddress) + defer redisClient.Close() + sessionStore := repositories.NewSessionStore(redisClient, "messenger:session:") + userStore := repositories.NewUserStore(db) + chatStore := repositories.NewChatStore(db) + messageStore := repositories.NewMessageStore(db) + ttl, err := services.SessionTTL() + if err != nil { + log.Fatal(err) + } + userService := services.NewUserService(userStore) + sessionService := services.NewSessionService(userService, sessionStore, ttl) + chatService := services.NewChatService(chatStore) + messageService := services.NewMessageService(messageStore) + mux := handlers.NewRouter(services.NewHealthService(repositories.NewHealthStore(db), sessionStore), userService, sessionService, chatService, messageService) + + server := &http.Server{ + Addr: serverAddress(), + Handler: mux, + ReadHeaderTimeout: 5 * time.Second, + ReadTimeout: 10 * time.Second, + WriteTimeout: 10 * time.Second, + IdleTimeout: 60 * time.Second, + } + + shutdownContext, stop := signal.NotifyContext( + context.Background(), + os.Interrupt, + syscall.SIGTERM, + ) + defer stop() + + serverErrors := make(chan error, 1) + + go func() { + log.Printf("server is listening on %s", server.Addr) + + if err := server.ListenAndServe(); err != nil && + !errors.Is(err, http.ErrServerClosed) { + serverErrors <- err + } + }() + + select { + case err := <-serverErrors: + log.Printf("server error: %v", err) + + case <-shutdownContext.Done(): + log.Printf("shutdown signal received") + + shutdownDeadline, cancel := context.WithTimeout( + context.Background(), + 10*time.Second, + ) + defer cancel() + + if err := server.Shutdown(shutdownDeadline); err != nil { + log.Printf("graceful shutdown failed: %v", err) + return + } + + log.Printf("server stopped gracefully") + } +} diff --git a/src/backend/repositories/chat.go b/src/backend/repositories/chat.go new file mode 100644 index 00000000..8756b3f6 --- /dev/null +++ b/src/backend/repositories/chat.go @@ -0,0 +1,129 @@ +package repositories + +import ( + "context" + "errors" + "time" + + "github.com/google/uuid" + "github.com/jackc/pgx/v5/pgxpool" +) + +type Chat struct { + ID string `json:"id"` + Title string `json:"title"` + MemberIDs []string `json:"member_ids"` + CreatedAt time.Time `json:"created_at"` +} + +type ChatStore struct { + db *pgxpool.Pool +} + +func NewChatStore(db *pgxpool.Pool) *ChatStore { + return &ChatStore{db: db} +} + +var ErrUnknownMember = errors.New("unknown member") + +func (s *ChatStore) Create(ctx context.Context, title string, memberIDs []string) (Chat, error) { + ctx, cancel := boundedQuery(ctx) + defer cancel() + membersCopy := append([]string(nil), memberIDs...) + chat := Chat{ + ID: uuid.New().String(), + Title: title, + MemberIDs: membersCopy, + CreatedAt: time.Now().UTC().Truncate(time.Microsecond), + } + + tx, err := s.db.Begin(ctx) + if err != nil { + return Chat{}, err + } + defer tx.Rollback(ctx) + for _, id := range membersCopy { + var exists bool + if err = tx.QueryRow(ctx, "SELECT EXISTS(SELECT 1 FROM users WHERE id=$1)", id).Scan(&exists); err != nil { + return Chat{}, err + } + if !exists { + return Chat{}, ErrUnknownMember + } + } + if _, err = tx.Exec(ctx, "INSERT INTO chats(id,title,created_at) VALUES($1,$2,$3)", chat.ID, title, chat.CreatedAt); err != nil { + return Chat{}, err + } + for _, id := range membersCopy { + if _, err = tx.Exec(ctx, "INSERT INTO chat_members(chat_id,user_id) VALUES($1,$2)", chat.ID, id); err != nil { + return Chat{}, err + } + } + if err = tx.Commit(ctx); err != nil { + return Chat{}, err + } + return chat, nil +} + +func (s *ChatStore) GetByID(ctx context.Context, id string) (Chat, error) { + ctx, cancel := boundedQuery(ctx) + defer cancel() + var chat Chat + err := s.db.QueryRow(ctx, "SELECT id,title,created_at FROM chats WHERE id=$1", id).Scan(&chat.ID, &chat.Title, &chat.CreatedAt) + if err != nil { + return Chat{}, err + } + rows, err := s.db.Query(ctx, "SELECT user_id FROM chat_members WHERE chat_id=$1 ORDER BY user_id", id) + if err != nil { + return Chat{}, err + } + defer rows.Close() + chat.MemberIDs = []string{} + for rows.Next() { + var member string + if err = rows.Scan(&member); err != nil { + return Chat{}, err + } + chat.MemberIDs = append(chat.MemberIDs, member) + } + return chat, rows.Err() +} + +func (s *ChatStore) ListPageForUser(ctx context.Context, userID string, cursor *ChatCursor, limit int) ([]Chat, bool, error) { + ctx, cancel := boundedQuery(ctx) + defer cancel() + afterTime := time.Time{} + afterID := "00000000-0000-0000-0000-000000000000" + if cursor != nil { + afterTime = cursor.CreatedAt + afterID = cursor.ChatID + } + rows, err := s.db.Query(ctx, `SELECT c.id,c.title,c.created_at FROM chats c JOIN chat_members m ON m.chat_id=c.id WHERE m.user_id=$1 AND (c.created_at,c.id)>($2,$3::uuid) ORDER BY c.created_at,c.id LIMIT $4`, userID, afterTime, afterID, limit+1) + if err != nil { + return nil, false, err + } + defer rows.Close() + chats := []Chat{} + for rows.Next() { + var c Chat + if err = rows.Scan(&c.ID, &c.Title, &c.CreatedAt); err != nil { + return nil, false, err + } + chats = append(chats, c) + } + if err = rows.Err(); err != nil { + return nil, false, err + } + more := len(chats) > limit + if more { + chats = chats[:limit] + } + for i := range chats { + chat, err := s.GetByID(ctx, chats[i].ID) + if err != nil { + return nil, false, err + } + chats[i] = chat + } + return chats, more, nil +} diff --git a/src/backend/repositories/cursor.go b/src/backend/repositories/cursor.go new file mode 100644 index 00000000..05f3f7dd --- /dev/null +++ b/src/backend/repositories/cursor.go @@ -0,0 +1,15 @@ +package repositories + +import "time" + +type ChatCursor struct { + UserID string `json:"user_id"` + CreatedAt time.Time `json:"created_at"` + ChatID string `json:"chat_id"` +} + +type MessageCursor struct { + ChatID string `json:"chat_id"` + CreatedAt time.Time `json:"created_at"` + MessageID string `json:"message_id"` +} diff --git a/src/backend/repositories/database.go b/src/backend/repositories/database.go new file mode 100644 index 00000000..0ac06f88 --- /dev/null +++ b/src/backend/repositories/database.go @@ -0,0 +1,93 @@ +package repositories + +import ( + "context" + "database/sql" + "embed" + "errors" + "os" + "strings" + "time" + + "github.com/golang-migrate/migrate/v4" + pgxmigrate "github.com/golang-migrate/migrate/v4/database/pgx/v5" + "github.com/golang-migrate/migrate/v4/source/iofs" + "github.com/jackc/pgx/v5/pgxpool" + _ "github.com/jackc/pgx/v5/stdlib" +) + +//go:embed migrations/*.sql +var migrationFiles embed.FS + +func DatabaseURL() (string, error) { + if path := os.Getenv("DATABASE_URL_FILE"); path != "" { + data, err := os.ReadFile(path) + if err != nil { + return "", err + } + return strings.TrimSpace(string(data)), nil + } + if url := os.Getenv("DATABASE_URL"); url != "" { + return url, nil + } + return "", errors.New("DATABASE_URL_FILE or DATABASE_URL is required") +} + +func OpenDatabase(ctx context.Context) (*pgxpool.Pool, error) { + url, err := DatabaseURL() + if err != nil { + return nil, err + } + cfg, err := pgxpool.ParseConfig(url) + if err != nil { + return nil, err + } + cfg.MaxConns = 10 + cfg.ConnConfig.ConnectTimeout = 5 * time.Second + db, err := pgxpool.NewWithConfig(ctx, cfg) + if err != nil { + return nil, err + } + if err = db.Ping(ctx); err != nil { + db.Close() + return nil, err + } + if err = RunMigrations(url, "up"); err != nil { + db.Close() + return nil, err + } + return db, nil +} + +// RunMigrations uses versioned up/down SQL embedded in the API binary. +// "down" rolls back exactly one version and is an explicit operator command. +func RunMigrations(url, direction string) error { + source, err := iofs.New(migrationFiles, "migrations") + if err != nil { + return err + } + sqlDB, err := sql.Open("pgx", url) + if err != nil { + return err + } + driver, err := pgxmigrate.WithInstance(sqlDB, &pgxmigrate.Config{}) + if err != nil { + sqlDB.Close() + return err + } + m, err := migrate.NewWithInstance("iofs", source, "pgx5", driver) + if err != nil { + sqlDB.Close() + return err + } + defer m.Close() + if direction == "down" { + err = m.Steps(-1) + } else { + err = m.Up() + } + if errors.Is(err, migrate.ErrNoChange) { + return nil + } + return err +} diff --git a/src/backend/repositories/errors.go b/src/backend/repositories/errors.go new file mode 100644 index 00000000..6741083e --- /dev/null +++ b/src/backend/repositories/errors.go @@ -0,0 +1,21 @@ +package repositories + +import ( + "errors" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" +) + +func NotFound(err error) bool { + return errors.Is(err, pgx.ErrNoRows) +} + +func CheckViolation(err error) bool { + var pgerr *pgconn.PgError + return errors.As(err, &pgerr) && pgerr.Code == "23514" +} + +func UniqueViolation(err error) bool { + var pgerr *pgconn.PgError + return errors.As(err, &pgerr) && pgerr.Code == "23505" +} diff --git a/src/backend/repositories/health.go b/src/backend/repositories/health.go new file mode 100644 index 00000000..fa3cc3ac --- /dev/null +++ b/src/backend/repositories/health.go @@ -0,0 +1,21 @@ +package repositories + +import ( + "context" + + "github.com/jackc/pgx/v5/pgxpool" +) + +type HealthStore struct { + db *pgxpool.Pool +} + +func NewHealthStore(db *pgxpool.Pool) *HealthStore { + return &HealthStore{db: db} +} + +func (s *HealthStore) Ping(ctx context.Context) error { + ctx, cancel := boundedQuery(ctx) + defer cancel() + return s.db.Ping(ctx) +} diff --git a/src/backend/repositories/message.go b/src/backend/repositories/message.go new file mode 100644 index 00000000..b34708f6 --- /dev/null +++ b/src/backend/repositories/message.go @@ -0,0 +1,82 @@ +package repositories + +import ( + "context" + "time" + + "github.com/google/uuid" + "github.com/jackc/pgx/v5/pgxpool" +) + +type Message struct { + ID string `json:"id"` + ChatID string `json:"chat_id"` + SenderID string `json:"sender_id"` + Text string `json:"text"` + CreatedAt time.Time `json:"created_at"` +} + +type MessageStore struct { + db *pgxpool.Pool +} + +func NewMessageStore(db *pgxpool.Pool) *MessageStore { + return &MessageStore{db: db} +} + +func (s *MessageStore) Create( + ctx context.Context, + chatID string, + senderID string, + text string, +) (Message, error) { + ctx, cancel := boundedQuery(ctx) + defer cancel() + message := Message{ + ID: uuid.New().String(), + ChatID: chatID, + SenderID: senderID, + Text: text, + CreatedAt: time.Now().UTC().Truncate(time.Microsecond), + } + + _, err := s.db.Exec(ctx, "INSERT INTO messages(id,chat_id,sender_id,text,created_at) VALUES($1,$2,$3,$4,$5)", message.ID, message.ChatID, message.SenderID, message.Text, message.CreatedAt) + return message, err +} + +func (s *MessageStore) ListPageByChat( + ctx context.Context, + chatID string, + cursor *MessageCursor, + limit int, +) ([]Message, bool, error) { + ctx, cancel := boundedQuery(ctx) + defer cancel() + afterTime := time.Time{} + afterID := "00000000-0000-0000-0000-000000000000" + if cursor != nil { + afterTime = cursor.CreatedAt + afterID = cursor.MessageID + } + rows, err := s.db.Query(ctx, `SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id=$1 AND (created_at,id)>($2,$3::uuid) ORDER BY created_at,id LIMIT $4`, chatID, afterTime, afterID, limit+1) + if err != nil { + return nil, false, err + } + defer rows.Close() + items := []Message{} + for rows.Next() { + var m Message + if err = rows.Scan(&m.ID, &m.ChatID, &m.SenderID, &m.Text, &m.CreatedAt); err != nil { + return nil, false, err + } + items = append(items, m) + } + if err = rows.Err(); err != nil { + return nil, false, err + } + more := len(items) > limit + if more { + items = items[:limit] + } + return items, more, nil +} diff --git a/src/backend/repositories/migrations/000001_initial.down.sql b/src/backend/repositories/migrations/000001_initial.down.sql new file mode 100644 index 00000000..a3ba4f2d --- /dev/null +++ b/src/backend/repositories/migrations/000001_initial.down.sql @@ -0,0 +1,5 @@ +DROP TABLE IF EXISTS sessions; +DROP TABLE IF EXISTS messages; +DROP TABLE IF EXISTS chat_members; +DROP TABLE IF EXISTS chats; +DROP TABLE IF EXISTS users; diff --git a/src/backend/repositories/migrations/000001_initial.up.sql b/src/backend/repositories/migrations/000001_initial.up.sql new file mode 100644 index 00000000..b00ad15f --- /dev/null +++ b/src/backend/repositories/migrations/000001_initial.up.sql @@ -0,0 +1,32 @@ +CREATE TABLE IF NOT EXISTS users ( + id uuid PRIMARY KEY, + username varchar(32) NOT NULL UNIQUE CHECK (username ~ '^[a-z0-9_]{3,32}$'), + display_name text NOT NULL CHECK (char_length(display_name) BETWEEN 1 AND 100), + password_hash bytea NOT NULL, + created_at timestamptz NOT NULL +); +CREATE TABLE IF NOT EXISTS chats ( + id uuid PRIMARY KEY, + title text NOT NULL CHECK (char_length(title) BETWEEN 1 AND 100), + created_at timestamptz NOT NULL +); +CREATE TABLE IF NOT EXISTS chat_members ( + chat_id uuid NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + user_id uuid NOT NULL REFERENCES users(id), + PRIMARY KEY (chat_id,user_id) +); +CREATE INDEX IF NOT EXISTS chat_members_user_idx ON chat_members(user_id,chat_id); +CREATE TABLE IF NOT EXISTS messages ( + id uuid PRIMARY KEY, + chat_id uuid NOT NULL REFERENCES chats(id), + sender_id uuid NOT NULL REFERENCES users(id), + text text NOT NULL CHECK (char_length(text) BETWEEN 1 AND 4000), + created_at timestamptz NOT NULL +); +CREATE INDEX IF NOT EXISTS messages_history_idx ON messages(chat_id,created_at,id); +CREATE TABLE IF NOT EXISTS sessions ( + token_hash bytea PRIMARY KEY, + user_id uuid NOT NULL REFERENCES users(id), + expires_at timestamptz NOT NULL +); +CREATE INDEX IF NOT EXISTS sessions_expiry_idx ON sessions(expires_at); diff --git a/src/backend/repositories/migrations/000002_redis_sessions.down.sql b/src/backend/repositories/migrations/000002_redis_sessions.down.sql new file mode 100644 index 00000000..1667f0c6 --- /dev/null +++ b/src/backend/repositories/migrations/000002_redis_sessions.down.sql @@ -0,0 +1,6 @@ +CREATE TABLE sessions ( + token_hash bytea PRIMARY KEY, + user_id uuid NOT NULL REFERENCES users(id), + expires_at timestamptz NOT NULL +); +CREATE INDEX sessions_expiry_idx ON sessions(expires_at); diff --git a/src/backend/repositories/migrations/000002_redis_sessions.up.sql b/src/backend/repositories/migrations/000002_redis_sessions.up.sql new file mode 100644 index 00000000..180974db --- /dev/null +++ b/src/backend/repositories/migrations/000002_redis_sessions.up.sql @@ -0,0 +1 @@ +DROP TABLE sessions; diff --git a/src/backend/repositories/redis.go b/src/backend/repositories/redis.go new file mode 100644 index 00000000..4a3c8b5b --- /dev/null +++ b/src/backend/repositories/redis.go @@ -0,0 +1,56 @@ +package repositories + +import ( + "context" + "encoding/hex" + "errors" + "time" + + "github.com/redis/go-redis/v9" +) + +var ErrSessionNotFound = errors.New("session not found") + +type SessionStore struct { + client *redis.Client + prefix string +} + +func NewRedisClient(address string) *redis.Client { + return redis.NewClient(&redis.Options{ + Addr: address, PoolSize: 10, MaxRetries: -1, + DialTimeout: time.Second, ReadTimeout: time.Second, WriteTimeout: time.Second, + }) +} + +func NewSessionStore(client *redis.Client, prefix string) *SessionStore { + return &SessionStore{client: client, prefix: prefix} +} + +func (s *SessionStore) key(tokenHash []byte) string { + return s.prefix + hex.EncodeToString(tokenHash) +} + +func (s *SessionStore) Create(ctx context.Context, tokenHash []byte, userID string, expires time.Time) error { + ttl := time.Until(expires) + if ttl <= 0 { + return errors.New("session expiry must be in the future") + } + return s.client.Set(ctx, s.key(tokenHash), userID, ttl).Err() +} + +func (s *SessionStore) UserID(ctx context.Context, tokenHash []byte) (string, error) { + id, err := s.client.Get(ctx, s.key(tokenHash)).Result() + if errors.Is(err, redis.Nil) { + return "", ErrSessionNotFound + } + return id, err +} + +func (s *SessionStore) Revoke(ctx context.Context, tokenHash []byte) error { + return s.client.Del(ctx, s.key(tokenHash)).Err() +} + +func (s *SessionStore) Ping(ctx context.Context) error { + return s.client.Ping(ctx).Err() +} diff --git a/src/backend/repositories/timeout.go b/src/backend/repositories/timeout.go new file mode 100644 index 00000000..84778faf --- /dev/null +++ b/src/backend/repositories/timeout.go @@ -0,0 +1,12 @@ +package repositories + +import ( + "context" + "time" +) + +const queryTimeout = 5 * time.Second + +func boundedQuery(ctx context.Context) (context.Context, context.CancelFunc) { + return context.WithTimeout(ctx, queryTimeout) +} diff --git a/src/backend/repositories/user.go b/src/backend/repositories/user.go new file mode 100644 index 00000000..e2f8ecf9 --- /dev/null +++ b/src/backend/repositories/user.go @@ -0,0 +1,63 @@ +package repositories + +import ( + "context" + "errors" + "time" + + "github.com/google/uuid" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgxpool" +) + +type User struct { + ID string `json:"id"` + Username string `json:"username"` + DisplayName string `json:"display_name"` + CreatedAt time.Time `json:"created_at"` +} + +type UserStore struct { + db *pgxpool.Pool +} + +func NewUserStore(db *pgxpool.Pool) *UserStore { + return &UserStore{db: db} +} + +func (s *UserStore) Create(ctx context.Context, username, displayName string, passwordHash []byte) (User, error) { + ctx, cancel := boundedQuery(ctx) + defer cancel() + user := User{ + ID: uuid.New().String(), + Username: username, + DisplayName: displayName, + CreatedAt: time.Now().UTC().Truncate(time.Microsecond), + } + + _, err := s.db.Exec(ctx, "INSERT INTO users(id,username,display_name,password_hash,created_at) VALUES($1,$2,$3,$4,$5)", user.ID, user.Username, user.DisplayName, passwordHash, user.CreatedAt) + return user, err +} + +func (s *UserStore) GetByID(ctx context.Context, id string) (User, error) { + ctx, cancel := boundedQuery(ctx) + defer cancel() + var user User + err := s.db.QueryRow(ctx, "SELECT id,username,display_name,created_at FROM users WHERE id=$1", id).Scan(&user.ID, &user.Username, &user.DisplayName, &user.CreatedAt) + return user, err +} + +func (s *UserStore) GetCredentials(ctx context.Context, username string) (User, []byte, error) { + ctx, cancel := boundedQuery(ctx) + defer cancel() + var user User + var packedHash []byte + err := s.db.QueryRow(ctx, "SELECT id,username,display_name,created_at,password_hash FROM users WHERE username=$1", username).Scan(&user.ID, &user.Username, &user.DisplayName, &user.CreatedAt, &packedHash) + if errors.Is(err, pgx.ErrNoRows) { + return User{}, nil, nil + } + if err != nil { + return User{}, nil, err + } + return user, packedHash, nil +} diff --git a/src/backend/services/chat.go b/src/backend/services/chat.go new file mode 100644 index 00000000..2c947fc0 --- /dev/null +++ b/src/backend/services/chat.go @@ -0,0 +1,134 @@ +package services + +import ( + "context" + "encoding/base64" + "encoding/json" + "errors" + "strconv" + "strings" + "unicode/utf8" + + "github.com/google/uuid" + "messenger/src/backend/repositories" +) + +type ChatPage struct { + Items []repositories.Chat `json:"items"` + NextCursor *string `json:"next_cursor"` +} + +type ChatService struct { + chats *repositories.ChatStore +} + +func NewChatService(chats *repositories.ChatStore) *ChatService { + return &ChatService{chats: chats} +} + +func ChatHasMember(chat repositories.Chat, userID string) bool { + for _, memberID := range chat.MemberIDs { + if memberID == userID { + return true + } + } + return false +} + +func (s *ChatService) Create(ctx context.Context, currentUserID, title string, memberIDs []string) (repositories.Chat, error) { + if strings.TrimSpace(title) == "" { + return repositories.Chat{}, InvalidInput{"title must not be blank"} + } + if utf8.RuneCountInString(title) > 100 { + return repositories.Chat{}, InvalidInput{"title is too long"} + } + if len(memberIDs) == 0 || len(memberIDs) > 100 { + return repositories.Chat{}, InvalidInput{"member_ids must contain from 1 to 100 users"} + } + seen := make(map[string]struct{}, len(memberIDs)) + for _, memberID := range memberIDs { + if _, err := uuid.Parse(memberID); err != nil { + return repositories.Chat{}, InvalidInput{"member_ids must contain valid UUIDs"} + } + if _, exists := seen[memberID]; exists { + return repositories.Chat{}, InvalidInput{"member_ids must not contain duplicates"} + } + seen[memberID] = struct{}{} + } + if _, exists := seen[currentUserID]; !exists { + return repositories.Chat{}, InvalidInput{"current user must be a chat member"} + } + chat, err := s.chats.Create(ctx, title, memberIDs) + if errors.Is(err, repositories.ErrUnknownMember) { + return repositories.Chat{}, InvalidInput{"all members must be existing users"} + } + return chat, err +} + +func (s *ChatService) Get(ctx context.Context, currentUserID, chatID string) (repositories.Chat, error) { + chat, err := s.chats.GetByID(ctx, chatID) + if repositories.NotFound(err) { + return repositories.Chat{}, ErrChatNotFound + } + if err != nil { + return repositories.Chat{}, err + } + if !ChatHasMember(chat, currentUserID) { + return repositories.Chat{}, ErrChatNotFound + } + return chat, nil +} + +func EncodeChatCursor(cursor repositories.ChatCursor) (string, error) { + data, err := json.Marshal(cursor) + if err != nil { + return "", err + } + return base64.RawURLEncoding.EncodeToString(data), nil +} + +func DecodeChatCursor(value string) (repositories.ChatCursor, error) { + data, err := base64.RawURLEncoding.DecodeString(value) + if err != nil { + return repositories.ChatCursor{}, err + } + var cursor repositories.ChatCursor + if err := json.Unmarshal(data, &cursor); err != nil { + return repositories.ChatCursor{}, err + } + if cursor.UserID == "" || cursor.ChatID == "" || cursor.CreatedAt.IsZero() { + return repositories.ChatCursor{}, strconv.ErrSyntax + } + return cursor, nil +} + +func (s *ChatService) List(ctx context.Context, userID string, limit int, cursorToken string) (ChatPage, error) { + if limit < 1 || limit > 100 { + return ChatPage{}, InvalidInput{"limit must be between 1 and 100"} + } + var cursor *repositories.ChatCursor + if cursorToken != "" { + decoded, err := DecodeChatCursor(cursorToken) + if err != nil || decoded.UserID != userID { + return ChatPage{}, InvalidInput{"invalid cursor"} + } + cursor = &decoded + } + items, more, err := s.chats.ListPageForUser(ctx, userID, cursor, limit) + if err != nil { + return ChatPage{}, err + } + page := ChatPage{Items: items} + if page.Items == nil { + page.Items = []repositories.Chat{} + } + if more { + last := items[len(items)-1] + next, err := EncodeChatCursor(repositories.ChatCursor{UserID: userID, CreatedAt: last.CreatedAt, ChatID: last.ID}) + if err != nil { + return ChatPage{}, err + } + page.NextCursor = &next + } + return page, nil +} diff --git a/src/backend/services/errors.go b/src/backend/services/errors.go new file mode 100644 index 00000000..aa5d632d --- /dev/null +++ b/src/backend/services/errors.go @@ -0,0 +1,16 @@ +package services + +import "errors" + +var ( + ErrConflict = errors.New("conflict") + ErrUnknownUser = errors.New("unknown user") + ErrChatNotFound = errors.New("chat not found") + ErrInvalidSession = errors.New("invalid session") +) + +type InvalidInput struct { + Message string +} + +func (e InvalidInput) Error() string { return e.Message } diff --git a/src/backend/services/health.go b/src/backend/services/health.go new file mode 100644 index 00000000..b7c311bf --- /dev/null +++ b/src/backend/services/health.go @@ -0,0 +1,23 @@ +package services + +import ( + "context" + + "messenger/src/backend/repositories" +) + +type HealthService struct { + health *repositories.HealthStore + sessions *repositories.SessionStore +} + +func NewHealthService(health *repositories.HealthStore, sessions *repositories.SessionStore) *HealthService { + return &HealthService{health: health, sessions: sessions} +} + +func (s *HealthService) Ready(ctx context.Context) error { + if err := s.health.Ping(ctx); err != nil { + return err + } + return s.sessions.Ping(ctx) +} diff --git a/src/backend/services/message.go b/src/backend/services/message.go new file mode 100644 index 00000000..0364ca39 --- /dev/null +++ b/src/backend/services/message.go @@ -0,0 +1,107 @@ +package services + +import ( + "context" + "encoding/base64" + "encoding/json" + "strconv" + "strings" + "unicode/utf8" + + "messenger/src/backend/repositories" +) + +type MessagePage struct { + Items []repositories.Message `json:"items"` + NextCursor *string `json:"next_cursor"` +} + +type MessageService struct { + messages *repositories.MessageStore +} + +func NewMessageService(messages *repositories.MessageStore) *MessageService { + return &MessageService{messages: messages} +} + +func (s *MessageService) Create(ctx context.Context, userID string, chat repositories.Chat, text string) (repositories.Message, error) { + if !ChatHasMember(chat, userID) { + return repositories.Message{}, ErrChatNotFound + } + if strings.TrimSpace(text) == "" { + return repositories.Message{}, InvalidInput{"text must not be blank"} + } + if utf8.RuneCountInString(text) > 4000 { + return repositories.Message{}, InvalidInput{"text is too long"} + } + return s.messages.Create(ctx, chat.ID, userID, text) +} + +func MessageLess(left, right repositories.Message) bool { + if left.CreatedAt.Equal(right.CreatedAt) { + return left.ID < right.ID + } + return left.CreatedAt.Before(right.CreatedAt) +} + +func MessageAfterCursor(message repositories.Message, cursor repositories.MessageCursor) bool { + return message.CreatedAt.After(cursor.CreatedAt) || + (message.CreatedAt.Equal(cursor.CreatedAt) && message.ID > cursor.MessageID) +} + +func EncodeMessageCursor(cursor repositories.MessageCursor) (string, error) { + data, err := json.Marshal(cursor) + if err != nil { + return "", err + } + return base64.RawURLEncoding.EncodeToString(data), nil +} + +func DecodeMessageCursor(value string) (repositories.MessageCursor, error) { + data, err := base64.RawURLEncoding.DecodeString(value) + if err != nil { + return repositories.MessageCursor{}, err + } + var cursor repositories.MessageCursor + if err := json.Unmarshal(data, &cursor); err != nil { + return repositories.MessageCursor{}, err + } + if cursor.ChatID == "" || cursor.MessageID == "" || cursor.CreatedAt.IsZero() { + return repositories.MessageCursor{}, strconv.ErrSyntax + } + return cursor, nil +} + +func (s *MessageService) List(ctx context.Context, userID string, chat repositories.Chat, limit int, cursorToken string) (MessagePage, error) { + if !ChatHasMember(chat, userID) { + return MessagePage{}, ErrChatNotFound + } + if limit < 1 || limit > 100 { + return MessagePage{}, InvalidInput{"limit must be between 1 and 100"} + } + var cursor *repositories.MessageCursor + if cursorToken != "" { + decoded, err := DecodeMessageCursor(cursorToken) + if err != nil || decoded.ChatID != chat.ID { + return MessagePage{}, InvalidInput{"invalid cursor"} + } + cursor = &decoded + } + items, more, err := s.messages.ListPageByChat(ctx, chat.ID, cursor, limit) + if err != nil { + return MessagePage{}, err + } + page := MessagePage{Items: items} + if page.Items == nil { + page.Items = []repositories.Message{} + } + if more { + last := items[len(items)-1] + next, err := EncodeMessageCursor(repositories.MessageCursor{ChatID: chat.ID, CreatedAt: last.CreatedAt, MessageID: last.ID}) + if err != nil { + return MessagePage{}, err + } + page.NextCursor = &next + } + return page, nil +} diff --git a/src/backend/services/password.go b/src/backend/services/password.go new file mode 100644 index 00000000..94201a31 --- /dev/null +++ b/src/backend/services/password.go @@ -0,0 +1,59 @@ +package services + +import ( + "crypto/rand" + "crypto/subtle" + "encoding/base64" + "errors" + "fmt" + "strings" + + "golang.org/x/crypto/argon2" +) + +const ( + argonMemory uint32 = 64 * 1024 + argonIterations uint32 = 3 + argonParallelism uint8 = 2 + passwordSaltSize = 16 + passwordHashSize = 32 +) + +// HashPassword stores the salt and Argon2id parameters in one PHC-encoded value. +func HashPassword(password string) ([]byte, error) { + salt := make([]byte, passwordSaltSize) + if _, err := rand.Read(salt); err != nil { + return nil, err + } + hash := argon2.IDKey([]byte(password), salt, argonIterations, argonMemory, argonParallelism, passwordHashSize) + encoded := fmt.Sprintf("$argon2id$v=%d$m=%d,t=%d,p=%d$%s$%s", + argon2.Version, argonMemory, argonIterations, argonParallelism, + base64.RawStdEncoding.EncodeToString(salt), + base64.RawStdEncoding.EncodeToString(hash), + ) + return []byte(encoded), nil +} + +func VerifyPassword(password string, encoded []byte) (bool, error) { + parts := strings.Split(string(encoded), "$") + if len(parts) != 6 || parts[0] != "" || parts[1] != "argon2id" || parts[2] != fmt.Sprintf("v=%d", argon2.Version) { + return false, errors.New("invalid password hash format") + } + var memory, iterations uint32 + var parallelism uint8 + if _, err := fmt.Sscanf(parts[3], "m=%d,t=%d,p=%d", &memory, &iterations, ¶llelism); err != nil || + fmt.Sprintf("m=%d,t=%d,p=%d", memory, iterations, parallelism) != parts[3] || + memory < 8*1024 || memory > 128*1024 || iterations < 1 || iterations > 10 || parallelism < 1 || parallelism > 8 { + return false, errors.New("invalid password hash parameters") + } + salt, err := base64.RawStdEncoding.Strict().DecodeString(parts[4]) + if err != nil || len(salt) != passwordSaltSize { + return false, errors.New("invalid password salt") + } + expected, err := base64.RawStdEncoding.Strict().DecodeString(parts[5]) + if err != nil || len(expected) != passwordHashSize { + return false, errors.New("invalid password hash") + } + actual := argon2.IDKey([]byte(password), salt, iterations, memory, parallelism, passwordHashSize) + return subtle.ConstantTimeCompare(expected, actual) == 1, nil +} diff --git a/src/backend/services/session.go b/src/backend/services/session.go new file mode 100644 index 00000000..c7e1d445 --- /dev/null +++ b/src/backend/services/session.go @@ -0,0 +1,83 @@ +package services + +import ( + "context" + "crypto/rand" + "crypto/sha256" + "encoding/hex" + "errors" + "os" + "strconv" + "time" + + "messenger/src/backend/repositories" +) + +type SessionService struct { + users *UserService + sessions *repositories.SessionStore + ttl time.Duration +} + +func SessionTTL() (time.Duration, error) { + value := os.Getenv("SESSION_TTL_SECONDS") + if value == "" { + return time.Hour, nil + } + seconds, err := strconv.Atoi(value) + if err != nil || seconds < 1 { + return 0, errors.New("invalid SESSION_TTL_SECONDS") + } + return time.Duration(seconds) * time.Second, nil +} + +func NewSessionService(users *UserService, sessions *repositories.SessionStore, ttl time.Duration) *SessionService { + return &SessionService{users: users, sessions: sessions, ttl: ttl} +} + +func (s *SessionService) Login(ctx context.Context, username, password string) (repositories.User, string, time.Time, bool, error) { + user, valid, err := s.users.Authenticate(ctx, username, password) + if err != nil || !valid { + return repositories.User{}, "", time.Time{}, valid, err + } + token, expires, err := s.CreateForUser(ctx, user.ID) + if err != nil { + return repositories.User{}, "", time.Time{}, false, err + } + return user, token, expires, true, nil +} + +func (s *SessionService) CreateForUser(ctx context.Context, userID string) (string, time.Time, error) { + raw := make([]byte, 32) + if _, err := rand.Read(raw); err != nil { + return "", time.Time{}, err + } + token := hex.EncodeToString(raw) + hash := sha256.Sum256([]byte(token)) + expires := time.Now().UTC().Add(s.ttl).Truncate(time.Microsecond) + if err := s.sessions.Create(ctx, hash[:], userID, expires); err != nil { + return "", time.Time{}, err + } + return token, expires, nil +} + +func (s *SessionService) User(ctx context.Context, token string) (repositories.User, error) { + hash := sha256.Sum256([]byte(token)) + id, err := s.sessions.UserID(ctx, hash[:]) + if errors.Is(err, repositories.ErrSessionNotFound) { + return repositories.User{}, ErrInvalidSession + } + if err != nil { + return repositories.User{}, err + } + user, err := s.users.Get(ctx, id) + if errors.Is(err, ErrUnknownUser) { + return repositories.User{}, ErrInvalidSession + } + return user, err +} + +func (s *SessionService) Revoke(ctx context.Context, token string) error { + hash := sha256.Sum256([]byte(token)) + return s.sessions.Revoke(ctx, hash[:]) +} diff --git a/src/backend/services/user.go b/src/backend/services/user.go new file mode 100644 index 00000000..9670a938 --- /dev/null +++ b/src/backend/services/user.go @@ -0,0 +1,73 @@ +package services + +import ( + "context" + "regexp" + "strings" + "unicode/utf8" + + "messenger/src/backend/repositories" +) + +var usernamePattern = regexp.MustCompile(`^[a-z0-9_]{3,32}$`) + +type UserService struct { + users *repositories.UserStore +} + +func NewUserService(users *repositories.UserStore) *UserService { + return &UserService{users: users} +} + +func (s *UserService) Create(ctx context.Context, username, displayName, password string) (repositories.User, error) { + if !usernamePattern.MatchString(username) { + return repositories.User{}, InvalidInput{"username must contain 3-32 lowercase latin letters, digits or underscores"} + } + if strings.TrimSpace(displayName) == "" { + return repositories.User{}, InvalidInput{"display_name must not be blank"} + } + if utf8.RuneCountInString(displayName) > 100 { + return repositories.User{}, InvalidInput{"display_name is too long"} + } + if strings.TrimSpace(password) == "" || utf8.RuneCountInString(password) < 12 || utf8.RuneCountInString(password) > 128 { + return repositories.User{}, InvalidInput{"password must contain 12-128 characters"} + } + hash, err := HashPassword(password) + if err != nil { + return repositories.User{}, err + } + user, err := s.users.Create(ctx, username, displayName, hash) + if repositories.UniqueViolation(err) { + return repositories.User{}, ErrConflict + } + if repositories.CheckViolation(err) { + return repositories.User{}, InvalidInput{"invalid user fields"} + } + return user, err +} + +func (s *UserService) Get(ctx context.Context, id string) (repositories.User, error) { + user, err := s.users.GetByID(ctx, id) + if repositories.NotFound(err) { + return repositories.User{}, ErrUnknownUser + } + return user, err +} + +func (s *UserService) Authenticate(ctx context.Context, username, password string) (repositories.User, bool, error) { + if !usernamePattern.MatchString(username) || utf8.RuneCountInString(password) < 12 || utf8.RuneCountInString(password) > 128 { + return repositories.User{}, false, nil + } + user, packedHash, err := s.users.GetCredentials(ctx, username) + if repositories.NotFound(err) { + return repositories.User{}, false, nil + } + if err != nil || packedHash == nil { + return repositories.User{}, false, err + } + valid, err := VerifyPassword(password, packedHash) + if err != nil { + return repositories.User{}, false, err + } + return user, valid, nil +} diff --git a/src/backend/tests/concurrency_test.go b/src/backend/tests/concurrency_test.go new file mode 100644 index 00000000..b0204e9f --- /dev/null +++ b/src/backend/tests/concurrency_test.go @@ -0,0 +1,217 @@ +package tests + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "messenger/src/backend/repositories" + "net/http" + "net/http/httptest" + "strconv" + "sync" + "testing" +) + +func TestConcurrentMessageCreation(t *testing.T) { + fixture := newTestFixture(t) + userStore, chatStore := fixture.users, fixture.chats + + const clientsCount = 10 + const messagesPerClient = 10 + const expectedMessages = clientsCount * messagesPerClient + + memberIDs := make([]string, 0, clientsCount) + users := make([]User, 0, clientsCount) + + for i := range clientsCount { + user, created := createTestUser(t, userStore, + "user"+strconv.Itoa(i), + "Пользователь "+strconv.Itoa(i), + ) + + if !created { + t.Fatalf("failed to create test user %d", i) + } + + users = append(users, user) + memberIDs = append(memberIDs, user.ID) + } + + chat := createTestChat(t, chatStore, + "Конкурентный чат", + memberIDs, + ) + + server := httptest.NewServer(fixture.router) + defer server.Close() + + client := server.Client() + tokens := make([]string, clientsCount) + for i, user := range users { + request := httptest.NewRequest(http.MethodGet, "/", nil) + authorizeTestRequest(t, fixture, request, user.ID) + tokens[i] = request.Header.Get("Authorization") + } + + var waitGroup sync.WaitGroup + messageIDs := make(chan string, expectedMessages) + errors := make(chan error, expectedMessages) + + for clientIndex := range clientsCount { + waitGroup.Add(1) + + go func(index int) { + defer waitGroup.Done() + + for messageIndex := range messagesPerClient { + body := fmt.Appendf(nil, + `{"text":"client-%d message-%d"}`, + index, + messageIndex, + ) + + request, err := http.NewRequest( + http.MethodPost, + server.URL+"/api/v1/chats/"+chat.ID+"/messages", + bytes.NewReader(body), + ) + if err != nil { + errors <- fmt.Errorf( + "client %d: create request: %w", + index, + err, + ) + continue + } + + request.Header.Set("Content-Type", "application/json") + request.Header.Set("Authorization", tokens[index]) + + response, err := client.Do(request) + if err != nil { + errors <- fmt.Errorf( + "client %d: send request: %w", + index, + err, + ) + continue + } + + responseBody, readErr := io.ReadAll(response.Body) + response.Body.Close() + + if readErr != nil { + errors <- fmt.Errorf( + "client %d: read response: %w", + index, + readErr, + ) + continue + } + + if response.StatusCode != http.StatusCreated { + errors <- fmt.Errorf( + "client %d: expected status %d, got %d; body: %s", + index, + http.StatusCreated, + response.StatusCode, + string(responseBody), + ) + continue + } + + var message repositories.Message + + if err := json.Unmarshal(responseBody, &message); err != nil { + errors <- fmt.Errorf( + "client %d: decode response: %w", + index, + err, + ) + continue + } + + if message.ID == "" { + errors <- fmt.Errorf( + "client %d: response contains empty message ID", + index, + ) + continue + } + + messageIDs <- message.ID + } + }(clientIndex) + } + + waitGroup.Wait() + + close(errors) + close(messageIDs) + + for err := range errors { + t.Error(err) + } + + createdIDs := make(map[string]bool) + + for messageID := range messageIDs { + if createdIDs[messageID] { + t.Fatalf("duplicate message ID returned: %s", messageID) + } + + createdIDs[messageID] = true + } + + if len(createdIDs) != expectedMessages { + t.Fatalf( + "expected %d unique created messages, got %d", + expectedMessages, + len(createdIDs), + ) + } + + // Дополнительно проверяем историю через HTTP API. + request, err := http.NewRequest( + http.MethodGet, + server.URL+"/api/v1/chats/"+chat.ID+"/messages?limit=100", + nil, + ) + if err != nil { + t.Fatalf("create history request: %v", err) + } + + request.Header.Set("Authorization", tokens[0]) + + response, err := client.Do(request) + if err != nil { + t.Fatalf("request message history: %v", err) + } + defer response.Body.Close() + + if response.StatusCode != http.StatusOK { + body, _ := io.ReadAll(response.Body) + + t.Fatalf( + "expected history status %d, got %d; body: %s", + http.StatusOK, + response.StatusCode, + string(body), + ) + } + + var page messagePage + + if err := json.NewDecoder(response.Body).Decode(&page); err != nil { + t.Fatalf("decode message history: %v", err) + } + + if len(page.Items) != expectedMessages { + t.Fatalf( + "expected %d messages in history, got %d", + expectedMessages, + len(page.Items), + ) + } +} diff --git a/src/backend/tests/grade4_test.go b/src/backend/tests/grade4_test.go new file mode 100644 index 00000000..345f05f9 --- /dev/null +++ b/src/backend/tests/grade4_test.go @@ -0,0 +1,291 @@ +package tests + +import ( + "bytes" + "context" + "encoding/base64" + "encoding/json" + "errors" + "fmt" + "net/http" + "net/http/httptest" + "os" + "strings" + "sync" + "testing" + "time" + + "messenger/src/backend/handlers" + "messenger/src/backend/repositories" + "messenger/src/backend/services" + + "github.com/jackc/pgx/v5/pgxpool" +) + +func TestConcurrentRegistrationSameUsername(t *testing.T) { + f := newTestFixture(t) + const body = `{"username":"alice","display_name":"Алиса","password":"lab2-test-password"}` + var wg sync.WaitGroup + start := make(chan struct{}) + results := make(chan int, 2) + for i := 0; i < 2; i++ { + wg.Add(1) + go func() { + defer wg.Done() + <-start + r := httptest.NewRequest(http.MethodPost, "/api/v1/users", strings.NewReader(body)) + r.Header.Set("Content-Type", "application/json") + w := httptest.NewRecorder() + f.router.ServeHTTP(w, r) + results <- w.Code + }() + } + close(start) + wg.Wait() + close(results) + counts := map[int]int{} + for status := range results { + counts[status]++ + } + if counts[201] != 1 || counts[409] != 1 { + t.Fatalf("registration statuses: %v", counts) + } + var users int + if err := f.db.QueryRow(context.Background(), "SELECT count(*) FROM users WHERE username='alice'").Scan(&users); err != nil { + t.Fatal(err) + } + if users != 1 { + t.Fatalf("stored %d users with the same username", users) + } +} + +func TestChatTransactionRollsBackAfterMemberInsertFailure(t *testing.T) { + f := newTestFixture(t) + alice, _ := createTestUser(t, f.users, "alice", "Алиса") + bob, _ := createTestUser(t, f.users, "bob", "Боб") + _, err := f.db.Exec(context.Background(), `CREATE FUNCTION reject_bob() RETURNS trigger LANGUAGE plpgsql AS $$ +BEGIN + IF NEW.user_id = '`+bob.ID+`'::uuid THEN RAISE EXCEPTION 'forced member failure'; END IF; + RETURN NEW; +END $$; +CREATE TRIGGER reject_bob_insert BEFORE INSERT ON chat_members FOR EACH ROW EXECUTE FUNCTION reject_bob();`) + if err != nil { + t.Fatal(err) + } + if _, err := f.chats.Create(context.Background(), "rollback-check", []string{alice.ID, bob.ID}); err == nil { + t.Fatal("expected second member insertion to fail") + } + var chats, members int + if err := f.db.QueryRow(context.Background(), "SELECT count(*) FROM chats WHERE title='rollback-check'").Scan(&chats); err != nil { + t.Fatal(err) + } + if err := f.db.QueryRow(context.Background(), "SELECT count(*) FROM chat_members").Scan(&members); err != nil { + t.Fatal(err) + } + if chats != 0 || members != 0 { + t.Fatalf("transaction left chats=%d members=%d", chats, members) + } +} + +func TestShortSessionTTLAndLogout(t *testing.T) { + f := newTestFixture(t) + user, _ := createTestUser(t, f.users, "alice", "Алиса") + t.Setenv("SESSION_TTL_SECONDS", "2") + ttl, err := services.SessionTTL() + if err != nil || ttl != 2*time.Second { + t.Fatalf("short TTL: %v, %v", ttl, err) + } + sessions := services.NewSessionService(services.NewUserService(f.users), f.sessionStore, ttl) + router := handlers.NewRouter(nil, services.NewUserService(f.users), sessions, nil, nil) + assertHTTPUser := func(token string, want int) { + t.Helper() + r := httptest.NewRequest(http.MethodGet, "/api/v1/users/me", nil) + r.Header.Set("Authorization", "Bearer "+token) + w := httptest.NewRecorder() + router.ServeHTTP(w, r) + if w.Code != want { + t.Fatalf("short TTL HTTP status: got %d, want %d", w.Code, want) + } + t.Logf("GET /api/v1/users/me: HTTP %d", w.Code) + } + token, _, err := sessions.CreateForUser(context.Background(), user.ID) + if err != nil { + t.Fatal(err) + } + if _, err := sessions.User(context.Background(), token); err != nil { + t.Fatal(err) + } + assertHTTPUser(token, 200) + expiryStarted := time.Now() + expiryDeadline := expiryStarted.Add(5 * time.Second) + for { + _, err := sessions.User(context.Background(), token) + if errors.Is(err, services.ErrInvalidSession) { + break + } + if err != nil { + t.Fatalf("checking expiry: %v", err) + } + if time.Now().After(expiryDeadline) { + t.Fatal("session with TTL=2 seconds did not expire within 5 seconds") + } + time.Sleep(100 * time.Millisecond) + } + t.Logf("SESSION_TTL_SECONDS=2: expiry observed after %s", time.Since(expiryStarted)) + assertHTTPUser(token, 401) + token, _, err = f.sessions.CreateForUser(context.Background(), user.ID) + if err != nil { + t.Fatal(err) + } + if err := f.sessions.Revoke(context.Background(), token); err != nil { + t.Fatal(err) + } + if _, err := f.sessions.User(context.Background(), token); err != services.ErrInvalidSession { + t.Fatalf("revoked token: %v", err) + } + assertHTTPUser(token, 401) +} + +func TestWrongPasswordAndLogoutHTTP(t *testing.T) { + f := newTestFixture(t) + createTestUser(t, f.users, "alice", "Алиса") + login := func(password string) *httptest.ResponseRecorder { + r := httptest.NewRequest(http.MethodPost, "/api/v1/auth/sessions", nil) + r.Header.Set("Authorization", "Basic "+base64.StdEncoding.EncodeToString([]byte("alice:"+password))) + w := httptest.NewRecorder() + f.router.ServeHTTP(w, r) + return w + } + if w := login("wrong-password"); w.Code != 401 { + t.Fatalf("wrong password returned %d", w.Code) + } + missingUser := httptest.NewRequest(http.MethodPost, "/api/v1/auth/sessions", nil) + missingUser.SetBasicAuth("missing_user", "lab2-test-password") + missingUserResponse := httptest.NewRecorder() + f.router.ServeHTTP(missingUserResponse, missingUser) + if missingUserResponse.Code != 401 { + t.Fatalf("unknown username returned %d", missingUserResponse.Code) + } + w := login("lab2-test-password") + if w.Code != 201 { + t.Fatalf("valid login returned %d: %s", w.Code, w.Body.String()) + } + var result struct { + Token string `json:"token"` + } + if err := json.Unmarshal(w.Body.Bytes(), &result); err != nil { + t.Fatal(err) + } + r := httptest.NewRequest(http.MethodGet, "/api/v1/chats/not-a-uuid/messages", nil) + r.Header.Set("Authorization", "Bearer "+result.Token) + w = httptest.NewRecorder() + f.router.ServeHTTP(w, r) + if w.Code != 400 { + t.Fatalf("invalid chat UUID returned %d", w.Code) + } + r = httptest.NewRequest(http.MethodDelete, "/api/v1/auth/sessions/current", nil) + r.Header.Set("Authorization", "Bearer "+result.Token) + w = httptest.NewRecorder() + f.router.ServeHTTP(w, r) + if w.Code != 204 { + t.Fatalf("logout returned %d", w.Code) + } + r = httptest.NewRequest(http.MethodGet, "/api/v1/users/me", nil) + r.Header.Set("Authorization", "Bearer "+result.Token) + w = httptest.NewRecorder() + f.router.ServeHTTP(w, r) + if w.Code != 401 { + t.Fatalf("revoked token returned %d", w.Code) + } +} + +func TestDependencyFailuresReturnUnavailable(t *testing.T) { + f := newTestFixture(t) + user, _ := createTestUser(t, f.users, "alice", "Алиса") + failedRedis := repositories.NewRedisClient("127.0.0.1:1") + defer failedRedis.Close() + failedSessions := repositories.NewSessionStore(failedRedis, "unreachable:") + redisRouter := handlers.NewRouter(services.NewHealthService(repositories.NewHealthStore(f.db), failedSessions), services.NewUserService(f.users), services.NewSessionService(services.NewUserService(f.users), failedSessions, time.Hour), services.NewChatService(f.chats), services.NewMessageService(f.messages)) + assertStatus := func(router http.Handler, method, path, auth string, want int) { + t.Helper() + r := httptest.NewRequest(method, path, nil) + if auth != "" { + r.Header.Set("Authorization", auth) + } + w := httptest.NewRecorder() + router.ServeHTTP(w, r) + if w.Code != want { + t.Fatalf("%s %s returned %d, want %d: %s", method, path, w.Code, want, w.Body.String()) + } + } + assertStatus(redisRouter, "GET", "/health/ready", "", 503) + assertStatus(redisRouter, "GET", "/api/v1/users/me", "Bearer opaque-token", 503) + assertStatus(redisRouter, "POST", "/api/v1/auth/sessions", "Basic "+base64.StdEncoding.EncodeToString([]byte("alice:lab2-test-password")), 503) + + pool, err := pgxpool.New(context.Background(), os.Getenv("TEST_DATABASE_URL")) + if err != nil { + t.Fatal(err) + } + pool.Close() + userStore := repositories.NewUserStore(pool) + dbRouter := handlers.NewRouter(services.NewHealthService(repositories.NewHealthStore(pool), f.sessionStore), services.NewUserService(userStore), services.NewSessionService(services.NewUserService(userStore), f.sessionStore, time.Hour), services.NewChatService(repositories.NewChatStore(pool)), services.NewMessageService(repositories.NewMessageStore(pool))) + token, _, err := f.sessions.CreateForUser(context.Background(), user.ID) + if err != nil { + t.Fatal(err) + } + assertStatus(dbRouter, "GET", "/health/ready", "", 503) + assertStatus(dbRouter, "GET", "/api/v1/users/me", "Bearer "+token, 503) + assertStatus(dbRouter, "GET", "/api/v1/users/me", "", 401) +} + +func TestHistoryQueryPlanAtTenThousandMessages(t *testing.T) { + f := newTestFixture(t) + user, _ := createTestUser(t, f.users, "alice", "Алиса") + chat := createTestChat(t, f.chats, "plan-check", []string{user.ID}) + ctx := context.Background() + _, err := f.db.Exec(ctx, `INSERT INTO messages(id,chat_id,sender_id,text,created_at) +SELECT gen_random_uuid(),$1,$2,'plan message','2026-01-01'::timestamptz + n * interval '1 microsecond' +FROM generate_series(1,10000) AS n`, chat.ID, user.ID) + if err != nil { + t.Fatal(err) + } + if _, err := f.db.Exec(ctx, "ANALYZE messages"); err != nil { + t.Fatal(err) + } + var lateTime time.Time + var lateID string + if err := f.db.QueryRow(ctx, "SELECT created_at,id FROM messages WHERE chat_id=$1 ORDER BY created_at,id OFFSET 9000 LIMIT 1", chat.ID).Scan(&lateTime, &lateID); err != nil { + t.Fatal(err) + } + cases := []struct { + name string + at time.Time + id string + }{ + {"first", time.Time{}, "00000000-0000-0000-0000-000000000000"}, + {"late", lateTime, lateID}, + } + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + var plan []byte + err := f.db.QueryRow(ctx, `EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON) +SELECT id,chat_id,sender_id,text,created_at FROM messages +WHERE chat_id=$1 AND (created_at,id)>($2,$3::uuid) +ORDER BY created_at,id LIMIT $4`, chat.ID, tc.at, tc.id, 51).Scan(&plan) + if err != nil { + t.Fatal(err) + } + if !bytes.Contains(plan, []byte("messages_history_idx")) || bytes.Contains(plan, []byte(`"Node Type": "Seq Scan"`)) { + t.Fatalf("history page did not use the index: %s", plan) + } + t.Logf("%s page EXPLAIN (ANALYZE, BUFFERS): %s", tc.name, plan) + }) + } + var count int + if err := f.db.QueryRow(ctx, "SELECT count(*) FROM messages WHERE chat_id=$1", chat.ID).Scan(&count); err != nil { + t.Fatal(err) + } + if count < 10000 { + t.Fatal(fmt.Errorf("history contains only %d messages", count)) + } +} diff --git a/src/backend/tests/integration_test.go b/src/backend/tests/integration_test.go new file mode 100644 index 00000000..15631020 --- /dev/null +++ b/src/backend/tests/integration_test.go @@ -0,0 +1,67 @@ +package tests + +import ( + "bytes" + "encoding/base64" + "encoding/json" + "net/http" + "net/http/httptest" + "net/url" + "testing" +) + +func TestMessengerWorkflow(t *testing.T) { + router := newTestFixture(t).router + + call := func(method, path, body, auth string, expected int) map[string]any { + t.Helper() + request := httptest.NewRequest(method, path, bytes.NewBufferString(body)) + if body != "" { + request.Header.Set("Content-Type", "application/json") + } + if auth != "" { + request.Header.Set("Authorization", auth) + } + response := httptest.NewRecorder() + router.ServeHTTP(response, request) + if response.Code != expected { + t.Fatalf("%s %s: status %d, want %d: %s", method, path, response.Code, expected, response.Body.String()) + } + if response.Header().Get("X-Request-Id") == "" { + t.Fatalf("%s %s: missing request ID", method, path) + } + if response.Code == http.StatusNoContent { + return nil + } + var result map[string]any + if err := json.Unmarshal(response.Body.Bytes(), &result); err != nil { + t.Fatal(err) + } + return result + } + + user := call("POST", "/api/v1/users", `{"username":"alice","display_name":"Алиса","password":"lab2-test-password"}`, "", 201) + userID := user["id"].(string) + basic := "Basic " + base64.StdEncoding.EncodeToString([]byte("alice:lab2-test-password")) + session := call("POST", "/api/v1/auth/sessions", "", basic, 201) + bearer := "Bearer " + session["token"].(string) + call("GET", "/api/v1/users/me", "", bearer, 200) + chat := call("POST", "/api/v1/chats", `{"title":"Тестовый чат","member_ids":["`+userID+`"]}`, bearer, 201) + chatID := chat["id"].(string) + path := "/api/v1/chats/" + chatID + "/messages" + for i := 0; i < 3; i++ { + call("POST", path, `{"text":"message"}`, bearer, 201) + } + page1 := call("GET", path+"?limit=2", "", bearer, 200) + first := page1["items"].([]any) + if len(first) != 2 || page1["next_cursor"] == nil { + t.Fatalf("unexpected first page: %v", page1) + } + page2 := call("GET", path+"?limit=2&cursor="+url.QueryEscape(page1["next_cursor"].(string)), "", bearer, 200) + second := page2["items"].([]any) + if len(second) != 1 || page2["next_cursor"] != nil || first[0].(map[string]any)["id"] == second[0].(map[string]any)["id"] { + t.Fatalf("unexpected second page: %v", page2) + } + call("DELETE", "/api/v1/auth/sessions/current", "", bearer, 204) + call("GET", "/api/v1/users/me", "", bearer, 401) +} diff --git a/src/backend/tests/message_handler_test.go b/src/backend/tests/message_handler_test.go new file mode 100644 index 00000000..b5c6958b --- /dev/null +++ b/src/backend/tests/message_handler_test.go @@ -0,0 +1,276 @@ +package tests + +import ( + "encoding/json" + "net/http" + "net/http/httptest" + "net/url" + "strings" + "testing" +) + +func TestCreateMessageBlankText(t *testing.T) { + fixture := newTestFixture(t) + userStore, chatStore, messageStore := fixture.users, fixture.chats, fixture.messages + + user, created := createTestUser(t, userStore, "alice", "Алиса") + if !created { + t.Fatal("expected user to be created") + } + + chat := createTestChat(t, chatStore, + "Тестовый чат", + []string{user.ID}, + ) + + handler := fixture.router + + request := httptest.NewRequest( + http.MethodPost, + "/api/v1/chats/"+chat.ID+"/messages", + strings.NewReader(`{"text":" \t\n"}`), + ) + request.Header.Set("Content-Type", "application/json") + authorizeTestRequest(t, fixture, request, user.ID) + + response := httptest.NewRecorder() + + handler.ServeHTTP(response, request) + + if response.Code != http.StatusBadRequest { + t.Fatalf( + "expected status %d, got %d; body: %s", + http.StatusBadRequest, + response.Code, + response.Body.String(), + ) + } + + if response.Header().Get("X-Request-Id") == "" { + t.Fatal("expected non-empty X-Request-Id header") + } + + if !strings.Contains( + response.Body.String(), + `"code":"invalid_request"`, + ) { + t.Fatalf( + "expected invalid_request error code, got body: %s", + response.Body.String(), + ) + } + + messages := listTestMessages(t, messageStore, chat.ID) + + if len(messages) != 0 { + t.Fatalf( + "expected no messages to be stored, got %d", + len(messages), + ) + } +} +func TestCreateMessageFromChatOutsider(t *testing.T) { + fixture := newTestFixture(t) + userStore, chatStore, messageStore := fixture.users, fixture.chats, fixture.messages + + alice, created := createTestUser(t, userStore, "alice", "Алиса") + if !created { + t.Fatal("expected Alice to be created") + } + + bob, created := createTestUser(t, userStore, "bob", "Боб") + if !created { + t.Fatal("expected Bob to be created") + } + + chat := createTestChat(t, chatStore, + "Чат Алисы", + []string{alice.ID}, + ) + + handler := fixture.router + + request := httptest.NewRequest( + http.MethodPost, + "/api/v1/chats/"+chat.ID+"/messages", + strings.NewReader(`{"text":"Сообщение чужому чату"}`), + ) + request.Header.Set("Content-Type", "application/json") + authorizeTestRequest(t, fixture, request, bob.ID) + + response := httptest.NewRecorder() + + handler.ServeHTTP(response, request) + + if response.Code != http.StatusNotFound { + t.Fatalf( + "expected status %d, got %d; body: %s", + http.StatusNotFound, + response.Code, + response.Body.String(), + ) + } + + if response.Header().Get("X-Request-Id") == "" { + t.Fatal("expected non-empty X-Request-Id header") + } + + if !strings.Contains( + response.Body.String(), + `"code":"not_found"`, + ) { + t.Fatalf( + "expected not_found error code, got body: %s", + response.Body.String(), + ) + } + + messages := listTestMessages(t, messageStore, chat.ID) + + if len(messages) != 0 { + t.Fatalf( + "expected no messages to be stored, got %d", + len(messages), + ) + } +} +func TestListMessagesPagination(t *testing.T) { + fixture := newTestFixture(t) + userStore, chatStore, messageStore := fixture.users, fixture.chats, fixture.messages + + user, created := createTestUser(t, userStore, "alice", "Алиса") + if !created { + t.Fatal("expected user to be created") + } + + chat := createTestChat(t, chatStore, + "Тестовый чат", + []string{user.ID}, + ) + + first := createTestMessage(t, messageStore, chat.ID, user.ID, "Первое сообщение") + second := createTestMessage(t, messageStore, chat.ID, user.ID, "Второе сообщение") + third := createTestMessage(t, messageStore, chat.ID, user.ID, "Третье сообщение") + + expectedIDs := map[string]bool{ + first.ID: true, + second.ID: true, + third.ID: true, + } + + handler := fixture.router + + // Запрашиваем только два сообщения из трёх. + firstRequest := httptest.NewRequest( + http.MethodGet, + "/api/v1/chats/"+chat.ID+"/messages?limit=2", + nil, + ) + authorizeTestRequest(t, fixture, firstRequest, user.ID) + + firstResponse := httptest.NewRecorder() + + handler.ServeHTTP(firstResponse, firstRequest) + + if firstResponse.Code != http.StatusOK { + t.Fatalf( + "expected first page status %d, got %d; body: %s", + http.StatusOK, + firstResponse.Code, + firstResponse.Body.String(), + ) + } + + var firstPage messagePage + + if err := json.NewDecoder(firstResponse.Body).Decode(&firstPage); err != nil { + t.Fatalf("failed to decode first page: %v", err) + } + + if len(firstPage.Items) != 2 { + t.Fatalf( + "expected 2 messages on first page, got %d", + len(firstPage.Items), + ) + } + + if firstPage.NextCursor == nil || *firstPage.NextCursor == "" { + t.Fatal("expected non-empty next cursor on first page") + } + + // Проверяем, что сообщения на первой странице уникальны + // и принадлежат исходному набору. + seenIDs := make(map[string]bool) + + for _, message := range firstPage.Items { + if !expectedIDs[message.ID] { + t.Fatalf("unexpected message ID on first page: %s", message.ID) + } + + if seenIDs[message.ID] { + t.Fatalf("duplicate message on first page: %s", message.ID) + } + + seenIDs[message.ID] = true + } + + // Используем cursor первой страницы для получения второй. + secondRequest := httptest.NewRequest( + http.MethodGet, + "/api/v1/chats/"+chat.ID+"/messages?limit=2&cursor="+ + url.QueryEscape(*firstPage.NextCursor), + nil, + ) + authorizeTestRequest(t, fixture, secondRequest, user.ID) + + secondResponse := httptest.NewRecorder() + + handler.ServeHTTP(secondResponse, secondRequest) + + if secondResponse.Code != http.StatusOK { + t.Fatalf( + "expected second page status %d, got %d; body: %s", + http.StatusOK, + secondResponse.Code, + secondResponse.Body.String(), + ) + } + + var secondPage messagePage + + if err := json.NewDecoder(secondResponse.Body).Decode(&secondPage); err != nil { + t.Fatalf("failed to decode second page: %v", err) + } + + if len(secondPage.Items) != 1 { + t.Fatalf( + "expected 1 message on second page, got %d", + len(secondPage.Items), + ) + } + + if secondPage.NextCursor != nil { + t.Fatalf("expected second page to be final, got cursor %q", *secondPage.NextCursor) + } + + // Проверяем, что вторая страница не повторяет первую. + for _, message := range secondPage.Items { + if seenIDs[message.ID] { + t.Fatalf("message repeated on second page: %s", message.ID) + } + + if !expectedIDs[message.ID] { + t.Fatalf("unexpected message ID on second page: %s", message.ID) + } + + seenIDs[message.ID] = true + } + + if len(seenIDs) != len(expectedIDs) { + t.Fatalf( + "pagination lost messages: expected %d unique messages, got %d", + len(expectedIDs), + len(seenIDs), + ) + } +} diff --git a/src/backend/tests/message_store_test.go b/src/backend/tests/message_store_test.go new file mode 100644 index 00000000..3d8c2c5b --- /dev/null +++ b/src/backend/tests/message_store_test.go @@ -0,0 +1,69 @@ +package tests + +import ( + "context" + "messenger/src/backend/services" + "testing" + "time" + + "github.com/google/uuid" +) + +func TestMessageLessUsesIDForEqualTimestamps(t *testing.T) { + createdAt := time.Date(2026, 9, 18, 12, 0, 0, 0, time.UTC) + first := Message{ID: "a", CreatedAt: createdAt} + second := Message{ID: "b", CreatedAt: createdAt} + if !services.MessageLess(first, second) || services.MessageLess(second, first) { + t.Fatal("equal timestamps must be ordered by ID") + } +} + +func TestListPageByChatUsesCursorAndLimit(t *testing.T) { + f := newTestFixture(t) + user, _ := createTestUser(t, f.users, "alice", "Алиса") + chat := createTestChat(t, f.chats, "Пагинация", []string{user.ID}) + other := createTestChat(t, f.chats, "Другой чат", []string{user.ID}) + createTestMessage(t, f.messages, other.ID, user.ID, "Не должно попасть в страницу") + createdAt := time.Date(2026, 9, 18, 12, 0, 0, 0, time.UTC) + ids := []string{ + "00000000-0000-4000-8000-000000000001", "00000000-0000-4000-8000-000000000002", + "00000000-0000-4000-8000-000000000003", "00000000-0000-4000-8000-000000000004", + } + // Insert in reverse order to exercise SQL ordering, including equal timestamps. + for i := len(ids) - 1; i >= 0; i-- { + at := createdAt + if i > 1 { + at = at.Add(time.Duration(i-1) * time.Second) + } + _, err := f.db.Exec(context.Background(), "INSERT INTO messages(id,chat_id,sender_id,text,created_at) VALUES($1,$2,$3,$4,$5)", ids[i], chat.ID, user.ID, "message", at) + if err != nil { + t.Fatal(err) + } + } + first, more, err := f.messages.ListPageByChat(context.Background(), chat.ID, nil, 2) + if err != nil { + t.Fatal(err) + } + if !more || len(first) != 2 || first[0].ID != ids[0] || first[1].ID != ids[1] { + t.Fatalf("unexpected first page: %v, more=%v", first, more) + } + cursor := &messageCursor{ChatID: chat.ID, CreatedAt: first[1].CreatedAt, MessageID: first[1].ID} + second, more, err := f.messages.ListPageByChat(context.Background(), chat.ID, cursor, 2) + if err != nil { + t.Fatal(err) + } + if more || len(second) != 2 || second[0].ID != ids[2] || second[1].ID != ids[3] { + t.Fatalf("unexpected second page: %v, more=%v", second, more) + } +} + +func TestListPageByChatReturnsNonNilEmptyPage(t *testing.T) { + f := newTestFixture(t) + page, more, err := f.messages.ListPageByChat(context.Background(), uuid.NewString(), nil, 100) + if err != nil { + t.Fatal(err) + } + if page == nil || len(page) != 0 || more { + t.Fatalf("unexpected empty page: %v, more=%v", page, more) + } +} diff --git a/src/backend/tests/security_test.go b/src/backend/tests/security_test.go new file mode 100644 index 00000000..2c0a40e5 --- /dev/null +++ b/src/backend/tests/security_test.go @@ -0,0 +1,79 @@ +package tests + +import ( + "bytes" + "context" + "messenger/src/backend/handlers" + "messenger/src/backend/services" + "net/http" + "net/http/httptest" + "testing" + "time" +) + +func TestPasswordKDFUsesSaltAndFullUTF8Password(t *testing.T) { + password := "длинный-пароль-с-эмодзи-🔒-0123456789" + first, err := services.HashPassword(password) + if err != nil { + t.Fatal(err) + } + second, err := services.HashPassword(password) + if err != nil { + t.Fatal(err) + } + if !bytes.HasPrefix(first, []byte("$argon2id$v=19$m=65536,t=3,p=2$")) || bytes.Equal(first, second) { + t.Fatal("password hashes must use Argon2id with independent salts") + } + valid, err := services.VerifyPassword(password, first) + if err != nil { + t.Fatal(err) + } + invalid, err := services.VerifyPassword(password+"другое", first) + if err != nil { + t.Fatal(err) + } + if !valid || invalid { + t.Fatal("Argon2id verification lost the full UTF-8 password") + } + if _, err := services.VerifyPassword(password, bytes.Repeat([]byte{1}, 64)); err == nil { + t.Fatal("legacy scrypt hash must not be accepted") + } +} + +func TestStoredPasswordUsesArgon2id(t *testing.T) { + fixture := newTestFixture(t) + user, _ := createTestUser(t, fixture.users, "alice", "Алиса") + var stored []byte + if err := fixture.db.QueryRow(context.Background(), "SELECT password_hash FROM users WHERE id=$1", user.ID).Scan(&stored); err != nil { + t.Fatal(err) + } + if !bytes.HasPrefix(stored, []byte("$argon2id$")) { + t.Fatalf("unexpected stored password hash format: %q", stored) + } +} + +func TestBearerRequiredIgnoresXUserID(t *testing.T) { + handler := handlers.NewRouter(nil, nil, nil, nil, nil) + request := httptest.NewRequest(http.MethodGet, "/api/v1/users/me", nil) + request.Header.Set("X-User-Id", "11111111-1111-4111-8111-111111111111") + response := httptest.NewRecorder() + handler.ServeHTTP(response, request) + if response.Code != 401 || response.Header().Get("WWW-Authenticate") != `Bearer realm="messenger"` { + t.Fatalf("unexpected response: %d %v", response.Code, response.Header()) + } +} + +func TestMessageCursorPreservesPosition(t *testing.T) { + original := messageCursor{ChatID: "11111111-1111-4111-8111-111111111111", CreatedAt: time.Date(2026, 9, 23, 10, 0, 0, 123000, time.UTC), MessageID: "22222222-2222-4222-8222-222222222222"} + token, err := services.EncodeMessageCursor(original) + if err != nil { + t.Fatal(err) + } + decoded, err := services.DecodeMessageCursor(token) + if err != nil { + t.Fatal(err) + } + if decoded != original { + t.Fatalf("cursor changed: %+v", decoded) + } +} diff --git a/src/backend/tests/test_fixture_test.go b/src/backend/tests/test_fixture_test.go new file mode 100644 index 00000000..a96f71e7 --- /dev/null +++ b/src/backend/tests/test_fixture_test.go @@ -0,0 +1,138 @@ +package tests + +import ( + "context" + "messenger/src/backend/handlers" + "messenger/src/backend/repositories" + "messenger/src/backend/services" + "net/http" + "os" + "strings" + "testing" + "time" + + "github.com/google/uuid" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgxpool" +) + +type testFixture struct { + db *pgxpool.Pool + users *repositories.UserStore + chats *repositories.ChatStore + messages *repositories.MessageStore + sessionStore *repositories.SessionStore + sessions *services.SessionService + router http.Handler +} + +// Each test owns a new schema; public application tables are never modified. +func newTestFixture(t *testing.T) *testFixture { + t.Helper() + url := os.Getenv("TEST_DATABASE_URL") + redisAddress := os.Getenv("TEST_REDIS_ADDR") + if url == "" || redisAddress == "" { + t.Skip("integration tests: run make test-backend, or set TEST_DATABASE_URL and TEST_REDIS_ADDR") + } + ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) + defer cancel() + admin, err := pgxpool.New(ctx, url) + if err != nil { + t.Fatal(err) + } + t.Cleanup(admin.Close) + schema := "test_" + strings.ReplaceAll(uuid.NewString(), "-", "") + identifier := pgx.Identifier{schema}.Sanitize() + if _, err = admin.Exec(ctx, "CREATE SCHEMA "+identifier); err != nil { + t.Fatal(err) + } + t.Cleanup(func() { + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + if _, err := admin.Exec(ctx, "DROP SCHEMA "+identifier+" CASCADE"); err != nil { + t.Errorf("cleanup test schema: %v", err) + } + }) + cfg, err := pgxpool.ParseConfig(url) + if err != nil { + t.Fatal(err) + } + cfg.ConnConfig.RuntimeParams["search_path"] = schema + db, err := pgxpool.NewWithConfig(ctx, cfg) + if err != nil { + t.Fatal(err) + } + t.Cleanup(db.Close) + ddl, err := os.ReadFile("../repositories/migrations/000001_initial.up.sql") + if err != nil { + t.Fatal(err) + } + if _, err = db.Exec(ctx, string(ddl)); err != nil { + t.Fatal(err) + } + ddl, err = os.ReadFile("../repositories/migrations/000002_redis_sessions.up.sql") + if err != nil { + t.Fatal(err) + } + if _, err = db.Exec(ctx, string(ddl)); err != nil { + t.Fatal(err) + } + redisClient := repositories.NewRedisClient(redisAddress) + t.Cleanup(func() { _ = redisClient.Close() }) + if err := redisClient.Ping(ctx).Err(); err != nil { + t.Fatal(err) + } + users := repositories.NewUserStore(db) + chats := repositories.NewChatStore(db) + messages := repositories.NewMessageStore(db) + userService := services.NewUserService(users) + sessionStore := repositories.NewSessionStore(redisClient, "test:"+schema+":session:") + sessions := services.NewSessionService(userService, sessionStore, time.Hour) + router := handlers.NewRouter(services.NewHealthService(repositories.NewHealthStore(db), sessionStore), userService, sessions, services.NewChatService(chats), services.NewMessageService(messages)) + return &testFixture{db: db, users: users, chats: chats, messages: messages, sessionStore: sessionStore, sessions: sessions, router: router} +} + +func createTestUser(t *testing.T, store *repositories.UserStore, username, name string) (repositories.User, bool) { + t.Helper() + user, err := services.NewUserService(store).Create(context.Background(), username, name, "lab2-test-password") + if err != nil { + t.Fatal(err) + } + return user, true +} + +func createTestChat(t *testing.T, store *repositories.ChatStore, title string, members []string) repositories.Chat { + t.Helper() + chat, err := store.Create(context.Background(), title, members) + if err != nil { + t.Fatal(err) + } + return chat +} + +func createTestMessage(t *testing.T, store *repositories.MessageStore, chatID, userID, text string) repositories.Message { + t.Helper() + message, err := store.Create(context.Background(), chatID, userID, text) + if err != nil { + t.Fatal(err) + } + return message +} + +func listTestMessages(t *testing.T, store *repositories.MessageStore, chatID string) []repositories.Message { + t.Helper() + items, _, err := store.ListPageByChat(context.Background(), chatID, nil, 100) + if err != nil { + t.Fatal(err) + } + return items +} + +func authorizeTestRequest(t *testing.T, fixture *testFixture, request *http.Request, userID string) { + t.Helper() + token, _, err := fixture.sessions.CreateForUser(request.Context(), userID) + if err != nil { + t.Fatal(err) + } + request.Header.Set("Authorization", "Bearer "+token) +} diff --git a/src/backend/tests/types_test.go b/src/backend/tests/types_test.go new file mode 100644 index 00000000..25e6b75c --- /dev/null +++ b/src/backend/tests/types_test.go @@ -0,0 +1,12 @@ +package tests + +import ( + "messenger/src/backend/repositories" + "messenger/src/backend/services" +) + +type User = repositories.User +type Chat = repositories.Chat +type Message = repositories.Message +type messagePage = services.MessagePage +type messageCursor = repositories.MessageCursor diff --git a/src/backend/tests/user_handler_test.go b/src/backend/tests/user_handler_test.go new file mode 100644 index 00000000..2e22feec --- /dev/null +++ b/src/backend/tests/user_handler_test.go @@ -0,0 +1,137 @@ +package tests + +import ( + "context" + "messenger/src/backend/handlers" + "messenger/src/backend/repositories" + "messenger/src/backend/services" + "net/http" + "net/http/httptest" + "strings" + "testing" +) + +func TestCreateUserInvalidJSON(t *testing.T) { + store := repositories.NewUserStore(nil) + handler := handlers.NewRouter(nil, services.NewUserService(store), nil, nil, nil) + + request := httptest.NewRequest( + http.MethodPost, + "/api/v1/users", + strings.NewReader(`{"username":`), + ) + request.Header.Set("Content-Type", "application/json") + + response := httptest.NewRecorder() + + handler.ServeHTTP(response, request) + + if response.Code != http.StatusBadRequest { + t.Fatalf( + "expected status %d, got %d; body: %s", + http.StatusBadRequest, + response.Code, + response.Body.String(), + ) + } + + if response.Header().Get("Content-Type") != "application/json" { + t.Fatalf( + "expected Content-Type application/json, got %q", + response.Header().Get("Content-Type"), + ) + } + + if response.Header().Get("X-Request-Id") == "" { + t.Fatal("expected non-empty X-Request-Id header") + } + + body := response.Body.String() + + if !strings.Contains(body, `"code":"invalid_request"`) { + t.Fatalf( + "expected invalid_request error code, got body: %s", + body, + ) + } + + if !strings.Contains(body, "request_id") { + t.Fatalf( + "expected request_id in error body, got body: %s", + body, + ) + } +} + +func TestCreateUserDuplicateUsername(t *testing.T) { + fixture := newTestFixture(t) + handler := fixture.router + + firstRequest := httptest.NewRequest( + http.MethodPost, + "/api/v1/users", + strings.NewReader(`{ + "username": "alice", + "display_name": "Алиса", "password": "lab2-test-password" + }`), + ) + firstRequest.Header.Set("Content-Type", "application/json") + + firstResponse := httptest.NewRecorder() + + handler.ServeHTTP(firstResponse, firstRequest) + + if firstResponse.Code != http.StatusCreated { + t.Fatalf( + "expected first request status %d, got %d; body: %s", + http.StatusCreated, + firstResponse.Code, + firstResponse.Body.String(), + ) + } + + secondRequest := httptest.NewRequest( + http.MethodPost, + "/api/v1/users", + strings.NewReader(`{ + "username": "alice", + "display_name": "Другая Алиса", "password": "lab2-test-password" + }`), + ) + secondRequest.Header.Set("Content-Type", "application/json") + + secondResponse := httptest.NewRecorder() + + handler.ServeHTTP(secondResponse, secondRequest) + + if secondResponse.Code != http.StatusConflict { + t.Fatalf( + "expected duplicate username status %d, got %d; body: %s", + http.StatusConflict, + secondResponse.Code, + secondResponse.Body.String(), + ) + } + + if secondResponse.Header().Get("X-Request-Id") == "" { + t.Fatal("expected non-empty X-Request-Id header") + } + + if !strings.Contains( + secondResponse.Body.String(), + `"code":"conflict"`, + ) { + t.Fatalf( + "expected conflict error code, got body: %s", + secondResponse.Body.String(), + ) + } + + var count int + if err := fixture.db.QueryRow(context.Background(), "SELECT count(*) FROM users").Scan(&count); err != nil { + t.Fatal(err) + } + if count != 1 { + t.Fatalf("expected one user, got %d", count) + } +} diff --git a/src/experiments/evidence/collect.py b/src/experiments/evidence/collect.py new file mode 100644 index 00000000..44e84ff4 --- /dev/null +++ b/src/experiments/evidence/collect.py @@ -0,0 +1,377 @@ +#!/usr/bin/env python3 +import argparse +import datetime as dt +import json +import os +import re +import shlex +import shutil +import subprocess +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[3] +sys.path.insert(0, str(ROOT / "tests")) +from client import Client + +CRITERIA = ( + ("01-smoke", "Публичный smoke и API"), + ("02-postgresql-schema", "Чистая схема PostgreSQL, ключи и индексы"), + ("03-chat-atomicity", "Атомарное создание чата"), + ("04-authentication", "Argon2id, Basic, Bearer, TTL и logout"), + ("05-session-persistence", "Сохранность данных и Redis-сессии"), + ("06-migrations", "Повторное применение и откат миграций"), + ("07-compose-secrets", "Стенд, тома и исключение секретов из Git"), + ("08-code-checks", "Проверки кода и race detector"), + ("09-resource-limits", "Пулы, таймауты и параметризованные SQL"), + ("10-dependency-failures", "Отказ Redis и PostgreSQL"), + ("11-history-10000", "План истории на 10 000 сообщений"), + ("12-track2-dataset", "Трек 2: объём и распределение истории"), + ("13-track2-indexes", "Трек 2: чтение и стоимость записи"), + ("14-track2-recovery", "Трек 2: backup и восстановление"), +) + + +def block(language, value): + return f"\n```{language}\n{value.rstrip()}\n```\n" + + +class Collector: + """Shared command execution, document writing and Compose configuration.""" + + def __init__(self, args): + self.args = args + self.env = dict(os.environ, COMPOSE_FILE=f"compose.yaml:{args.compose_override}", + COMPOSE_PROJECT_NAME=args.project) + self.compose = ["docker", "compose", "--env-file", ".env"] + self.track_compose = ["docker", "compose", "-f", "compose.track2.yaml", + "-p", f"messenger-track2-{args.track_run}"] + self.outdir = ROOT / "evidence/criteria" + self.track = ROOT / "evidence/track2" / args.track_run + self.test_output = "" + self.docs = {} + self.outdir.mkdir(parents=True, exist_ok=True) + now = dt.datetime.now(dt.timezone.utc).isoformat() + for key, title in CRITERIA: + path = self.outdir / f"{key}.md" + if args.resume_after_migrations and path.exists(): + self.docs[key] = path.read_text() + else: + self.docs[key] = ( + f"# {title}\n\nДата сбора: `{now}`.\n\n" + "Команды выполняются в корне репозитория, Linux/WSL. " + f"Контекст Compose: `COMPOSE_PROJECT_NAME={args.project}`, " + f"`COMPOSE_FILE={self.env['COMPOSE_FILE']}`. " + "Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md).\n" + ) + + def append(self, key, value): + self.docs[key] += "\n" + value + (self.outdir / f"{key}.md").write_text(self.docs[key], encoding="utf-8") + + def reference(self, key, path, label=None): + target = ROOT / path + if not target.is_file(): + raise FileNotFoundError(target) + relative = os.path.relpath(target, self.outdir).replace(os.sep, "/") + self.append(key, f"Файл: [{label or path}]({relative}).\n") + + def run(self, key, argv, input=None): + result = subprocess.run(argv, cwd=ROOT, env=self.env, input=input, text=True, + stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=False) + content = "### Команда\n" + block("sh", shlex.join(argv)) + if input is not None: + content += "\n### SQL, переданный на stdin\n" + block("sql", input) + content += "\n### Фактический вывод\n" + block("text", result.stdout or "(вывода нет)") + content += f"\nКод завершения: `{result.returncode}`.\n" + self.append(key, content) + if result.returncode != 0: + raise RuntimeError(f"{shlex.join(argv)}: exit={result.returncode}") + print(f"{key}: {shlex.join(argv[:4])} exit=0", flush=True) + return result.stdout + + def sql(self, key, query, database=None): + database_arg = shlex.quote(database) if database else '"$POSTGRES_DB"' + return self.run(key, self.compose + ["exec", "-T", "db", "sh", "-c", + f'exec psql -X -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d {database_arg}'], input=query) + + def track_sql(self, key, query, service="restore"): + return self.run(key, self.track_compose + ["exec", "-T", service, "psql", "-X", + "-v", "ON_ERROR_STOP=1", "-U", "track2", "-d", "messenger_track2"], input=query) + + def test_excerpt(self, key, names, path): + selected = [] + include = False + for line in self.test_output.splitlines(): + if line.startswith("=== RUN"): + include = any(name in line for name in names) + if include: + selected.append(line) + if not selected: + raise ValueError(f"No test output for {key}: {names}") + self.append(key, "### Выполненная команда\n" + block("sh", "make test-backend") + + "\nФрагмент фактического вывода полного запуска " + "[08-code-checks.md](08-code-checks.md); тесты не запускались выборочно.\n" + + block("text", "\n".join(selected)) + "\nКод завершения полного запуска: `0`.\n") + self.reference(key, path) + + def recorded_experiment(self, key): + self.append(key, "### Ранее выполненный эксперимент\n" + + block("sh", f"make track2-run RUN_ID={self.args.track_run}")) + output_path = self.track / "run-output.txt" + if output_path.exists(): + output = output_path.read_text() + if f"messenger-track2-{self.args.track_run};" not in output: + raise ValueError("Recorded experiment stdout does not match --track-run") + self.append(key, "Сохранённый stdout завершённого прогона " + "(локальный путь архива опущен):\n" + block("text", output)) + else: + journal = [json.loads(line) for line in + (self.track / "commands.jsonl").read_text().splitlines()] + if not journal or any(item["exit_code"] != 0 for item in journal): + raise ValueError("Recorded experiment command journal is empty or contains failures") + self.append(key, "Команды и фактические коды завершения сохранены в журнале прогона.") + self.reference(key, "src/experiments/track2/run.py") + self.reference(key, str(self.track.relative_to(ROOT) / "commands.jsonl")) + + def recorded_json(self, key, name): + self.append(key, f"### Сохранённый результат: `{name}`\n" + + block("json", (self.track / name).read_text())) + + +def collect_smoke(c): + c.run("01-smoke", ["make", "test", f"BASE_URL={c.args.base_url}"]) + c.append("01-smoke", "### Проверка API через прокси frontend\n") + c.run("01-smoke", ["make", "test", f"BASE_URL={c.args.frontend_url}"]) + c.reference("01-smoke", "tests/smoke.py") + + +def collect_postgresql_schema(c): + c.sql("02-postgresql-schema", """SELECT version, dirty FROM schema_migrations; +SELECT tablename FROM pg_tables WHERE schemaname='public' ORDER BY tablename; +SELECT table_name, column_name, data_type FROM information_schema.columns +WHERE table_schema='public' ORDER BY table_name, ordinal_position; +SELECT conrelid::regclass AS table_name, conname, pg_get_constraintdef(oid) +FROM pg_constraint WHERE connamespace='public'::regnamespace ORDER BY 1,2; +SELECT tablename,indexname,indexdef FROM pg_indexes WHERE schemaname='public' ORDER BY 1,2; +SELECT (SELECT count(*) FROM users) AS users, (SELECT count(*) FROM chats) AS chats, +(SELECT count(*) FROM chat_members) AS members, (SELECT count(*) FROM messages) AS messages; +""") + + +def collect_chat_atomicity(c): + c.test_excerpt("03-chat-atomicity", ["TestChatTransactionRollsBackAfterMemberInsertFailure", + "TestConcurrentRegistrationSameUsername"], "src/backend/tests/grade4_test.go") + + +def collect_authentication(c): + key = "04-authentication" + c.test_excerpt(key, ["TestShortSessionTTLAndLogout", "TestWrongPasswordAndLogoutHTTP"], + "src/backend/tests/grade4_test.go") + c.test_excerpt(key, ["TestStoredPasswordUsesArgon2id", "TestPasswordKDFUsesSaltAndFullUTF8Password", + "TestBearerRequiredIgnoresXUserID"], "src/backend/tests/security_test.go") + c.append(key, "Basic и Bearer через HTTP также проверены " + "публичным сценарием: [01-smoke.md](01-smoke.md).") + + +def collect_session_persistence(c): + key = "05-session-persistence" + c.reference(key, "scripts/restart.sh") + c.run(key, c.compose + ["exec", "-T", "redis", "redis-cli", "CONFIG", "GET", + "appendonly", "appendfsync"]) + c.run(key, ["make", "test-persistence", f"BASE_URL={c.args.base_url}", + "ACTION_SCRIPT=scripts/restart.sh"]) + c.run(key, c.compose + ["ps"]) + + +def collect_migrations(c): + key = "06-migrations" + database = "evidence_migrations" + c.sql(key, f"CREATE DATABASE {database};") + for direction in ("up", "up", "down", "up"): + c.run(key, c.compose + ["run", "--rm", "--no-deps", "--entrypoint", "/bin/sh", + "api", "-c", 'DATABASE_URL="${DATABASE_URL%/*}/' + database + + '?sslmode=disable" ./messenger migrate ' + direction]) + query = "SELECT version,dirty FROM schema_migrations;" + query += (" SELECT count(*) FROM sessions;" if direction == "down" else + " SELECT to_regclass('public.sessions');") + c.sql(key, query, database) + + +def collect_compose_secrets(c): + key = "07-compose-secrets" + if c.args.resume_after_migrations: + c.run(key, c.compose + ["up", "-d", "--wait"]) + return + volumes = ["docker", "volume", "ls", "--filter", + f"label=com.docker.compose.project={c.args.project}"] + if c.run(key, volumes + ["-q"]).strip(): + raise RuntimeError("Use a new project name: existing volumes detected") + c.append(key, "### Окружение\n" + block("sh", + f"export COMPOSE_PROJECT_NAME={c.args.project}\n" + f"export COMPOSE_FILE={c.env['COMPOSE_FILE']}")) + c.reference(key, c.args.compose_override) + c.reference(key, "compose.yaml") + c.run(key, c.compose + ["config", "--quiet"]) + c.run(key, ["git", "check-ignore", ".env"]) + c.run(key, ["git", "ls-files", ".env"]) + c.run(key, ["make", "app-up"]) + c.run(key, c.compose + ["ps"]) + c.run(key, volumes) + + +def collect_code_checks(c): + key = "08-code-checks" + c.run(key, ["make", "check"]) + c.test_output = c.run(key, ["make", "test-backend"]) + c.run(key, c.compose + ["run", "--rm", "--no-deps", "backend-tests", + "go", "vet", "./src/backend/..."]) + c.run(key, c.compose + ["exec", "-T", "frontend", "npm", "run", "build"]) + + +def collect_resource_limits(c): + key = "09-resource-limits" + search = ["rg", "-n"] if shutil.which("rg") else ["grep", "-nE"] + c.run(key, search + [ + ("MaxConns|ConnectTimeout|queryTimeout|PoolSize|DialTimeout|ReadTimeout|" + "WriteTimeout|ReadHeaderTimeout|IdleTimeout|MaxRetries"), + "src/backend/repositories/database.go", "src/backend/repositories/timeout.go", + "src/backend/repositories/redis.go", "src/backend/main.go", + ]) + c.reference(key, "src/backend/repositories/message.go") + c.append(key, "Тесты отказов и их полный вывод: [08-code-checks.md](08-code-checks.md).") + + +def collect_dependency_failures(c): + key = "10-dependency-failures" + c.reference(key, "src/experiments/evidence/collect.py", "Сценарий collect_dependency_failures") + client = Client(c.args.base_url) + alice, _, _, _ = client.bootstrap() + + def check_http(path, expected, actor=None): + response = client.call("GET", path, expected, actor=actor) + auth = "Bearer" if actor else "anonymous" + c.append(key, block("text", f"GET {path} [{auth}] -> HTTP {response['status']}")) + + check_http("/health/ready", 200) + check_http("/api/v1/users/me", 200, alice) + for dependency in ("redis", "db"): + c.run(key, c.compose + ["stop", dependency]) + try: + check_http("/health/ready", 503) + check_http("/api/v1/users/me", 503, alice) + check_http("/api/v1/users/me", 401) + finally: + c.run(key, c.compose + ["up", "-d", "--wait", dependency]) + check_http("/health/ready", 200) + check_http("/api/v1/users/me", 200, alice) + c.append(key, "PASS: обе зависимости восстановлены; " + "в проверках до и после остановки использован один и тот же токен.") + + +def collect_history_10000(c): + c.test_excerpt("11-history-10000", ["TestHistoryQueryPlanAtTenThousandMessages"], + "src/backend/tests/grade4_test.go") + + +def collect_track2_dataset(c): + key = "12-track2-dataset" + c.recorded_experiment(key) + c.reference(key, "src/experiments/track2/seed.sql") + c.track_sql(key, """SELECT count(*) AS total FROM messages; +SELECT chat_id,count(*) FROM messages GROUP BY chat_id ORDER BY chat_id; +""") + + +def collect_track2_indexes(c): + key = "13-track2-indexes" + c.recorded_experiment(key) + c.reference(key, str(c.track.relative_to(ROOT) / "queries.sql")) + for name in ("reads.json", "writes.json", "sizes.json", "read-base-large-late.json", + "read-base-large-offset.json", "read-covering-large-late.json", "write-base.json"): + c.recorded_json(key, name) + + +def collect_track2_recovery(c): + key = "14-track2-recovery" + c.recorded_experiment(key) + journal = [json.loads(line) for line in (c.track / "commands.jsonl").read_text().splitlines()] + commands = [item for item in journal if any( + arg in ("pg_dump", "pg_restore", "restore") for arg in item["command"])] + c.append(key, "### Команды dump/restore и запуска нового хранилища из журнала\n" + + block("json", json.dumps(commands, ensure_ascii=False, indent=2))) + for name in ("recovery.json", "first-query.json"): + c.recorded_json(key, name) + for service in ("source", "restore"): + c.track_sql(key, """SELECT count(*) AS messages FROM messages; +SELECT count(*) AS post_backup_marker FROM messages +WHERE id='33333333-3333-4333-8333-333333333333'; +""", service) + c.run(key, ["python3", "-c", + "import json; from pathlib import Path; " + f"r=json.loads(Path({str(c.track.relative_to(ROOT) / 'recovery.json')!r}).read_text()); " + "assert r['expected'] == r['actual']; " + "assert r['marker_source'] == 1 and r['marker_restore'] == 0; " + "print('PASS: counts, distribution, nine samples and post-backup marker')"]) + + +def update_report(): + report = ROOT / "REPORT.md" + rows = report.read_text().splitlines() + index = 0 + in_criteria = False + for i, row in enumerate(rows): + if row.startswith(("| Критерий README |", "| Критерий трека 2 |")): + in_criteria = True + continue + if not row.startswith("|"): + in_criteria = False + if in_criteria and row.startswith("| ") and len(row.split("|")) == 6: + cells = row.split("|") + if cells[1].strip() != "---": + key, title = CRITERIA[index] + cells[4] = f" [{title}](evidence/criteria/{key}.md) " + rows[i] = "|".join(cells) + index += 1 + if index != len(CRITERIA): + raise ValueError(f"Expected {len(CRITERIA)} criteria, found {index}") + report.write_text("\n".join(rows) + "\n", encoding="utf-8") + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--project", required=True) + parser.add_argument("--base-url", default="http://localhost:18080") + parser.add_argument("--frontend-url", default="http://localhost:15173") + parser.add_argument("--compose-override", default="src/experiments/evidence/compose.override.yaml") + parser.add_argument("--track-run", default="20261001-c") + parser.add_argument("--resume-after-migrations", action="store_true", + help="Continue an interrupted collection after successful migrations") + args = parser.parse_args() + if not re.fullmatch(r"messenger-evidence-[a-z0-9-]+", args.project): + parser.error("project must start with messenger-evidence-") + c = Collector(args) + collect_compose_secrets(c) + try: + if not args.resume_after_migrations: + collect_postgresql_schema(c) + collect_smoke(c) + collect_code_checks(c) + collect_chat_atomicity(c) + collect_authentication(c) + collect_history_10000(c) + collect_session_persistence(c) + collect_migrations(c) + collect_resource_limits(c) + collect_dependency_failures(c) + finally: + c.run("07-compose-secrets", c.compose + ["down"]) + collect_track2_dataset(c) + collect_track2_indexes(c) + collect_track2_recovery(c) + update_report() + print("PASS: 14 separate criterion documents; REPORT evidence links updated", flush=True) + + +if __name__ == "__main__": + main() diff --git a/src/experiments/evidence/compose.override.yaml b/src/experiments/evidence/compose.override.yaml new file mode 100644 index 00000000..47863f9e --- /dev/null +++ b/src/experiments/evidence/compose.override.yaml @@ -0,0 +1,7 @@ +services: + api: + ports: !override + - "127.0.0.1:18080:8080" + frontend: + ports: !override + - "127.0.0.1:15173:5173" diff --git a/src/experiments/track2/run.py b/src/experiments/track2/run.py new file mode 100644 index 00000000..a3d6df2a --- /dev/null +++ b/src/experiments/track2/run.py @@ -0,0 +1,399 @@ +import argparse +import hashlib +import json +import re +import statistics +import subprocess +import time +from datetime import datetime, timezone +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[3] +CHATS = [ + ("large", "22222222-2222-4222-8222-222222222221", 100000), + ("medium", "22222222-2222-4222-8222-222222222222", 15000), + ("small", "22222222-2222-4222-8222-222222222223", 5000), +] +USER = "11111111-1111-4111-8111-111111111111" +MARKER = "33333333-3333-4333-8333-333333333333" +EVENT_LOG = None + + +def command(args, data=None): + started = time.perf_counter() + result = subprocess.run( + args, check=False, cwd=ROOT, input=data, capture_output=True + ) + if EVENT_LOG: + with EVENT_LOG.open("a", encoding="utf-8") as stream: + stream.write( + json.dumps( + { + "utc": datetime.now(timezone.utc).isoformat(), + "command": args, + "seconds": time.perf_counter() - started, + "exit_code": result.returncode, + } + ) + + "\n" + ) + if result.returncode: + raise RuntimeError(result.stderr.decode(errors="replace")) + return result.stdout + + +def main(): + global EVENT_LOG + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("action", choices=["run", "status", "stop", "clean"]) + parser.add_argument("--run-id", required=True) + args = parser.parse_args() + if not re.fullmatch(r"[a-z0-9][a-z0-9-]{0,39}", args.run_id): + parser.error("RUN_ID must contain 1-40 lowercase letters, digits or hyphens") + project = "messenger-track2-" + args.run_id + compose = ["docker", "compose", "-f", "compose.track2.yaml", "-p", project] + output = ROOT / "backups" / "track2" / args.run_id + if args.action != "run": + action = { + "status": ["ps", "-a"], + "stop": ["stop"], + "clean": ["down", "--volumes"], + }[args.action] + print(command(compose + action).decode()) + return + # Never reuse an existing project, volume or output directory. + volumes = command( + [ + "docker", + "volume", + "ls", + "-q", + "--filter", + "label=com.docker.compose.project=" + project, + ] + ).strip() + containers = command( + [ + "docker", + "ps", + "-aq", + "--filter", + "label=com.docker.compose.project=" + project, + ] + ).strip() + if output.exists() or volumes or containers: + parser.error("RUN_ID already exists; use a new RUN_ID (archives are retained)") + output.mkdir(parents=True) + EVENT_LOG = output / "commands.jsonl" + (output / "protocol-before-run.md").write_bytes( + (ROOT / "evidence" / "track2.md").read_bytes() + ) + + def save(name, value): + (output / name).write_text( + json.dumps(value, ensure_ascii=False, indent=2) + "\n", encoding="utf-8" + ) + + def sql(query, service="source"): + return ( + command( + compose + + [ + "exec", + "-T", + service, + "psql", + "-X", + "-qAt", + "-v", + "ON_ERROR_STOP=1", + "-U", + "track2", + "-d", + "messenger_track2", + ], + query.encode(), + ) + .decode() + .strip() + ) + + statements = [] + + def explain(query, name, wal=False): + statements.append("-- " + name + "\n" + query + ";") + plans = [] + for trial in range(8): + plan = json.loads( + sql( + "EXPLAIN (ANALYZE, BUFFERS, " + + ("WAL, " if wal else "") + + "FORMAT JSON) " + + query + ) + )[0] + if trial: + plans.append(plan) + save(name + ".json", plans) + times = [p["Execution Time"] for p in plans] + node = plans[0]["Plan"] + while node.get("Plans"): + node = node["Plans"][0] + return { + "name": name, + "median_ms": statistics.median(times), + "min_ms": min(times), + "max_ms": max(times), + "scan": node["Node Type"], + "index": node.get("Index Name"), + "scan_rows": node.get("Actual Rows"), + "heap_fetches": node.get("Heap Fetches"), + "shared_hit": plans[0]["Plan"].get("Shared Hit Blocks", 0), + "shared_read": plans[0]["Plan"].get("Shared Read Blocks", 0), + } + + print("Starting isolated source database", flush=True) + command(compose + ["up", "-d", "--wait", "source"]) + command(compose + ["run", "--build", "--rm", "migrator"]) + sql((Path(__file__).parent / "seed.sql").read_text(encoding="utf-8")) + manifest = { + "started_utc": datetime.now(timezone.utc).isoformat(), + "run_id": args.run_id, + "base_commit": command(["git", "rev-parse", "HEAD"]).decode().strip(), + "dirty": bool(command(["git", "status", "--porcelain"]).strip()), + "docker_version": command( + ["docker", "version", "--format", "{{.Server.Version}}"] + ) + .decode() + .strip(), + "docker_resources": command( + ["docker", "info", "--format", "{{.NCPU}} CPUs; {{.MemTotal}} bytes RAM"] + ) + .decode() + .strip(), + "postgres": sql("SELECT version()"), + "page_size": 50, + "warmup": 1, + "repetitions": 7, + "settings": json.loads( + sql( + "SELECT json_object_agg(name,setting) FROM pg_settings WHERE name IN ('shared_buffers','work_mem','effective_cache_size','fsync','synchronous_commit','full_page_writes','max_parallel_workers_per_gather')" + ) + ), + "container_limits": command( + [ + "docker", + "inspect", + "--format", + "image={{.Image}} memory_limit={{.HostConfig.Memory}} nano_cpus={{.HostConfig.NanoCpus}}", + project + "-source-1", + ] + ) + .decode() + .strip(), + "source_hashes": { + str(p.relative_to(ROOT)): hashlib.sha256(p.read_bytes()).hexdigest() + for p in [ + Path(__file__), + Path(__file__).parent / "seed.sql", + ROOT / "compose.track2.yaml", + ROOT / "evidence" / "track2.md", + ] + + sorted((ROOT / "src/backend/repositories/migrations").glob("*.sql")) + }, + } + save("manifest.json", manifest) + reads = [] + sizes = {} + for variant in ["base", "covering"]: + if variant == "covering": + sql( + "DROP INDEX messages_history_idx; CREATE INDEX messages_history_covering_idx ON messages(chat_id,created_at,id) INCLUDE(sender_id,text)" + ) + sql("VACUUM (ANALYZE) messages") + sizes[variant] = json.loads( + sql( + "SELECT json_build_object('table_bytes',pg_relation_size('messages'),'index_bytes',pg_relation_size('" + + ( + "messages_history_idx" + if variant == "base" + else "messages_history_covering_idx" + ) + + "'))" + ) + ) + for label, chat, count in CHATS: + depth = int(count * 0.9) + cursor = sql( + f"SELECT created_at::text || '|' || id::text FROM messages WHERE chat_id='{chat}' ORDER BY created_at,id OFFSET {depth - 1} LIMIT 1" + ) + stamp, identity = cursor.split("|") + select = f"SELECT id,chat_id,sender_id,text,created_at FROM messages WHERE chat_id='{chat}'" + first = ( + select + + " AND (created_at,id)>('0001-01-01'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid) ORDER BY created_at,id LIMIT 50" + ) + late = ( + select + + f" AND (created_at,id)>('{stamp}'::timestamptz,'{identity}'::uuid) ORDER BY created_at,id LIMIT 50" + ) + offset = select + f" ORDER BY created_at,id OFFSET {depth} LIMIT 50" + if sql(late) != sql(offset): + raise RuntimeError("Cursor and OFFSET results differ") + for kind, query in [("first", first), ("late", late), ("offset", offset)]: + reads.append(explain(query, f"read-{variant}-{label}-{kind}")) + print("Read measurements complete: " + variant, flush=True) + sql( + "DROP INDEX messages_history_covering_idx; CREATE INDEX messages_history_idx ON messages(chat_id,created_at,id)" + ) + writes = [] + sql( + "CREATE TABLE write_input AS SELECT * FROM messages ORDER BY chat_id,created_at,id LIMIT 10000" + ) + for variant in ["none", "base", "covering"]: + sql( + "CREATE TABLE write_bench (LIKE messages INCLUDING CONSTRAINTS); ALTER TABLE write_bench ADD PRIMARY KEY(id)" + ) + if variant != "none": + sql( + "CREATE INDEX write_history_idx ON write_bench(chat_id,created_at,id)" + + (" INCLUDE(sender_id,text)" if variant == "covering" else "") + ) + plans = [] + query = "INSERT INTO write_bench SELECT * FROM write_input ORDER BY chat_id,created_at,id" + statements.append( + "-- write-" + variant + " (TRUNCATE before each trial)\n" + query + ";" + ) + for trial in range(8): + sql("TRUNCATE write_bench") + plan = json.loads( + sql("EXPLAIN (ANALYZE, BUFFERS, WAL, FORMAT JSON) " + query) + )[0] + if trial: + plans.append(plan) + save("write-" + variant + ".json", plans) + times = [p["Execution Time"] for p in plans] + writes.append( + { + "variant": variant, + "median_ms": statistics.median(times), + "min_ms": min(times), + "max_ms": max(times), + "median_wal_bytes": statistics.median( + p["Plan"]["WAL Bytes"] for p in plans + ), + "index_bytes": int(sql("SELECT pg_indexes_size('write_bench')")), + } + ) + sql("DROP TABLE write_bench") + sql("DROP TABLE write_input") + save("reads.json", reads) + save("writes.json", writes) + save("sizes.json", sizes) + (output / "queries.sql").write_text( + "\n\n".join(statements) + "\n", encoding="utf-8" + ) + + def snapshot(service): + counts = { + table: int(sql("SELECT count(*) FROM " + table, service)) + for table in [ + "users", + "chats", + "chat_members", + "messages", + "schema_migrations", + ] + } + distribution = sql( + "SELECT chat_id,count(*) FROM messages GROUP BY chat_id ORDER BY chat_id", + service, + ) + samples = [] + for _, chat, count in CHATS: + for position in [0, count // 2, count - 1]: + samples.append( + sql( + f"SELECT row_to_json(m) FROM (SELECT * FROM messages WHERE chat_id='{chat}' ORDER BY created_at,id OFFSET {position} LIMIT 1) m", + service, + ) + ) + return {"counts": counts, "distribution": distribution, "samples": samples} + + expected = snapshot("source") + print("Creating backup and restoring into a new volume", flush=True) + started = time.perf_counter() + dump = command( + compose + + [ + "exec", + "-T", + "source", + "pg_dump", + "-U", + "track2", + "-d", + "messenger_track2", + "-Fc", + ] + ) + dump_seconds = time.perf_counter() - started + (output / "messenger.dump").write_bytes(dump) + sql( + f"INSERT INTO messages VALUES ('{MARKER}','{CHATS[0][1]}','{USER}','After backup marker','2026-01-02')" + ) + available_started = time.perf_counter() + command(compose + ["up", "-d", "--wait", "restore"]) + restore_started = time.perf_counter() + command( + compose + + [ + "exec", + "-T", + "restore", + "pg_restore", + "--exit-on-error", + "--no-owner", + "--no-acl", + "-U", + "track2", + "-d", + "messenger_track2", + ], + dump, + ) + restore_seconds = time.perf_counter() - restore_started + actual = snapshot("restore") + if expected != actual: + raise RuntimeError("Restored snapshot differs") + if ( + sql(f"SELECT count(*) FROM messages WHERE id='{MARKER}'") != "1" + or sql(f"SELECT count(*) FROM messages WHERE id='{MARKER}'", "restore") != "0" + ): + raise RuntimeError("Post-backup marker check failed") + recovery = { + "dump_seconds": dump_seconds, + "dump_bytes": len(dump), + "dump_sha256": hashlib.sha256(dump).hexdigest(), + "restore_seconds": restore_seconds, + "startup_restore_verify_seconds": time.perf_counter() - available_started, + "expected": expected, + "actual": actual, + "match": True, + "marker_source": 1, + "marker_restore": 0, + } + save("recovery.json", recovery) + # Sanitized, compact evidence; raw archive stays ignored. + evidence = ROOT / "evidence" / "track2" / args.run_id + evidence.mkdir(parents=True, exist_ok=False) + for p in output.glob("*.json"): + (evidence / p.name).write_bytes(p.read_bytes()) + (evidence / "queries.sql").write_bytes((output / "queries.sql").read_bytes()) + for name in ["commands.jsonl", "protocol-before-run.md"]: + (evidence / name).write_bytes((output / name).read_bytes()) + print(f"PASS: {project}; evidence: {evidence}; archive: {output}", flush=True) + + +if __name__ == "__main__": + main() diff --git a/src/experiments/track2/seed.sql b/src/experiments/track2/seed.sql new file mode 100644 index 00000000..21bd450e --- /dev/null +++ b/src/experiments/track2/seed.sql @@ -0,0 +1,24 @@ +INSERT INTO users (id, username, display_name, password_hash, created_at) +VALUES ('11111111-1111-4111-8111-111111111111', 'track2_benchmark', + 'Track 2 benchmark', decode('00', 'hex'), '2026-01-01 00:00:00+00'); + +INSERT INTO chats (id, title, created_at) VALUES + ('22222222-2222-4222-8222-222222222221', 'Track 2 large', '2026-01-01 00:00:00+00'), + ('22222222-2222-4222-8222-222222222222', 'Track 2 medium', '2026-01-01 00:00:00+00'), + ('22222222-2222-4222-8222-222222222223', 'Track 2 small', '2026-01-01 00:00:00+00'); + +INSERT INTO chat_members (chat_id, user_id) +SELECT id, '11111111-1111-4111-8111-111111111111'::uuid FROM chats; + +INSERT INTO messages (id, chat_id, sender_id, text, created_at) +SELECT md5('track2:' || sizes.chat_id::text || ':' || n::text)::uuid, + sizes.chat_id, + '11111111-1111-4111-8111-111111111111'::uuid, + 'Track 2 message ' || n::text || ' in ' || sizes.label, + '2026-01-01 00:00:00+00'::timestamptz + n * interval '1 microsecond' +FROM (VALUES + ('22222222-2222-4222-8222-222222222221'::uuid, 'large', 100000), + ('22222222-2222-4222-8222-222222222222'::uuid, 'medium', 15000), + ('22222222-2222-4222-8222-222222222223'::uuid, 'small', 5000) +) AS sizes(chat_id, label, message_count) +CROSS JOIN LATERAL generate_series(1, sizes.message_count) AS n; diff --git a/src/frontend/.dockerignore b/src/frontend/.dockerignore new file mode 100644 index 00000000..f06235c4 --- /dev/null +++ b/src/frontend/.dockerignore @@ -0,0 +1,2 @@ +node_modules +dist diff --git a/src/frontend/.gitignore b/src/frontend/.gitignore new file mode 100644 index 00000000..c605a04f --- /dev/null +++ b/src/frontend/.gitignore @@ -0,0 +1,8 @@ +node_modules/ +dist/ +.vite/ +*.tsbuildinfo +*.local +.env +.env.* +!.env.example diff --git a/src/frontend/Dockerfile b/src/frontend/Dockerfile new file mode 100644 index 00000000..e0503fd2 --- /dev/null +++ b/src/frontend/Dockerfile @@ -0,0 +1,12 @@ +FROM node:22-bookworm-slim + +WORKDIR /app + +COPY package.json package-lock.json ./ +RUN npm ci + +COPY . . + +EXPOSE 5173 + +CMD ["npm", "run", "dev"] diff --git a/src/frontend/index.html b/src/frontend/index.html new file mode 100644 index 00000000..84dd5c30 --- /dev/null +++ b/src/frontend/index.html @@ -0,0 +1,12 @@ + + + + + + Мессенджер · проверка API + + +
+ + + diff --git a/src/frontend/package-lock.json b/src/frontend/package-lock.json new file mode 100644 index 00000000..962e48c1 --- /dev/null +++ b/src/frontend/package-lock.json @@ -0,0 +1,1288 @@ +{ + "name": "messenger-test-ui", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "messenger-test-ui", + "version": "1.0.0", + "dependencies": { + "react": "19.3.0", + "react-dom": "19.3.0" + }, + "devDependencies": { + "@types/node": "^22.15.0", + "@types/react": "19.3.0", + "@types/react-dom": "19.3.0", + "@vitejs/plugin-react": "6.1.1", + "typescript": "7.0.2", + "vite": "8.3.0" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.151.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.151.0.tgz", + "integrity": "sha512-J1yXrIlNDZVzE3ada310xeAw7nH8yCAyLPuUIsjKatFPmfn5bS1oW+cM+QsGOtVWd5nhSpbwZWx/rue+r5Z+PA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.10.tgz", + "integrity": "sha512-bp9svZb+QurZeh+8H4BhrZkifEB0YBNvTVzNSJnJQkj4NrRwmQoDUCGP0vSN7PbvLeM7l1tK6GXL8mrTiH2myg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.10.tgz", + "integrity": "sha512-wm6Dld3RXUAZ/gRWKyUy+4W1B5CB5UeFaOzsSWJWEdxZXHH8rCYiZ5dGe6oJmhsunAPWzL7FZV+VtvmN5Ye2eA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.10.tgz", + "integrity": "sha512-UbEfXq/AqGNgRTV3ik+X/iR6mUxu2QdYAadwRxJWquUGnW6gDqdP1FtLtFXRow7RJx0ssRwi80XAPr4r+4DtsA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.10.tgz", + "integrity": "sha512-7f5h17q5KZVx/ji1vb8OTq31ch1O2I7K8NPIr44GkyWTApXMIsmhWqZfgpOH10xeauqghDAvGlZktasCkcF6Eg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.10.tgz", + "integrity": "sha512-ynOk/eEYhC6ZB2xCGvKrEOwE58oBy9LnrAqtkrDF9Fz1VTaNdGZTsV0VarJdhPwb+sOJTGjCLwcuyRJZ1dnMcQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.10.tgz", + "integrity": "sha512-ERrAs185meZZhGan7a4l3RiiJK1ArSDlHdST++uvSxe+FDbR4TwUPahT/cbZJvaG6fIpDpF78surN+tX708Y4Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.10.tgz", + "integrity": "sha512-KN7OHKD0J3jy1UzBwZWPxpwhODf9IARUIJcrH+yLYKOcmegZ8luEUM38lDP1bDVj40yP6PsSzCqOJF76vljFnQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.10.tgz", + "integrity": "sha512-8l9wP8O+wa8zD6iw6egSfzVtu7oZVfH3hlUsMM4MwbLMhxleqeoXbZzjddyK3YyNlwLhqznq3tF7PkNJ8T/V2w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.10.tgz", + "integrity": "sha512-SeXNKeQzA5kLhz/J0CH6ZP0/HJ3v1xm/0YbiYpE0kK7emfRC2OIGGIaE14xzkISEGv2aYuUSpiLiU5Gbq+OI0A==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.10.tgz", + "integrity": "sha512-mtht0nR+y8/hart4175Ll15w7lY8dg7CtQ+j2FDNTsDRspOWTK/2V3l0aj9sIj7XmvqxT8Yli/wq22e7feTTWg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.10.tgz", + "integrity": "sha512-FSM94nGd55NYo48usCyM/nHfUKRnqc9+b0vJNuKV0oCCpIp/OGims7rO1Nv/DkFkt0S/s2rxsJ2kkS8J3HcpeA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.10.tgz", + "integrity": "sha512-C3YxNB16myRLs7o+B+6PnQ6jBsdIS4+AE4Ah8glVGhDpEv9AOvxhZ/1duAb4B0UGczEK/lBbccksd8VI+p6zfw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.10.tgz", + "integrity": "sha512-571TlE/F1eeTjjdjYAMMMPs1Mfv3MtX6s3+ZKVU6HiUjZ5Njc6c/qzNy/8K3zALTZnaw3JQVYrHxvNfjm43KAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.10.tgz", + "integrity": "sha512-QXW+ZWaiqs2c7Fi++D/SsW07LTPcUrncxcskJGfGNBoaLik1IU6fJymz4HsqwEO0u5Iq11yTO0B/mc4cPk7jrQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.10.tgz", + "integrity": "sha512-5FQFGgah17YeMtG1Yd5a+rMxQpTksyNXxRtKz06FVTaQw3RKYUJQbUoKk0/5jrXBpDo+7makNP7UHA2LQyH64A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.20.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.4.tgz", + "integrity": "sha512-zJRE40jpHtKqE/C4fgHrAKQLJuSpzEnP9ff9Y7YtoR3Wd2pwqzlekDeEuUQXjRd+QCYnVnNwuJYmhdk9XV8gvA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/react": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz", + "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.3.0" + } + }, + "node_modules/@typescript/typescript-aix-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", + "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", + "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", + "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", + "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", + "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", + "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", + "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-loong64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", + "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-mips64el": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", + "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", + "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-riscv64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", + "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-s390x": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", + "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", + "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", + "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", + "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", + "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", + "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-sunos-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", + "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", + "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", + "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.1.tgz", + "integrity": "sha512-yxLaQV9gkhS8ezJqCM6+ndU7mDY6gqAg75NQ+0IjwEI8IYOmQCgkRwHKVSfWXW076DsqMo0Dk+0FK1U+M5RgFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": "^0.145.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "oxc-transform-react": { + "optional": true + } + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/nanoid": { + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.18", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/react": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz", + "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.28.0" + }, + "peerDependencies": { + "react": "^19.3.0" + } + }, + "node_modules/rolldown": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.10.tgz", + "integrity": "sha512-OxkA08pSryMK7B3XiFA09B4OJ1xJMPgIYCBMY2xchzpqgBGsV1o0DetPAE+Sl3N3L4oCPiEzmHVSOj7iR04Zog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.151.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.10", + "@rolldown/binding-android-arm64": "1.2.10", + "@rolldown/binding-darwin-arm64": "1.2.10", + "@rolldown/binding-darwin-x64": "1.2.10", + "@rolldown/binding-freebsd-x64": "1.2.10", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.10", + "@rolldown/binding-linux-arm64-gnu": "1.2.10", + "@rolldown/binding-linux-arm64-musl": "1.2.10", + "@rolldown/binding-linux-ppc64-gnu": "1.2.10", + "@rolldown/binding-linux-s390x-gnu": "1.2.10", + "@rolldown/binding-linux-x64-gnu": "1.2.10", + "@rolldown/binding-linux-x64-musl": "1.2.10", + "@rolldown/binding-openharmony-arm64": "1.2.10", + "@rolldown/binding-win32-arm64-msvc": "1.2.10", + "@rolldown/binding-win32-x64-msvc": "1.2.10" + } + }, + "node_modules/scheduler": { + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz", + "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc" + }, + "engines": { + "node": ">=16.20.0" + }, + "optionalDependencies": { + "@typescript/typescript-aix-ppc64": "7.0.2", + "@typescript/typescript-darwin-arm64": "7.0.2", + "@typescript/typescript-darwin-x64": "7.0.2", + "@typescript/typescript-freebsd-arm64": "7.0.2", + "@typescript/typescript-freebsd-x64": "7.0.2", + "@typescript/typescript-linux-arm": "7.0.2", + "@typescript/typescript-linux-arm64": "7.0.2", + "@typescript/typescript-linux-loong64": "7.0.2", + "@typescript/typescript-linux-mips64el": "7.0.2", + "@typescript/typescript-linux-ppc64": "7.0.2", + "@typescript/typescript-linux-riscv64": "7.0.2", + "@typescript/typescript-linux-s390x": "7.0.2", + "@typescript/typescript-linux-x64": "7.0.2", + "@typescript/typescript-netbsd-arm64": "7.0.2", + "@typescript/typescript-netbsd-x64": "7.0.2", + "@typescript/typescript-openbsd-arm64": "7.0.2", + "@typescript/typescript-openbsd-x64": "7.0.2", + "@typescript/typescript-sunos-x64": "7.0.2", + "@typescript/typescript-win32-arm64": "7.0.2", + "@typescript/typescript-win32-x64": "7.0.2" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.0.tgz", + "integrity": "sha512-lhZBVvEHefgE+HQZC9O7EBJgCU/nVzFNl7vkS4RE0APtWLP02/8QVIkQtzBxPquh7lq5/78NHipTj7ODQ6XuyQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.28", + "rolldown": "~1.2.6", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + } + } +} diff --git a/src/frontend/package.json b/src/frontend/package.json new file mode 100644 index 00000000..8a453e8b --- /dev/null +++ b/src/frontend/package.json @@ -0,0 +1,23 @@ +{ + "name": "messenger-test-ui", + "private": true, + "version": "1.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc --noEmit && vite build", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "react": "19.3.0", + "react-dom": "19.3.0" + }, + "devDependencies": { + "@types/node": "^22.15.0", + "@types/react": "19.3.0", + "@types/react-dom": "19.3.0", + "@vitejs/plugin-react": "6.1.1", + "typescript": "7.0.2", + "vite": "8.3.0" + } +} diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx new file mode 100644 index 00000000..39cae932 --- /dev/null +++ b/src/frontend/src/App.tsx @@ -0,0 +1,231 @@ +import { useCallback, useEffect, useState, type FormEvent } from "react"; +import { api, ApiError, type Chat, type Session, type User } from "./api"; + +import Pagination from "./Pagination"; +import { useCursorPage } from "./useCursorPage"; + +const tokenKey = "messenger_test_token"; + +function errorText(error: unknown): string { + if (error instanceof ApiError) { + return error.requestId + ? `${error.message} · запрос ${error.requestId}` + : error.message; + } + return error instanceof Error ? error.message : "Неизвестная ошибка"; +} + +function authErrorText(error: unknown): string { + if (!(error instanceof ApiError)) return errorText(error); + const message = error.status === 409 + ? "Имя пользователя уже занято. Выберите другое или войдите." + : error.status === 401 + ? "Неверное имя пользователя или пароль." + : error.status === 503 + ? "Сервер временно недоступен. Попробуйте ещё раз позже." + : error.message; + return error.requestId ? `${message} · запрос ${error.requestId}` : message; +} + +function dateText(value: string): string { + return new Date(value).toLocaleString("ru-RU", { + dateStyle: "short", + timeStyle: "short", + }); +} + +function AuthForm({ onSuccess }: { onSuccess: (session: Session) => void }) { + const [mode, setMode] = useState<"login" | "register">("login"); + const [username, setUsername] = useState(""); + const [displayName, setDisplayName] = useState(""); + const [password, setPassword] = useState(""); + const [busy, setBusy] = useState(false); + const [error, setError] = useState(""); + + async function submit(event: FormEvent) { + event.preventDefault(); + setError(""); + const name = username.trim(); + if (!/^[a-z0-9_]{3,32}$/.test(name)) { + setError("Имя пользователя: 3–32 символа, только строчные латинские буквы, цифры и _."); + return; + } + const passwordLength = Array.from(password).length; + if (passwordLength < 12 || passwordLength > 128 || (mode === "register" && !password.trim())) { + setError("Пароль должен содержать от 12 до 128 символов."); + return; + } + if (mode === "register" && (!displayName.trim() || Array.from(displayName.trim()).length > 100)) { + setError("Отображаемое имя должно содержать от 1 до 100 символов."); + return; + } + setBusy(true); + let created = false; + try { + if (mode === "register") { + await api.register(name, displayName.trim(), password); + created = true; + } + const session = await api.login(name, password); + setPassword(""); + onSuccess(session); + } catch (cause) { + setError(created + ? `Аккаунт создан, но войти не удалось. Повторите вход: ${authErrorText(cause)}` + : authErrorText(cause)); + if (created) setMode("login"); + } finally { + setBusy(false); + } + } + + return ( +
+
+ +

Мессенджер

+
+ + +
+
+ + {mode === "register" && ( + + )} + + {error &&

{error}

} + +
+
+
+ ); +} + +function Workspace({ token, user, onLogout }: { token: string; user: User; onLogout: (notice?: string) => void }) { + const [selectedChat, setSelectedChat] = useState(null); + const [showCreate, setShowCreate] = useState(false); + const [title, setTitle] = useState(""); + const [members, setMembers] = useState(""); + const [drafts, setDrafts] = useState>({}); + const [creating, setCreating] = useState(false); + const [sending, setSending] = useState(false); + const [error, setError] = useState(""); + const [notice, setNotice] = useState(""); + const reportError = useCallback((cause: unknown) => { + if (cause instanceof ApiError && cause.status === 401) onLogout("Сессия истекла. Войдите снова."); + else setError(errorText(cause)); + }, [onLogout]); + const fetchChats = useCallback((cursor: string | undefined, limit: number) => api.chats(token, cursor, limit), [token]); + const chatId = selectedChat?.id || ""; + const fetchMessages = useCallback((cursor: string | undefined, limit: number) => api.messages(token, chatId, cursor, limit), [token, chatId]); + const chats = useCursorPage(token, fetchChats, reportError); + const messages = useCursorPage(chatId, fetchMessages, reportError); + + async function createChat(event: FormEvent) { + event.preventDefault(); + if (!title.trim()) return; + setCreating(true); setError(""); + try { + const memberIds = Array.from(new Set([user.id, ...members.split(/[\s,;]+/).filter(Boolean)])); + const chat = await api.createChat(token, title.trim(), memberIds); + setSelectedChat(chat); setTitle(""); setMembers(""); setShowCreate(false); chats.refresh(); + } catch (cause) { reportError(cause); } + finally { setCreating(false); } + } + + async function sendMessage(event: FormEvent) { + event.preventDefault(); + const text = (drafts[chatId] || "").trim(); + if (!text) return; + setSending(true); setError(""); + try { + await api.sendMessage(token, chatId, text); + setDrafts((previous) => ({ ...previous, [chatId]: "" })); + messages.reload(); setNotice("Сообщение отправлено"); + } catch (cause) { reportError(cause); } + finally { setSending(false); } + } + + async function logout() { + try { await api.logout(token); onLogout(); } + catch (cause) { reportError(cause); } + } + + async function copyId() { + try { await navigator.clipboard.writeText(user.id); setNotice("ID скопирован"); } + catch { setError("Не удалось скопировать ID. Выделите его вручную."); } + } + + return
+
+ Мессенджер +
{user.display_name.slice(0, 1).toUpperCase()}
{user.display_name}@{user.username}
+
+ {(error || notice) &&
{error || notice}
} +
+