lab 2 realization: PostgreSQL, Valkey, track 2

This commit is contained in:
R0flyan
2026-10-16 15:24:08 +03:00
parent 65003b6119
commit a434e35336
45 changed files with 3386 additions and 54 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"result": "PASS",
"git_ignores_private_files": true,
"public_files_scanned": 77,
"local_secrets_and_raw_bearer_absent": true,
"all_passwords_argon2id": true,
"api_user": "65532:65532",
"api_readonly": true,
"api_pid1": "/messenger",
"health": "healthy",
"valkey_effective_configuration": {
"appendfsync": "always",
"appendonly": "yes",
"maxmemory-policy": "noeviction"
},
"engine": "29.3.0",
"compose": "5.1.0",
"host": "linux/x86_64 CPUs=12 MemoryBytes=3956064256"
}
+5
View File
@@ -0,0 +1,5 @@
2026-10-16T11:21:37Z
$ make check
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
exit_code=0
+147
View File
@@ -0,0 +1,147 @@
2026-10-16T11:16:54Z
$ python -X utf8 scripts/clean_build.py
warning: in the working copy of '.dockerignore', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.env.example', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.gitattributes', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.github/pull_request_template.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'ARCHITECTURE.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'Dockerfile', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'Dockerfile.tests', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'REPORT.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'compose.yaml', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/acceptance.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/audit.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/authentication.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/check.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/clean-build.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/explain-run.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/infrastructure.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/linux-test-persistence.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/own.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/persistence.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/race.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/restart-after.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/restart-before.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/smoke.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'evidence/source-check.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'go.mod', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'go.sum', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'scripts/audit.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'scripts/bootstrap.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'scripts/clean_build.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'scripts/linux_tests.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'scripts/record.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'scripts/restart.cmd', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'scripts/restart.example.sh', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'scripts/verify_sources.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'student-tests/README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'student-tests/acceptance.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'student-tests/authentication.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'student-tests/explain.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'student-tests/infrastructure.py', LF will be replaced by CRLF the next time Git touches it
CLEAN CLONE: temporary snapshot commit d8ebfe039d149590cddfb4337b1698b1768686fe
MAIN REPOSITORY: no commit, no staging, no push
Local .env and secrets ready; existing values preserved.
Image mtusi-messenger:lab2 Building
#1 [internal] load local bake definitions
#1 reading from stdin 612B 0.1s done
#1 DONE 0.1s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 624B 0.0s done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/golang:1.26.0-bookworm@sha256:2a0ba12e116687098780d3ce700f9ce3cb340783779646aafbabed748fa6677c
#3 DONE 0.0s
#4 [internal] load .dockerignore
#4 transferring context: 115B done
#4 DONE 0.0s
#5 [build 1/7] FROM docker.io/library/golang:1.26.0-bookworm@sha256:2a0ba12e116687098780d3ce700f9ce3cb340783779646aafbabed748fa6677c
#5 DONE 0.0s
#6 [internal] load build context
#6 transferring context: 35.68kB 0.1s done
#6 DONE 0.1s
#7 [build 2/7] WORKDIR /src
#7 CACHED
#8 [build 3/7] COPY go.mod go.sum ./
#8 CACHED
#9 [build 4/7] RUN go mod download
#9 CACHED
#10 [build 5/7] COPY *.go ./
#10 DONE 0.1s
#11 [build 6/7] COPY migrations ./migrations
#11 DONE 0.1s
#12 [build 7/7] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /messenger .
#12 DONE 35.8s
#13 [runtime 1/1] COPY --from=build /messenger /messenger
#13 CACHED
#14 exporting to image
#14 exporting layers done
#14 writing image sha256:81a8f7752dad98518b6154841b4d6382fbdf9b6f849cb6aed11b65b58bd0125e 0.0s done
#14 naming to docker.io/library/mtusi-messenger:lab2 0.0s done
#14 DONE 0.1s
#15 resolving provenance for metadata file
#15 DONE 0.1s
Image mtusi-messenger:lab2 Built
Network lab2-clean-aa70a5f3_default Creating
Network lab2-clean-aa70a5f3_default Created
Volume lab2-clean-aa70a5f3_pgdata Creating
Volume lab2-clean-aa70a5f3_pgdata Created
Volume lab2-clean-aa70a5f3_sessions Creating
Volume lab2-clean-aa70a5f3_sessions Created
Container lab2-clean-aa70a5f3-db-1 Creating
Container lab2-clean-aa70a5f3-valkey-1 Creating
Container lab2-clean-aa70a5f3-valkey-1 Created
Container lab2-clean-aa70a5f3-db-1 Created
Container lab2-clean-aa70a5f3-api-1 Creating
Container lab2-clean-aa70a5f3-api-1 Created
Container lab2-clean-aa70a5f3-valkey-1 Starting
Container lab2-clean-aa70a5f3-db-1 Starting
Container lab2-clean-aa70a5f3-db-1 Started
Container lab2-clean-aa70a5f3-valkey-1 Started
Container lab2-clean-aa70a5f3-db-1 Waiting
Container lab2-clean-aa70a5f3-valkey-1 Waiting
Container lab2-clean-aa70a5f3-valkey-1 Healthy
Container lab2-clean-aa70a5f3-db-1 Healthy
Container lab2-clean-aa70a5f3-api-1 Starting
Container lab2-clean-aa70a5f3-api-1 Started
Container lab2-clean-aa70a5f3-db-1 Waiting
Container lab2-clean-aa70a5f3-valkey-1 Waiting
Container lab2-clean-aa70a5f3-api-1 Waiting
Container lab2-clean-aa70a5f3-valkey-1 Healthy
Container lab2-clean-aa70a5f3-db-1 Healthy
Container lab2-clean-aa70a5f3-api-1 Healthy
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
EMPTY VOLUME MIGRATIONS: 001_initial.sql
002_unicode_storage.sql
Container lab2-clean-aa70a5f3-api-1 Stopping
Container lab2-clean-aa70a5f3-api-1 Stopped
Container lab2-clean-aa70a5f3-api-1 Removing
Container lab2-clean-aa70a5f3-api-1 Removed
Container lab2-clean-aa70a5f3-db-1 Stopping
Container lab2-clean-aa70a5f3-valkey-1 Stopping
Container lab2-clean-aa70a5f3-valkey-1 Stopped
Container lab2-clean-aa70a5f3-valkey-1 Removing
Container lab2-clean-aa70a5f3-valkey-1 Removed
Container lab2-clean-aa70a5f3-db-1 Stopped
Container lab2-clean-aa70a5f3-db-1 Removing
Container lab2-clean-aa70a5f3-db-1 Removed
Network lab2-clean-aa70a5f3_default Removing
Network lab2-clean-aa70a5f3_default Removed
PASS: isolated clone build; temporary project stopped, volumes retained
exit_code=0
+6
View File
@@ -0,0 +1,6 @@
2026-10-16T11:19:39Z
$ make explain
python3 student-tests/explain.py
PASS: 10000 messages; first and deep page use messages_history_idx without Seq Scan/Sort
evidence\explain.txt
exit_code=0
+32
View File
@@ -0,0 +1,32 @@
PostgreSQL: PostgreSQL 17.6 (Debian 17.6-2.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit
Rows in dedicated chat: 10000
first
EXPLAIN (ANALYZE, BUFFERS)
SELECT id::text,chat_id::text,sender_id::text,text,created_at FROM messages
WHERE chat_id='aff35ede-28d0-4df7-b577-2a29a956ba40' AND (created_at,id)>('2026-01-01T00:00:00Z'::timestamptz,'00000000-0000-0000-0000-000000000000'::uuid)
ORDER BY messages.created_at,messages.id LIMIT 51;
Limit (cost=0.41..16.09 rows=51 width=146) (actual time=0.033..0.045 rows=51 loops=1)
Buffers: shared hit=4
-> Index Scan using messages_history_idx on messages (cost=0.41..3074.29 rows=9998 width=146) (actual time=0.031..0.041 rows=51 loops=1)
Index Cond: ((chat_id = 'aff35ede-28d0-4df7-b577-2a29a956ba40'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))
Buffers: shared hit=4
Planning:
Buffers: shared hit=116
Planning Time: 0.981 ms
Execution Time: 0.381 ms
deep (after 9000 rows)
EXPLAIN (ANALYZE, BUFFERS)
SELECT id::text,chat_id::text,sender_id::text,text,created_at FROM messages
WHERE chat_id='aff35ede-28d0-4df7-b577-2a29a956ba40' AND (created_at,id)>('2026-01-01T00:00:09Z'::timestamptz,'c4fd0d86-6dcf-4177-a4df-90cebe00e335'::uuid)
ORDER BY messages.created_at,messages.id LIMIT 51;
Limit (cost=0.41..108.20 rows=51 width=146) (actual time=0.026..0.040 rows=51 loops=1)
Buffers: shared hit=5
-> Index Scan using messages_history_idx on messages (cost=0.41..2367.56 rows=1120 width=146) (actual time=0.025..0.037 rows=51 loops=1)
Index Cond: ((chat_id = 'aff35ede-28d0-4df7-b577-2a29a956ba40'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:09+00'::timestamp with time zone, 'c4fd0d86-6dcf-4177-a4df-90cebe00e335'::uuid)))
Buffers: shared hit=5
Planning:
Buffers: shared hit=112
Planning Time: 0.221 ms
Execution Time: 0.071 ms
+55
View File
@@ -0,0 +1,55 @@
{
"utc": "2026-10-16T11:16:50Z",
"outages": [
{
"service": "db",
"statuses": [
503,
503,
401,
200,
503
],
"request_seconds": [
5.0,
5.031
],
"ready_seconds_after_start": 1.531,
"started_before": "2026-10-16T11:11:04.861601683Z",
"started_after": "2026-10-16T11:17:13.132832575Z",
"same_token_and_message": true
},
{
"service": "valkey",
"statuses": [
503,
503,
401,
200,
503
],
"request_seconds": [
1.031,
1.016
],
"ready_seconds_after_start": 0.25,
"started_before": "2026-10-16T11:11:04.901502042Z",
"started_after": "2026-10-16T11:17:23.47318257Z",
"same_token_and_message": true
}
],
"rollback": {
"before": "148|78|140|30553|2",
"after": "148|78|140|30553|2",
"result": "PASS: no chat or membership left"
},
"migrations": "PASS: two repeated migrations, counts unchanged",
"expiry": "PASS: separate API TTL=2s, 200 then 401 after 2.2s",
"sigterm": {
"seconds": 1.219,
"exit_code": 0,
"oom_killed": false,
"no_new_requests": true
},
"logout_restart": "PASS: revoked session stays revoked after Valkey restart"
}
+10
View File
@@ -0,0 +1,10 @@
2026-10-16T11:16:40Z
$ make test-infra BASE_URL=http://127.0.0.1:8080
python3 student-tests/infrastructure.py --base-url "http://127.0.0.1:8080"
ROLLBACK: table counts unchanged after FK failure
MIGRATIONS: repeat twice, counts unchanged
DB: bounded 503, anonymous 401, recovery with same token/message
VALKEY: bounded 503, anonymous 401, recovery with same token/message
EXPIRY: TTL=2s, 200 then 401
PASS: infrastructure, expiry, rollback, migrations, shutdown and durable logout
exit_code=0
+6
View File
@@ -0,0 +1,6 @@
2026-10-16T11:18:44Z
$ make test-persistence BASE_URL=http://api:8080 ACTION_SCRIPT=scripts/restart.sh
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://api:8080"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit_code=0
+29
View File
@@ -0,0 +1,29 @@
2026-10-16T11:15:12Z
$ make test-own BASE_URL=http://127.0.0.1:8080
python3 student-tests/acceptance.py --base-url "http://127.0.0.1:8080"
test_100_messages_from_10_clients (__main__.Acceptance.test_100_messages_from_10_clients) ... CONCURRENCY: 10 clients x 10 writes = 100 acknowledged, 100 read, 100 unique
ok
test_chat_cursor_bound_to_current_user (__main__.Acceptance.test_chat_cursor_bound_to_current_user) ... ok
test_duplicate_username_and_user_validation (__main__.Acceptance.test_duplicate_username_and_user_validation) ... ok
test_empty_and_unicode_message (__main__.Acceptance.test_empty_and_unicode_message) ... ok
test_empty_history_default_limit_and_concurrent_append (__main__.Acceptance.test_empty_history_default_limit_and_concurrent_append) ... ok
test_foreign_chat_and_authentication (__main__.Acceptance.test_foreign_chat_and_authentication) ... ok
test_invalid_json (__main__.Acceptance.test_invalid_json) ... ok
test_membership_validation (__main__.Acceptance.test_membership_validation) ... ok
test_multiple_pages_and_cursor_scope (__main__.Acceptance.test_multiple_pages_and_cursor_scope) ... ok
----------------------------------------------------------------------
Ran 9 tests in 16.794s
OK
python3 student-tests/authentication.py --base-url "http://127.0.0.1:8080"
test_password_boundaries_unicode_and_colon (__main__.Authentication.test_password_boundaries_unicode_and_colon) ... ok
test_registration_race (__main__.Authentication.test_registration_race) ... REGISTRATION RACE: 10 requests, 1 created, 9 conflicts
ok
test_wrong_password_logout_and_identity (__main__.Authentication.test_wrong_password_logout_and_identity) ... ok
----------------------------------------------------------------------
Ran 3 tests in 3.026s
OK
exit_code=0
+16
View File
@@ -0,0 +1,16 @@
2026-10-16T11:17:43Z
$ make test-race
CGO_ENABLED=1 go test -race ./...
go: downloading github.com/redis/go-redis/v9 v9.12.1
go: downloading github.com/jackc/pgx/v5 v5.7.6
go: downloading golang.org/x/crypto v0.43.0
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
go: downloading golang.org/x/text v0.30.0
go: downloading github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761
go: downloading github.com/jackc/pgpassfile v1.0.0
go: downloading github.com/jackc/puddle/v2 v2.2.2
go: downloading golang.org/x/sys v0.37.0
go: downloading golang.org/x/sync v0.17.0
ok mtusi-messenger 6.980s
exit_code=0
+129
View File
@@ -0,0 +1,129 @@
chat/insert_100000 (EXPLAIN JSON)
{"Plan": {"Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.0, "Total Cost": 5750.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 991.526, "Actual Total Time": 991.527, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 545161, "Shared Read Blocks": 2, "Shared Dirtied Blocks": 3466, "Shared Written Blocks": 3466, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 171, "Temp Written Blocks": 171, "WAL Records": 301651, "WAL FPI": 0, "WAL Bytes": 41896134, "Plans": [{"Node Type": "Function Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Function Name": "generate_series", "Alias": "g", "Startup Cost": 0.0, "Total Cost": 5750.0, "Plan Rows": 100000, "Plan Width": 88, "Actual Startup Time": 11.145, "Actual Total Time": 172.283, "Actual Rows": 100000, "Actual Loops": 1, "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": 171, "Temp Written Blocks": 171, "WAL Records": 0, "WAL FPI": 0, "WAL Bytes": 0}]}, "Planning": {"Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0}, "Planning Time": 0.141, "Triggers": [{"Trigger Name": "RI_ConstraintTrigger_c_16443", "Constraint Name": "messages_chat_id_fkey", "Relation": "messages", "Time": 301.956, "Calls": 100000}, {"Trigger Name": "RI_ConstraintTrigger_c_16448", "Constraint Name": "messages_chat_id_sender_id_fkey", "Relation": "messages", "Time": 319.258, "Calls": 100000}], "Execution Time": 1623.789}
chat/hot_first
EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)
SELECT id::text,chat_id::text,sender_id::text,text,created_at FROM messages
WHERE chat_id='6adca606-cb42-ce80-9dfe-e9c5ab3f1b51' AND (created_at,id)>(
'2026-01-01T00:00:00Z'::timestamptz+0*interval '1 millisecond','00000000-0000-0000-0000-000000000000'::uuid)
ORDER BY messages.created_at,messages.id LIMIT 51;
Limit (cost=8700.40..8700.53 rows=51 width=257) (actual time=30.996..31.003 rows=51 loops=1)
Buffers: shared hit=2862
-> Sort (cost=8700.40..8899.13 rows=79492 width=257) (actual time=30.994..30.998 rows=51 loops=1)
Sort Key: created_at, id
Sort Method: top-N heapsort Memory: 50kB
Buffers: shared hit=2862
-> Seq Scan on messages (cost=0.00..6048.38 rows=79492 width=257) (actual time=0.018..20.924 rows=80000 loops=1)
Filter: ((chat_id = '6adca606-cb42-ce80-9dfe-e9c5ab3f1b51'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))
Rows Removed by Filter: 20000
Buffers: shared hit=2856
Planning:
Buffers: shared hit=101
Planning Time: 0.309 ms
Execution Time: 31.050 ms
chat/hot_deep
EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)
SELECT id::text,chat_id::text,sender_id::text,text,created_at FROM messages
WHERE chat_id='6adca606-cb42-ce80-9dfe-e9c5ab3f1b51' AND (created_at,id)>(
'2026-01-01T00:00:00Z'::timestamptz+70000*interval '1 millisecond','51007766-120b-9354-54a6-dc1c61f4f185'::uuid)
ORDER BY messages.created_at,messages.id LIMIT 51;
Limit (cost=6024.82..6024.94 rows=51 width=257) (actual time=14.114..14.122 rows=51 loops=1)
Buffers: shared hit=2862
-> Sort (cost=6024.82..6085.24 rows=24168 width=257) (actual time=14.112..14.116 rows=51 loops=1)
Sort Key: created_at, id
Sort Method: top-N heapsort Memory: 50kB
Buffers: shared hit=2862
-> Seq Scan on messages (cost=0.00..5218.52 rows=24168 width=257) (actual time=8.013..12.721 rows=10000 loops=1)
Filter: ((chat_id = '6adca606-cb42-ce80-9dfe-e9c5ab3f1b51'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:10'::interval), '51007766-120b-9354-54a6-dc1c61f4f185'::uuid)))
Rows Removed by Filter: 90000
Buffers: shared hit=2856
Planning:
Buffers: shared hit=101
Planning Time: 0.247 ms
Execution Time: 14.167 ms
chat/small_deep
EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)
SELECT id::text,chat_id::text,sender_id::text,text,created_at FROM messages
WHERE chat_id='0edbe356-1e20-7355-3db8-96e0eb8b4f65' AND (created_at,id)>(
'2026-01-01T00:00:00Z'::timestamptz+99000*interval '1 millisecond','ed7d9f1e-ca01-40c0-5d78-abf027268fa3'::uuid)
ORDER BY messages.created_at,messages.id LIMIT 51;
Limit (cost=3091.06..3091.19 rows=51 width=257) (actual time=0.721..0.725 rows=51 loops=1)
Buffers: shared hit=155
-> Sort (cost=3091.06..3091.19 rows=54 width=257) (actual time=0.720..0.722 rows=51 loops=1)
Sort Key: created_at, id
Sort Method: top-N heapsort Memory: 50kB
Buffers: shared hit=155
-> Bitmap Heap Scan on messages (cost=58.38..3089.50 rows=54 width=257) (actual time=0.387..0.581 rows=1000 loops=1)
Recheck Cond: (chat_id = '0edbe356-1e20-7355-3db8-96e0eb8b4f65'::uuid)
Filter: (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:39'::interval), 'ed7d9f1e-ca01-40c0-5d78-abf027268fa3'::uuid))
Rows Removed by Filter: 4000
Heap Blocks: exact=144
Buffers: shared hit=149
-> Bitmap Index Scan on research_chat_idx (cost=0.00..58.37 rows=5077 width=0) (actual time=0.070..0.071 rows=5000 loops=1)
Index Cond: (chat_id = '0edbe356-1e20-7355-3db8-96e0eb8b4f65'::uuid)
Buffers: shared hit=5
Planning:
Buffers: shared hit=101
Planning Time: 0.210 ms
Execution Time: 0.762 ms
composite/insert_100000 (EXPLAIN JSON)
{"Plan": {"Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, "Async Capable": false, "Relation Name": "messages", "Alias": "messages", "Startup Cost": 0.0, "Total Cost": 5750.0, "Plan Rows": 0, "Plan Width": 0, "Actual Startup Time": 656.964, "Actual Total Time": 656.965, "Actual Rows": 0, "Actual Loops": 1, "Shared Hit Blocks": 520819, "Shared Read Blocks": 2, "Shared Dirtied Blocks": 4222, "Shared Written Blocks": 4222, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 171, "Temp Written Blocks": 171, "WAL Records": 301359, "WAL FPI": 0, "WAL Bytes": 45729460, "Plans": [{"Node Type": "Function Scan", "Parent Relationship": "Outer", "Parallel Aware": false, "Async Capable": false, "Function Name": "generate_series", "Alias": "g", "Startup Cost": 0.0, "Total Cost": 5750.0, "Plan Rows": 100000, "Plan Width": 88, "Actual Startup Time": 7.165, "Actual Total Time": 145.253, "Actual Rows": 100000, "Actual Loops": 1, "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": 171, "Temp Written Blocks": 171, "WAL Records": 0, "WAL FPI": 0, "WAL Bytes": 0}]}, "Planning": {"Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Dirtied Blocks": 0, "Shared Written Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Dirtied Blocks": 0, "Local Written Blocks": 0, "Temp Read Blocks": 0, "Temp Written Blocks": 0}, "Planning Time": 0.104, "Triggers": [{"Trigger Name": "RI_ConstraintTrigger_c_16443", "Constraint Name": "messages_chat_id_fkey", "Relation": "messages", "Time": 298.604, "Calls": 100000}, {"Trigger Name": "RI_ConstraintTrigger_c_16448", "Constraint Name": "messages_chat_id_sender_id_fkey", "Relation": "messages", "Time": 321.92, "Calls": 100000}], "Execution Time": 1289.336}
composite/hot_first
EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)
SELECT id::text,chat_id::text,sender_id::text,text,created_at FROM messages
WHERE chat_id='6adca606-cb42-ce80-9dfe-e9c5ab3f1b51' AND (created_at,id)>(
'2026-01-01T00:00:00Z'::timestamptz+0*interval '1 millisecond','00000000-0000-0000-0000-000000000000'::uuid)
ORDER BY messages.created_at,messages.id LIMIT 51;
Limit (cost=0.42..11.17 rows=51 width=257) (actual time=0.032..0.047 rows=51 loops=1)
Buffers: shared hit=5
-> Index Scan using messages_history_idx on messages (cost=0.42..16911.78 rows=80205 width=257) (actual time=0.032..0.044 rows=51 loops=1)
Index Cond: ((chat_id = '6adca606-cb42-ce80-9dfe-e9c5ab3f1b51'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:00:00'::interval), '00000000-0000-0000-0000-000000000000'::uuid)))
Buffers: shared hit=5
Planning:
Buffers: shared hit=112
Planning Time: 0.264 ms
Execution Time: 0.078 ms
composite/hot_deep
EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)
SELECT id::text,chat_id::text,sender_id::text,text,created_at FROM messages
WHERE chat_id='6adca606-cb42-ce80-9dfe-e9c5ab3f1b51' AND (created_at,id)>(
'2026-01-01T00:00:00Z'::timestamptz+70000*interval '1 millisecond','51007766-120b-9354-54a6-dc1c61f4f185'::uuid)
ORDER BY messages.created_at,messages.id LIMIT 51;
Limit (cost=0.42..28.28 rows=51 width=257) (actual time=0.038..0.051 rows=51 loops=1)
Buffers: shared hit=6
-> Index Scan using messages_history_idx on messages (cost=0.42..13055.69 rows=23899 width=257) (actual time=0.037..0.047 rows=51 loops=1)
Index Cond: ((chat_id = '6adca606-cb42-ce80-9dfe-e9c5ab3f1b51'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:10'::interval), '51007766-120b-9354-54a6-dc1c61f4f185'::uuid)))
Buffers: shared hit=6
Planning:
Buffers: shared hit=112
Planning Time: 0.248 ms
Execution Time: 0.083 ms
composite/small_deep
EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)
SELECT id::text,chat_id::text,sender_id::text,text,created_at FROM messages
WHERE chat_id='0edbe356-1e20-7355-3db8-96e0eb8b4f65' AND (created_at,id)>(
'2026-01-01T00:00:00Z'::timestamptz+99000*interval '1 millisecond','ed7d9f1e-ca01-40c0-5d78-abf027268fa3'::uuid)
ORDER BY messages.created_at,messages.id LIMIT 51;
Limit (cost=170.75..170.86 rows=45 width=257) (actual time=0.463..0.468 rows=51 loops=1)
Buffers: shared hit=50
-> Sort (cost=170.75..170.86 rows=45 width=257) (actual time=0.462..0.465 rows=51 loops=1)
Sort Key: created_at, id
Sort Method: top-N heapsort Memory: 50kB
Buffers: shared hit=50
-> Bitmap Heap Scan on messages (cost=4.88..169.51 rows=45 width=257) (actual time=0.115..0.305 rows=1000 loops=1)
Recheck Cond: ((chat_id = '0edbe356-1e20-7355-3db8-96e0eb8b4f65'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:39'::interval), 'ed7d9f1e-ca01-40c0-5d78-abf027268fa3'::uuid)))
Heap Blocks: exact=29
Buffers: shared hit=44
-> Bitmap Index Scan on messages_history_idx (cost=0.00..4.87 rows=45 width=0) (actual time=0.105..0.105 rows=1000 loops=1)
Index Cond: ((chat_id = '0edbe356-1e20-7355-3db8-96e0eb8b4f65'::uuid) AND (ROW(created_at, id) > ROW(('2026-01-01 00:00:00+00'::timestamp with time zone + '00:01:39'::interval), 'ed7d9f1e-ca01-40c0-5d78-abf027268fa3'::uuid)))
Buffers: shared hit=15
Planning:
Buffers: shared hit=112
Planning Time: 0.290 ms
Execution Time: 0.512 ms
+367
View File
@@ -0,0 +1,367 @@
repeat,variant,case,execution_ms,wall_with_commit_and_docker_ms,wal_bytes,index_bytes,planning_ms,shared_hit_blocks,shared_read_blocks
1,chat,insert_100000,1623.789,1860.107299988158,41896134,663552,,,
1,chat,hot_first,26.09,,,,0.242,2862,0
1,chat,hot_first,24.815,,,,0.068,2856,0
1,chat,hot_first,25.321,,,,0.1,2856,0
1,chat,hot_first,27.364,,,,0.091,2856,0
1,chat,hot_first,26.19,,,,0.38,2856,0
1,chat,hot_first,24.915,,,,0.068,2856,0
1,chat,hot_first,24.341,,,,0.065,2856,0
1,chat,hot_first,25.239,,,,0.068,2856,0
1,chat,hot_first,25.957,,,,0.12,2856,0
1,chat,hot_first,25.037,,,,0.066,2856,0
1,chat,hot_first,24.031,,,,0.065,2856,0
1,chat,hot_first,24.805,,,,0.065,2856,0
1,chat,hot_first,26.653,,,,0.233,2856,0
1,chat,hot_first,25.373,,,,0.076,2856,0
1,chat,hot_first,25.078,,,,0.069,2856,0
1,chat,hot_first,25.93,,,,0.099,2856,0
1,chat,hot_first,26.354,,,,0.1,2856,0
1,chat,hot_first,25.725,,,,0.068,2856,0
1,chat,hot_first,25.411,,,,0.066,2856,0
1,chat,hot_first,26.59,,,,0.067,2856,0
1,chat,hot_deep,11.36,,,,0.215,2862,0
1,chat,hot_deep,8.917,,,,0.069,2856,0
1,chat,hot_deep,8.863,,,,0.067,2856,0
1,chat,hot_deep,9.008,,,,0.067,2856,0
1,chat,hot_deep,8.587,,,,0.068,2856,0
1,chat,hot_deep,9.766,,,,0.069,2856,0
1,chat,hot_deep,8.607,,,,0.068,2856,0
1,chat,hot_deep,9.304,,,,0.075,2856,0
1,chat,hot_deep,9.045,,,,0.07,2856,0
1,chat,hot_deep,8.578,,,,0.069,2856,0
1,chat,hot_deep,10.621,,,,0.068,2856,0
1,chat,hot_deep,8.722,,,,0.07,2856,0
1,chat,hot_deep,9.06,,,,0.069,2856,0
1,chat,hot_deep,8.834,,,,0.069,2856,0
1,chat,hot_deep,9.253,,,,0.069,2856,0
1,chat,hot_deep,8.762,,,,0.068,2856,0
1,chat,hot_deep,8.679,,,,0.069,2856,0
1,chat,hot_deep,9.126,,,,0.067,2856,0
1,chat,hot_deep,9.439,,,,0.072,2856,0
1,chat,hot_deep,9.336,,,,0.181,2856,0
1,chat,small_deep,0.836,,,,0.214,155,0
1,chat,small_deep,0.745,,,,0.042,149,0
1,chat,small_deep,0.671,,,,0.048,149,0
1,chat,small_deep,0.68,,,,0.039,149,0
1,chat,small_deep,0.643,,,,0.042,149,0
1,chat,small_deep,0.646,,,,0.041,149,0
1,chat,small_deep,0.582,,,,0.05,149,0
1,chat,small_deep,0.603,,,,0.04,149,0
1,chat,small_deep,0.585,,,,0.042,149,0
1,chat,small_deep,0.631,,,,0.042,149,0
1,chat,small_deep,0.611,,,,0.048,149,0
1,chat,small_deep,0.58,,,,0.039,149,0
1,chat,small_deep,0.571,,,,0.035,149,0
1,chat,small_deep,0.564,,,,0.034,149,0
1,chat,small_deep,0.652,,,,0.034,149,0
1,chat,small_deep,0.711,,,,0.051,149,0
1,chat,small_deep,0.603,,,,0.048,149,0
1,chat,small_deep,0.588,,,,0.041,149,0
1,chat,small_deep,0.73,,,,0.037,149,0
1,chat,small_deep,0.651,,,,0.044,149,0
1,composite,insert_100000,1289.336,1513.1839999230579,45729460,6856704,,,
1,composite,hot_first,0.076,,,,0.228,5,0
1,composite,hot_first,0.037,,,,0.039,5,0
1,composite,hot_first,0.027,,,,0.03,5,0
1,composite,hot_first,0.033,,,,0.039,5,0
1,composite,hot_first,0.031,,,,0.039,5,0
1,composite,hot_first,0.032,,,,0.039,5,0
1,composite,hot_first,0.049,,,,0.092,5,0
1,composite,hot_first,0.048,,,,0.04,5,0
1,composite,hot_first,0.033,,,,0.051,5,0
1,composite,hot_first,0.042,,,,0.051,5,0
1,composite,hot_first,0.033,,,,0.038,5,0
1,composite,hot_first,0.033,,,,0.107,5,0
1,composite,hot_first,0.031,,,,0.038,5,0
1,composite,hot_first,0.032,,,,0.039,5,0
1,composite,hot_first,0.032,,,,0.038,5,0
1,composite,hot_first,0.032,,,,0.041,5,0
1,composite,hot_first,0.034,,,,0.054,5,0
1,composite,hot_first,0.032,,,,0.039,5,0
1,composite,hot_first,0.031,,,,0.038,5,0
1,composite,hot_first,0.034,,,,0.049,5,0
1,composite,hot_deep,0.084,,,,0.25,6,0
1,composite,hot_deep,0.038,,,,0.039,6,0
1,composite,hot_deep,0.034,,,,0.061,6,0
1,composite,hot_deep,0.032,,,,0.039,6,0
1,composite,hot_deep,0.073,,,,0.04,6,0
1,composite,hot_deep,0.033,,,,0.042,6,0
1,composite,hot_deep,0.043,,,,0.039,6,0
1,composite,hot_deep,0.035,,,,0.042,6,0
1,composite,hot_deep,0.034,,,,0.043,6,0
1,composite,hot_deep,0.034,,,,0.04,6,0
1,composite,hot_deep,0.033,,,,0.04,6,0
1,composite,hot_deep,0.035,,,,0.056,6,0
1,composite,hot_deep,0.031,,,,0.032,6,0
1,composite,hot_deep,0.029,,,,0.029,6,0
1,composite,hot_deep,0.043,,,,0.05,6,0
1,composite,hot_deep,0.047,,,,0.054,6,0
1,composite,hot_deep,0.048,,,,0.045,6,0
1,composite,hot_deep,0.047,,,,0.097,6,0
1,composite,hot_deep,0.04,,,,0.059,6,0
1,composite,hot_deep,0.045,,,,0.095,6,0
1,composite,small_deep,0.462,,,,0.246,50,0
1,composite,small_deep,0.375,,,,0.042,44,0
1,composite,small_deep,0.349,,,,0.042,44,0
1,composite,small_deep,0.345,,,,0.047,44,0
1,composite,small_deep,0.338,,,,0.04,44,0
1,composite,small_deep,0.412,,,,0.043,44,0
1,composite,small_deep,0.333,,,,0.044,44,0
1,composite,small_deep,0.325,,,,0.036,44,0
1,composite,small_deep,0.339,,,,0.045,44,0
1,composite,small_deep,0.339,,,,0.05,44,0
1,composite,small_deep,0.336,,,,0.045,44,0
1,composite,small_deep,0.358,,,,0.051,44,0
1,composite,small_deep,0.369,,,,0.059,44,0
1,composite,small_deep,0.389,,,,0.057,44,0
1,composite,small_deep,0.367,,,,0.055,44,0
1,composite,small_deep,0.352,,,,0.054,44,0
1,composite,small_deep,0.335,,,,0.05,44,0
1,composite,small_deep,0.393,,,,0.031,44,0
1,composite,small_deep,0.329,,,,0.031,44,0
1,composite,small_deep,0.397,,,,0.028,44,0
2,composite,insert_100000,1165.973,1402.5969000067562,45729460,6856704,,,
2,composite,hot_first,0.079,,,,0.266,5,0
2,composite,hot_first,0.042,,,,0.044,5,0
2,composite,hot_first,0.047,,,,0.044,5,0
2,composite,hot_first,0.05,,,,0.054,5,0
2,composite,hot_first,0.046,,,,0.053,5,0
2,composite,hot_first,0.047,,,,0.047,5,0
2,composite,hot_first,0.087,,,,0.061,5,0
2,composite,hot_first,0.032,,,,0.045,5,0
2,composite,hot_first,0.034,,,,0.045,5,0
2,composite,hot_first,0.034,,,,0.047,5,0
2,composite,hot_first,0.047,,,,0.039,5,0
2,composite,hot_first,0.031,,,,0.04,5,0
2,composite,hot_first,0.059,,,,0.041,5,0
2,composite,hot_first,0.029,,,,0.036,5,0
2,composite,hot_first,0.058,,,,0.03,5,0
2,composite,hot_first,0.033,,,,0.042,5,0
2,composite,hot_first,0.063,,,,0.04,5,0
2,composite,hot_first,0.032,,,,0.039,5,0
2,composite,hot_first,0.032,,,,0.039,5,0
2,composite,hot_first,0.032,,,,0.039,5,0
2,composite,hot_deep,0.072,,,,0.232,6,0
2,composite,hot_deep,0.049,,,,0.042,6,0
2,composite,hot_deep,0.032,,,,0.039,6,0
2,composite,hot_deep,0.032,,,,0.039,6,0
2,composite,hot_deep,0.034,,,,0.05,6,0
2,composite,hot_deep,0.041,,,,0.045,6,0
2,composite,hot_deep,0.032,,,,0.038,6,0
2,composite,hot_deep,0.034,,,,0.039,6,0
2,composite,hot_deep,0.035,,,,0.054,6,0
2,composite,hot_deep,0.033,,,,0.042,6,0
2,composite,hot_deep,0.033,,,,0.04,6,0
2,composite,hot_deep,0.032,,,,0.038,6,0
2,composite,hot_deep,0.033,,,,0.044,6,0
2,composite,hot_deep,0.033,,,,0.038,6,0
2,composite,hot_deep,0.033,,,,0.047,6,0
2,composite,hot_deep,0.037,,,,0.057,6,0
2,composite,hot_deep,0.057,,,,0.043,6,0
2,composite,hot_deep,0.038,,,,0.052,6,0
2,composite,hot_deep,0.039,,,,0.054,6,0
2,composite,hot_deep,0.037,,,,0.045,6,0
2,composite,small_deep,0.432,,,,0.25,50,0
2,composite,small_deep,0.388,,,,0.04,44,0
2,composite,small_deep,0.334,,,,0.057,44,0
2,composite,small_deep,0.367,,,,0.045,44,0
2,composite,small_deep,0.329,,,,0.043,44,0
2,composite,small_deep,0.395,,,,0.042,44,0
2,composite,small_deep,0.353,,,,0.038,44,0
2,composite,small_deep,0.325,,,,0.058,44,0
2,composite,small_deep,0.328,,,,0.04,44,0
2,composite,small_deep,0.343,,,,0.043,44,0
2,composite,small_deep,0.351,,,,0.036,44,0
2,composite,small_deep,0.382,,,,0.033,44,0
2,composite,small_deep,0.425,,,,0.05,44,0
2,composite,small_deep,0.348,,,,0.059,44,0
2,composite,small_deep,0.337,,,,0.049,44,0
2,composite,small_deep,0.349,,,,0.04,44,0
2,composite,small_deep,0.365,,,,0.041,44,0
2,composite,small_deep,0.357,,,,0.036,44,0
2,composite,small_deep,0.389,,,,0.032,44,0
2,composite,small_deep,0.349,,,,0.034,44,0
2,chat,insert_100000,1018.697,1253.4370000939816,41896134,663552,,,
2,chat,hot_first,25.791,,,,0.228,2862,0
2,chat,hot_first,23.947,,,,0.067,2856,0
2,chat,hot_first,25.473,,,,0.066,2856,0
2,chat,hot_first,23.76,,,,0.068,2856,0
2,chat,hot_first,24.276,,,,0.067,2856,0
2,chat,hot_first,24.098,,,,0.069,2856,0
2,chat,hot_first,23.935,,,,0.131,2856,0
2,chat,hot_first,24.238,,,,0.27,2856,0
2,chat,hot_first,25.161,,,,0.067,2856,0
2,chat,hot_first,25.352,,,,0.067,2856,0
2,chat,hot_first,24.303,,,,0.128,2856,0
2,chat,hot_first,26.555,,,,0.091,2856,0
2,chat,hot_first,26.665,,,,0.095,2856,0
2,chat,hot_first,25.122,,,,0.069,2856,0
2,chat,hot_first,24.817,,,,0.068,2856,0
2,chat,hot_first,25.286,,,,0.096,2856,0
2,chat,hot_first,26.137,,,,0.07,2856,0
2,chat,hot_first,28.647,,,,0.069,2856,0
2,chat,hot_first,25.666,,,,0.078,2856,0
2,chat,hot_first,26.139,,,,0.069,2856,0
2,chat,hot_deep,9.254,,,,0.297,2862,0
2,chat,hot_deep,8.531,,,,0.066,2856,0
2,chat,hot_deep,8.205,,,,0.056,2856,0
2,chat,hot_deep,8.261,,,,0.076,2856,0
2,chat,hot_deep,8.88,,,,0.057,2856,0
2,chat,hot_deep,9.532,,,,0.067,2856,0
2,chat,hot_deep,8.369,,,,0.069,2856,0
2,chat,hot_deep,8.19,,,,0.06,2856,0
2,chat,hot_deep,8.892,,,,0.068,2856,0
2,chat,hot_deep,7.627,,,,0.058,2856,0
2,chat,hot_deep,9.503,,,,0.065,2856,0
2,chat,hot_deep,8.499,,,,0.062,2856,0
2,chat,hot_deep,8.671,,,,0.066,2856,0
2,chat,hot_deep,8.32,,,,0.058,2856,0
2,chat,hot_deep,8.058,,,,0.065,2856,0
2,chat,hot_deep,8.972,,,,0.061,2856,0
2,chat,hot_deep,9.806,,,,0.075,2856,0
2,chat,hot_deep,9.06,,,,0.058,2856,0
2,chat,hot_deep,8.438,,,,0.056,2856,0
2,chat,hot_deep,8.636,,,,0.071,2856,0
2,chat,small_deep,0.945,,,,0.227,155,0
2,chat,small_deep,0.73,,,,0.045,149,0
2,chat,small_deep,0.591,,,,0.045,149,0
2,chat,small_deep,0.716,,,,0.043,149,0
2,chat,small_deep,0.736,,,,0.057,149,0
2,chat,small_deep,0.682,,,,0.052,149,0
2,chat,small_deep,0.622,,,,0.04,149,0
2,chat,small_deep,0.602,,,,0.034,149,0
2,chat,small_deep,0.657,,,,0.029,149,0
2,chat,small_deep,0.587,,,,0.039,149,0
2,chat,small_deep,0.752,,,,0.037,149,0
2,chat,small_deep,0.669,,,,0.079,149,0
2,chat,small_deep,0.671,,,,0.053,149,0
2,chat,small_deep,0.646,,,,0.041,149,0
2,chat,small_deep,0.727,,,,0.032,149,0
2,chat,small_deep,0.659,,,,0.064,149,0
2,chat,small_deep,0.66,,,,0.063,149,0
2,chat,small_deep,0.642,,,,0.048,149,0
2,chat,small_deep,0.612,,,,0.042,149,0
2,chat,small_deep,0.585,,,,0.042,149,0
3,chat,insert_100000,1071.655,1292.7609999896958,41896134,663552,,,
3,chat,hot_first,26.495,,,,0.265,2862,0
3,chat,hot_first,27.361,,,,0.069,2856,0
3,chat,hot_first,24.395,,,,0.231,2856,0
3,chat,hot_first,25.486,,,,0.072,2856,0
3,chat,hot_first,25.114,,,,0.068,2856,0
3,chat,hot_first,26.402,,,,0.068,2856,0
3,chat,hot_first,25.725,,,,0.081,2856,0
3,chat,hot_first,25.563,,,,0.083,2856,0
3,chat,hot_first,24.829,,,,0.07,2856,0
3,chat,hot_first,25.111,,,,0.067,2856,0
3,chat,hot_first,24.88,,,,0.07,2856,0
3,chat,hot_first,25.728,,,,0.078,2856,0
3,chat,hot_first,26.729,,,,0.068,2856,0
3,chat,hot_first,27.725,,,,0.069,2856,0
3,chat,hot_first,28.529,,,,0.069,2856,0
3,chat,hot_first,24.694,,,,0.069,2856,0
3,chat,hot_first,25.886,,,,0.076,2856,0
3,chat,hot_first,24.727,,,,0.079,2856,0
3,chat,hot_first,24.851,,,,0.069,2856,0
3,chat,hot_first,31.14,,,,0.067,2856,0
3,chat,hot_deep,14.786,,,,0.26,2862,0
3,chat,hot_deep,9.625,,,,0.216,2856,0
3,chat,hot_deep,9.365,,,,0.136,2856,0
3,chat,hot_deep,8.736,,,,0.069,2856,0
3,chat,hot_deep,8.199,,,,0.078,2856,0
3,chat,hot_deep,7.894,,,,0.062,2856,0
3,chat,hot_deep,7.94,,,,0.056,2856,0
3,chat,hot_deep,7.95,,,,0.062,2856,0
3,chat,hot_deep,8.322,,,,0.091,2856,0
3,chat,hot_deep,8.22,,,,0.069,2856,0
3,chat,hot_deep,7.937,,,,0.069,2856,0
3,chat,hot_deep,8.127,,,,0.069,2856,0
3,chat,hot_deep,8.05,,,,0.066,2856,0
3,chat,hot_deep,9.153,,,,0.086,2856,0
3,chat,hot_deep,9.807,,,,0.078,2856,0
3,chat,hot_deep,8.263,,,,0.081,2856,0
3,chat,hot_deep,8.094,,,,0.057,2856,0
3,chat,hot_deep,9.194,,,,0.061,2856,0
3,chat,hot_deep,8.47,,,,0.054,2856,0
3,chat,hot_deep,7.938,,,,0.068,2856,0
3,chat,small_deep,0.854,,,,0.275,155,0
3,chat,small_deep,0.755,,,,0.042,149,0
3,chat,small_deep,0.654,,,,0.041,149,0
3,chat,small_deep,0.633,,,,0.042,149,0
3,chat,small_deep,0.634,,,,0.042,149,0
3,chat,small_deep,0.619,,,,0.039,149,0
3,chat,small_deep,0.754,,,,0.04,149,0
3,chat,small_deep,0.654,,,,0.058,149,0
3,chat,small_deep,0.709,,,,0.058,149,0
3,chat,small_deep,0.697,,,,0.052,149,0
3,chat,small_deep,0.611,,,,0.075,149,0
3,chat,small_deep,0.73,,,,0.052,149,0
3,chat,small_deep,0.702,,,,0.057,149,0
3,chat,small_deep,0.734,,,,0.063,149,0
3,chat,small_deep,0.646,,,,0.046,149,0
3,chat,small_deep,0.736,,,,0.038,149,0
3,chat,small_deep,0.651,,,,0.055,149,0
3,chat,small_deep,0.601,,,,0.043,149,0
3,chat,small_deep,0.568,,,,0.034,149,0
3,chat,small_deep,0.575,,,,0.035,149,0
3,composite,insert_100000,1057.69,1288.085800013505,45729460,6856704,,,
3,composite,hot_first,0.069,,,,0.238,5,0
3,composite,hot_first,0.043,,,,0.051,5,0
3,composite,hot_first,0.045,,,,0.063,5,0
3,composite,hot_first,0.037,,,,0.047,5,0
3,composite,hot_first,0.034,,,,0.039,5,0
3,composite,hot_first,0.041,,,,0.047,5,0
3,composite,hot_first,0.047,,,,0.044,5,0
3,composite,hot_first,0.034,,,,0.047,5,0
3,composite,hot_first,0.046,,,,0.046,5,0
3,composite,hot_first,0.036,,,,0.055,5,0
3,composite,hot_first,0.046,,,,0.051,5,0
3,composite,hot_first,0.064,,,,0.061,5,0
3,composite,hot_first,0.039,,,,0.056,5,0
3,composite,hot_first,0.038,,,,0.05,5,0
3,composite,hot_first,0.051,,,,0.058,5,0
3,composite,hot_first,0.035,,,,0.054,5,0
3,composite,hot_first,0.038,,,,0.061,5,0
3,composite,hot_first,0.034,,,,0.047,5,0
3,composite,hot_first,0.036,,,,0.049,5,0
3,composite,hot_first,0.037,,,,0.064,5,0
3,composite,hot_deep,0.074,,,,0.235,6,0
3,composite,hot_deep,0.044,,,,0.045,6,0
3,composite,hot_deep,0.036,,,,0.041,6,0
3,composite,hot_deep,0.034,,,,0.043,6,0
3,composite,hot_deep,0.034,,,,0.041,6,0
3,composite,hot_deep,0.035,,,,0.047,6,0
3,composite,hot_deep,0.036,,,,0.047,6,0
3,composite,hot_deep,0.035,,,,0.041,6,0
3,composite,hot_deep,0.035,,,,0.043,6,0
3,composite,hot_deep,0.035,,,,0.044,6,0
3,composite,hot_deep,0.048,,,,0.044,6,0
3,composite,hot_deep,0.036,,,,0.057,6,0
3,composite,hot_deep,0.034,,,,0.042,6,0
3,composite,hot_deep,0.035,,,,0.043,6,0
3,composite,hot_deep,0.034,,,,0.04,6,0
3,composite,hot_deep,0.036,,,,0.041,6,0
3,composite,hot_deep,0.052,,,,0.056,6,0
3,composite,hot_deep,0.037,,,,0.049,6,0
3,composite,hot_deep,0.034,,,,0.041,6,0
3,composite,hot_deep,0.033,,,,0.038,6,0
3,composite,small_deep,0.459,,,,0.265,50,0
3,composite,small_deep,0.611,,,,0.06,44,0
3,composite,small_deep,0.656,,,,0.139,44,0
3,composite,small_deep,0.637,,,,0.112,44,0
3,composite,small_deep,0.653,,,,0.122,44,0
3,composite,small_deep,0.665,,,,0.114,44,0
3,composite,small_deep,0.67,,,,0.111,44,0
3,composite,small_deep,0.854,,,,0.112,44,0
3,composite,small_deep,0.447,,,,0.092,44,0
3,composite,small_deep,0.641,,,,0.083,44,0
3,composite,small_deep,0.412,,,,0.08,44,0
3,composite,small_deep,0.971,,,,0.078,44,0
3,composite,small_deep,0.509,,,,0.079,44,0
3,composite,small_deep,0.627,,,,0.09,44,0
3,composite,small_deep,0.554,,,,0.087,44,0
3,composite,small_deep,0.436,,,,0.097,44,0
3,composite,small_deep,0.442,,,,0.083,44,0
3,composite,small_deep,0.376,,,,0.063,44,0
3,composite,small_deep,0.63,,,,0.083,44,0
3,composite,small_deep,0.409,,,,0.07,44,0
1 repeat variant case execution_ms wall_with_commit_and_docker_ms wal_bytes index_bytes planning_ms shared_hit_blocks shared_read_blocks
2 1 chat insert_100000 1623.789 1860.107299988158 41896134 663552
3 1 chat hot_first 26.09 0.242 2862 0
4 1 chat hot_first 24.815 0.068 2856 0
5 1 chat hot_first 25.321 0.1 2856 0
6 1 chat hot_first 27.364 0.091 2856 0
7 1 chat hot_first 26.19 0.38 2856 0
8 1 chat hot_first 24.915 0.068 2856 0
9 1 chat hot_first 24.341 0.065 2856 0
10 1 chat hot_first 25.239 0.068 2856 0
11 1 chat hot_first 25.957 0.12 2856 0
12 1 chat hot_first 25.037 0.066 2856 0
13 1 chat hot_first 24.031 0.065 2856 0
14 1 chat hot_first 24.805 0.065 2856 0
15 1 chat hot_first 26.653 0.233 2856 0
16 1 chat hot_first 25.373 0.076 2856 0
17 1 chat hot_first 25.078 0.069 2856 0
18 1 chat hot_first 25.93 0.099 2856 0
19 1 chat hot_first 26.354 0.1 2856 0
20 1 chat hot_first 25.725 0.068 2856 0
21 1 chat hot_first 25.411 0.066 2856 0
22 1 chat hot_first 26.59 0.067 2856 0
23 1 chat hot_deep 11.36 0.215 2862 0
24 1 chat hot_deep 8.917 0.069 2856 0
25 1 chat hot_deep 8.863 0.067 2856 0
26 1 chat hot_deep 9.008 0.067 2856 0
27 1 chat hot_deep 8.587 0.068 2856 0
28 1 chat hot_deep 9.766 0.069 2856 0
29 1 chat hot_deep 8.607 0.068 2856 0
30 1 chat hot_deep 9.304 0.075 2856 0
31 1 chat hot_deep 9.045 0.07 2856 0
32 1 chat hot_deep 8.578 0.069 2856 0
33 1 chat hot_deep 10.621 0.068 2856 0
34 1 chat hot_deep 8.722 0.07 2856 0
35 1 chat hot_deep 9.06 0.069 2856 0
36 1 chat hot_deep 8.834 0.069 2856 0
37 1 chat hot_deep 9.253 0.069 2856 0
38 1 chat hot_deep 8.762 0.068 2856 0
39 1 chat hot_deep 8.679 0.069 2856 0
40 1 chat hot_deep 9.126 0.067 2856 0
41 1 chat hot_deep 9.439 0.072 2856 0
42 1 chat hot_deep 9.336 0.181 2856 0
43 1 chat small_deep 0.836 0.214 155 0
44 1 chat small_deep 0.745 0.042 149 0
45 1 chat small_deep 0.671 0.048 149 0
46 1 chat small_deep 0.68 0.039 149 0
47 1 chat small_deep 0.643 0.042 149 0
48 1 chat small_deep 0.646 0.041 149 0
49 1 chat small_deep 0.582 0.05 149 0
50 1 chat small_deep 0.603 0.04 149 0
51 1 chat small_deep 0.585 0.042 149 0
52 1 chat small_deep 0.631 0.042 149 0
53 1 chat small_deep 0.611 0.048 149 0
54 1 chat small_deep 0.58 0.039 149 0
55 1 chat small_deep 0.571 0.035 149 0
56 1 chat small_deep 0.564 0.034 149 0
57 1 chat small_deep 0.652 0.034 149 0
58 1 chat small_deep 0.711 0.051 149 0
59 1 chat small_deep 0.603 0.048 149 0
60 1 chat small_deep 0.588 0.041 149 0
61 1 chat small_deep 0.73 0.037 149 0
62 1 chat small_deep 0.651 0.044 149 0
63 1 composite insert_100000 1289.336 1513.1839999230579 45729460 6856704
64 1 composite hot_first 0.076 0.228 5 0
65 1 composite hot_first 0.037 0.039 5 0
66 1 composite hot_first 0.027 0.03 5 0
67 1 composite hot_first 0.033 0.039 5 0
68 1 composite hot_first 0.031 0.039 5 0
69 1 composite hot_first 0.032 0.039 5 0
70 1 composite hot_first 0.049 0.092 5 0
71 1 composite hot_first 0.048 0.04 5 0
72 1 composite hot_first 0.033 0.051 5 0
73 1 composite hot_first 0.042 0.051 5 0
74 1 composite hot_first 0.033 0.038 5 0
75 1 composite hot_first 0.033 0.107 5 0
76 1 composite hot_first 0.031 0.038 5 0
77 1 composite hot_first 0.032 0.039 5 0
78 1 composite hot_first 0.032 0.038 5 0
79 1 composite hot_first 0.032 0.041 5 0
80 1 composite hot_first 0.034 0.054 5 0
81 1 composite hot_first 0.032 0.039 5 0
82 1 composite hot_first 0.031 0.038 5 0
83 1 composite hot_first 0.034 0.049 5 0
84 1 composite hot_deep 0.084 0.25 6 0
85 1 composite hot_deep 0.038 0.039 6 0
86 1 composite hot_deep 0.034 0.061 6 0
87 1 composite hot_deep 0.032 0.039 6 0
88 1 composite hot_deep 0.073 0.04 6 0
89 1 composite hot_deep 0.033 0.042 6 0
90 1 composite hot_deep 0.043 0.039 6 0
91 1 composite hot_deep 0.035 0.042 6 0
92 1 composite hot_deep 0.034 0.043 6 0
93 1 composite hot_deep 0.034 0.04 6 0
94 1 composite hot_deep 0.033 0.04 6 0
95 1 composite hot_deep 0.035 0.056 6 0
96 1 composite hot_deep 0.031 0.032 6 0
97 1 composite hot_deep 0.029 0.029 6 0
98 1 composite hot_deep 0.043 0.05 6 0
99 1 composite hot_deep 0.047 0.054 6 0
100 1 composite hot_deep 0.048 0.045 6 0
101 1 composite hot_deep 0.047 0.097 6 0
102 1 composite hot_deep 0.04 0.059 6 0
103 1 composite hot_deep 0.045 0.095 6 0
104 1 composite small_deep 0.462 0.246 50 0
105 1 composite small_deep 0.375 0.042 44 0
106 1 composite small_deep 0.349 0.042 44 0
107 1 composite small_deep 0.345 0.047 44 0
108 1 composite small_deep 0.338 0.04 44 0
109 1 composite small_deep 0.412 0.043 44 0
110 1 composite small_deep 0.333 0.044 44 0
111 1 composite small_deep 0.325 0.036 44 0
112 1 composite small_deep 0.339 0.045 44 0
113 1 composite small_deep 0.339 0.05 44 0
114 1 composite small_deep 0.336 0.045 44 0
115 1 composite small_deep 0.358 0.051 44 0
116 1 composite small_deep 0.369 0.059 44 0
117 1 composite small_deep 0.389 0.057 44 0
118 1 composite small_deep 0.367 0.055 44 0
119 1 composite small_deep 0.352 0.054 44 0
120 1 composite small_deep 0.335 0.05 44 0
121 1 composite small_deep 0.393 0.031 44 0
122 1 composite small_deep 0.329 0.031 44 0
123 1 composite small_deep 0.397 0.028 44 0
124 2 composite insert_100000 1165.973 1402.5969000067562 45729460 6856704
125 2 composite hot_first 0.079 0.266 5 0
126 2 composite hot_first 0.042 0.044 5 0
127 2 composite hot_first 0.047 0.044 5 0
128 2 composite hot_first 0.05 0.054 5 0
129 2 composite hot_first 0.046 0.053 5 0
130 2 composite hot_first 0.047 0.047 5 0
131 2 composite hot_first 0.087 0.061 5 0
132 2 composite hot_first 0.032 0.045 5 0
133 2 composite hot_first 0.034 0.045 5 0
134 2 composite hot_first 0.034 0.047 5 0
135 2 composite hot_first 0.047 0.039 5 0
136 2 composite hot_first 0.031 0.04 5 0
137 2 composite hot_first 0.059 0.041 5 0
138 2 composite hot_first 0.029 0.036 5 0
139 2 composite hot_first 0.058 0.03 5 0
140 2 composite hot_first 0.033 0.042 5 0
141 2 composite hot_first 0.063 0.04 5 0
142 2 composite hot_first 0.032 0.039 5 0
143 2 composite hot_first 0.032 0.039 5 0
144 2 composite hot_first 0.032 0.039 5 0
145 2 composite hot_deep 0.072 0.232 6 0
146 2 composite hot_deep 0.049 0.042 6 0
147 2 composite hot_deep 0.032 0.039 6 0
148 2 composite hot_deep 0.032 0.039 6 0
149 2 composite hot_deep 0.034 0.05 6 0
150 2 composite hot_deep 0.041 0.045 6 0
151 2 composite hot_deep 0.032 0.038 6 0
152 2 composite hot_deep 0.034 0.039 6 0
153 2 composite hot_deep 0.035 0.054 6 0
154 2 composite hot_deep 0.033 0.042 6 0
155 2 composite hot_deep 0.033 0.04 6 0
156 2 composite hot_deep 0.032 0.038 6 0
157 2 composite hot_deep 0.033 0.044 6 0
158 2 composite hot_deep 0.033 0.038 6 0
159 2 composite hot_deep 0.033 0.047 6 0
160 2 composite hot_deep 0.037 0.057 6 0
161 2 composite hot_deep 0.057 0.043 6 0
162 2 composite hot_deep 0.038 0.052 6 0
163 2 composite hot_deep 0.039 0.054 6 0
164 2 composite hot_deep 0.037 0.045 6 0
165 2 composite small_deep 0.432 0.25 50 0
166 2 composite small_deep 0.388 0.04 44 0
167 2 composite small_deep 0.334 0.057 44 0
168 2 composite small_deep 0.367 0.045 44 0
169 2 composite small_deep 0.329 0.043 44 0
170 2 composite small_deep 0.395 0.042 44 0
171 2 composite small_deep 0.353 0.038 44 0
172 2 composite small_deep 0.325 0.058 44 0
173 2 composite small_deep 0.328 0.04 44 0
174 2 composite small_deep 0.343 0.043 44 0
175 2 composite small_deep 0.351 0.036 44 0
176 2 composite small_deep 0.382 0.033 44 0
177 2 composite small_deep 0.425 0.05 44 0
178 2 composite small_deep 0.348 0.059 44 0
179 2 composite small_deep 0.337 0.049 44 0
180 2 composite small_deep 0.349 0.04 44 0
181 2 composite small_deep 0.365 0.041 44 0
182 2 composite small_deep 0.357 0.036 44 0
183 2 composite small_deep 0.389 0.032 44 0
184 2 composite small_deep 0.349 0.034 44 0
185 2 chat insert_100000 1018.697 1253.4370000939816 41896134 663552
186 2 chat hot_first 25.791 0.228 2862 0
187 2 chat hot_first 23.947 0.067 2856 0
188 2 chat hot_first 25.473 0.066 2856 0
189 2 chat hot_first 23.76 0.068 2856 0
190 2 chat hot_first 24.276 0.067 2856 0
191 2 chat hot_first 24.098 0.069 2856 0
192 2 chat hot_first 23.935 0.131 2856 0
193 2 chat hot_first 24.238 0.27 2856 0
194 2 chat hot_first 25.161 0.067 2856 0
195 2 chat hot_first 25.352 0.067 2856 0
196 2 chat hot_first 24.303 0.128 2856 0
197 2 chat hot_first 26.555 0.091 2856 0
198 2 chat hot_first 26.665 0.095 2856 0
199 2 chat hot_first 25.122 0.069 2856 0
200 2 chat hot_first 24.817 0.068 2856 0
201 2 chat hot_first 25.286 0.096 2856 0
202 2 chat hot_first 26.137 0.07 2856 0
203 2 chat hot_first 28.647 0.069 2856 0
204 2 chat hot_first 25.666 0.078 2856 0
205 2 chat hot_first 26.139 0.069 2856 0
206 2 chat hot_deep 9.254 0.297 2862 0
207 2 chat hot_deep 8.531 0.066 2856 0
208 2 chat hot_deep 8.205 0.056 2856 0
209 2 chat hot_deep 8.261 0.076 2856 0
210 2 chat hot_deep 8.88 0.057 2856 0
211 2 chat hot_deep 9.532 0.067 2856 0
212 2 chat hot_deep 8.369 0.069 2856 0
213 2 chat hot_deep 8.19 0.06 2856 0
214 2 chat hot_deep 8.892 0.068 2856 0
215 2 chat hot_deep 7.627 0.058 2856 0
216 2 chat hot_deep 9.503 0.065 2856 0
217 2 chat hot_deep 8.499 0.062 2856 0
218 2 chat hot_deep 8.671 0.066 2856 0
219 2 chat hot_deep 8.32 0.058 2856 0
220 2 chat hot_deep 8.058 0.065 2856 0
221 2 chat hot_deep 8.972 0.061 2856 0
222 2 chat hot_deep 9.806 0.075 2856 0
223 2 chat hot_deep 9.06 0.058 2856 0
224 2 chat hot_deep 8.438 0.056 2856 0
225 2 chat hot_deep 8.636 0.071 2856 0
226 2 chat small_deep 0.945 0.227 155 0
227 2 chat small_deep 0.73 0.045 149 0
228 2 chat small_deep 0.591 0.045 149 0
229 2 chat small_deep 0.716 0.043 149 0
230 2 chat small_deep 0.736 0.057 149 0
231 2 chat small_deep 0.682 0.052 149 0
232 2 chat small_deep 0.622 0.04 149 0
233 2 chat small_deep 0.602 0.034 149 0
234 2 chat small_deep 0.657 0.029 149 0
235 2 chat small_deep 0.587 0.039 149 0
236 2 chat small_deep 0.752 0.037 149 0
237 2 chat small_deep 0.669 0.079 149 0
238 2 chat small_deep 0.671 0.053 149 0
239 2 chat small_deep 0.646 0.041 149 0
240 2 chat small_deep 0.727 0.032 149 0
241 2 chat small_deep 0.659 0.064 149 0
242 2 chat small_deep 0.66 0.063 149 0
243 2 chat small_deep 0.642 0.048 149 0
244 2 chat small_deep 0.612 0.042 149 0
245 2 chat small_deep 0.585 0.042 149 0
246 3 chat insert_100000 1071.655 1292.7609999896958 41896134 663552
247 3 chat hot_first 26.495 0.265 2862 0
248 3 chat hot_first 27.361 0.069 2856 0
249 3 chat hot_first 24.395 0.231 2856 0
250 3 chat hot_first 25.486 0.072 2856 0
251 3 chat hot_first 25.114 0.068 2856 0
252 3 chat hot_first 26.402 0.068 2856 0
253 3 chat hot_first 25.725 0.081 2856 0
254 3 chat hot_first 25.563 0.083 2856 0
255 3 chat hot_first 24.829 0.07 2856 0
256 3 chat hot_first 25.111 0.067 2856 0
257 3 chat hot_first 24.88 0.07 2856 0
258 3 chat hot_first 25.728 0.078 2856 0
259 3 chat hot_first 26.729 0.068 2856 0
260 3 chat hot_first 27.725 0.069 2856 0
261 3 chat hot_first 28.529 0.069 2856 0
262 3 chat hot_first 24.694 0.069 2856 0
263 3 chat hot_first 25.886 0.076 2856 0
264 3 chat hot_first 24.727 0.079 2856 0
265 3 chat hot_first 24.851 0.069 2856 0
266 3 chat hot_first 31.14 0.067 2856 0
267 3 chat hot_deep 14.786 0.26 2862 0
268 3 chat hot_deep 9.625 0.216 2856 0
269 3 chat hot_deep 9.365 0.136 2856 0
270 3 chat hot_deep 8.736 0.069 2856 0
271 3 chat hot_deep 8.199 0.078 2856 0
272 3 chat hot_deep 7.894 0.062 2856 0
273 3 chat hot_deep 7.94 0.056 2856 0
274 3 chat hot_deep 7.95 0.062 2856 0
275 3 chat hot_deep 8.322 0.091 2856 0
276 3 chat hot_deep 8.22 0.069 2856 0
277 3 chat hot_deep 7.937 0.069 2856 0
278 3 chat hot_deep 8.127 0.069 2856 0
279 3 chat hot_deep 8.05 0.066 2856 0
280 3 chat hot_deep 9.153 0.086 2856 0
281 3 chat hot_deep 9.807 0.078 2856 0
282 3 chat hot_deep 8.263 0.081 2856 0
283 3 chat hot_deep 8.094 0.057 2856 0
284 3 chat hot_deep 9.194 0.061 2856 0
285 3 chat hot_deep 8.47 0.054 2856 0
286 3 chat hot_deep 7.938 0.068 2856 0
287 3 chat small_deep 0.854 0.275 155 0
288 3 chat small_deep 0.755 0.042 149 0
289 3 chat small_deep 0.654 0.041 149 0
290 3 chat small_deep 0.633 0.042 149 0
291 3 chat small_deep 0.634 0.042 149 0
292 3 chat small_deep 0.619 0.039 149 0
293 3 chat small_deep 0.754 0.04 149 0
294 3 chat small_deep 0.654 0.058 149 0
295 3 chat small_deep 0.709 0.058 149 0
296 3 chat small_deep 0.697 0.052 149 0
297 3 chat small_deep 0.611 0.075 149 0
298 3 chat small_deep 0.73 0.052 149 0
299 3 chat small_deep 0.702 0.057 149 0
300 3 chat small_deep 0.734 0.063 149 0
301 3 chat small_deep 0.646 0.046 149 0
302 3 chat small_deep 0.736 0.038 149 0
303 3 chat small_deep 0.651 0.055 149 0
304 3 chat small_deep 0.601 0.043 149 0
305 3 chat small_deep 0.568 0.034 149 0
306 3 chat small_deep 0.575 0.035 149 0
307 3 composite insert_100000 1057.69 1288.085800013505 45729460 6856704
308 3 composite hot_first 0.069 0.238 5 0
309 3 composite hot_first 0.043 0.051 5 0
310 3 composite hot_first 0.045 0.063 5 0
311 3 composite hot_first 0.037 0.047 5 0
312 3 composite hot_first 0.034 0.039 5 0
313 3 composite hot_first 0.041 0.047 5 0
314 3 composite hot_first 0.047 0.044 5 0
315 3 composite hot_first 0.034 0.047 5 0
316 3 composite hot_first 0.046 0.046 5 0
317 3 composite hot_first 0.036 0.055 5 0
318 3 composite hot_first 0.046 0.051 5 0
319 3 composite hot_first 0.064 0.061 5 0
320 3 composite hot_first 0.039 0.056 5 0
321 3 composite hot_first 0.038 0.05 5 0
322 3 composite hot_first 0.051 0.058 5 0
323 3 composite hot_first 0.035 0.054 5 0
324 3 composite hot_first 0.038 0.061 5 0
325 3 composite hot_first 0.034 0.047 5 0
326 3 composite hot_first 0.036 0.049 5 0
327 3 composite hot_first 0.037 0.064 5 0
328 3 composite hot_deep 0.074 0.235 6 0
329 3 composite hot_deep 0.044 0.045 6 0
330 3 composite hot_deep 0.036 0.041 6 0
331 3 composite hot_deep 0.034 0.043 6 0
332 3 composite hot_deep 0.034 0.041 6 0
333 3 composite hot_deep 0.035 0.047 6 0
334 3 composite hot_deep 0.036 0.047 6 0
335 3 composite hot_deep 0.035 0.041 6 0
336 3 composite hot_deep 0.035 0.043 6 0
337 3 composite hot_deep 0.035 0.044 6 0
338 3 composite hot_deep 0.048 0.044 6 0
339 3 composite hot_deep 0.036 0.057 6 0
340 3 composite hot_deep 0.034 0.042 6 0
341 3 composite hot_deep 0.035 0.043 6 0
342 3 composite hot_deep 0.034 0.04 6 0
343 3 composite hot_deep 0.036 0.041 6 0
344 3 composite hot_deep 0.052 0.056 6 0
345 3 composite hot_deep 0.037 0.049 6 0
346 3 composite hot_deep 0.034 0.041 6 0
347 3 composite hot_deep 0.033 0.038 6 0
348 3 composite small_deep 0.459 0.265 50 0
349 3 composite small_deep 0.611 0.06 44 0
350 3 composite small_deep 0.656 0.139 44 0
351 3 composite small_deep 0.637 0.112 44 0
352 3 composite small_deep 0.653 0.122 44 0
353 3 composite small_deep 0.665 0.114 44 0
354 3 composite small_deep 0.67 0.111 44 0
355 3 composite small_deep 0.854 0.112 44 0
356 3 composite small_deep 0.447 0.092 44 0
357 3 composite small_deep 0.641 0.083 44 0
358 3 composite small_deep 0.412 0.08 44 0
359 3 composite small_deep 0.971 0.078 44 0
360 3 composite small_deep 0.509 0.079 44 0
361 3 composite small_deep 0.627 0.09 44 0
362 3 composite small_deep 0.554 0.087 44 0
363 3 composite small_deep 0.436 0.097 44 0
364 3 composite small_deep 0.442 0.083 44 0
365 3 composite small_deep 0.376 0.063 44 0
366 3 composite small_deep 0.63 0.083 44 0
367 3 composite small_deep 0.409 0.07 44 0
+199
View File
@@ -0,0 +1,199 @@
{
"utc": "2026-10-16T12:07:09.786905+00:00",
"image": "postgres:17.6-bookworm@sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
"host": "linux/x86_64 CPUs=12 MemoryBytes=3956064256",
"limits": {
"cpus_per_container": 2,
"memory_bytes": 536870912,
"clients": 1
},
"method": {
"repeats": 3,
"read_samples_per_case_per_repeat": 20,
"warmup": 3,
"order": [
"chat,composite",
"composite,chat",
"chat,composite"
],
"distribution": [
80000,
15000,
5000
],
"parallel_query": false,
"jit": false
},
"postgres": "PostgreSQL 17.6 (Debian 17.6-2.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit",
"summary": [
{
"variant": "chat",
"case": "insert_100000",
"samples": 3,
"median_ms": 1071.655,
"p95_ms": null,
"p99_ms": null,
"index_bytes": 663552,
"wal_bytes": 41896134,
"shared_hit_blocks": null,
"shared_read_blocks": null
},
{
"variant": "chat",
"case": "hot_first",
"samples": 60,
"median_ms": 25.392000000000003,
"p95_ms": 27.725,
"p99_ms": 31.14,
"index_bytes": null,
"wal_bytes": null,
"shared_hit_blocks": 2856.0,
"shared_read_blocks": 0.0
},
{
"variant": "chat",
"case": "hot_deep",
"samples": 60,
"median_ms": 8.729,
"p95_ms": 9.807,
"p99_ms": 14.786,
"index_bytes": null,
"wal_bytes": null,
"shared_hit_blocks": 2856.0,
"shared_read_blocks": 0.0
},
{
"variant": "chat",
"case": "small_deep",
"samples": 60,
"median_ms": 0.6515,
"p95_ms": 0.755,
"p99_ms": 0.945,
"index_bytes": null,
"wal_bytes": null,
"shared_hit_blocks": 149.0,
"shared_read_blocks": 0.0
},
{
"variant": "composite",
"case": "insert_100000",
"samples": 3,
"median_ms": 1165.973,
"p95_ms": null,
"p99_ms": null,
"index_bytes": 6856704,
"wal_bytes": 45729460,
"shared_hit_blocks": null,
"shared_read_blocks": null
},
{
"variant": "composite",
"case": "hot_first",
"samples": 60,
"median_ms": 0.0365,
"p95_ms": 0.069,
"p99_ms": 0.087,
"index_bytes": null,
"wal_bytes": null,
"shared_hit_blocks": 5.0,
"shared_read_blocks": 0.0
},
{
"variant": "composite",
"case": "hot_deep",
"samples": 60,
"median_ms": 0.035,
"p95_ms": 0.072,
"p99_ms": 0.084,
"index_bytes": null,
"wal_bytes": null,
"shared_hit_blocks": 6.0,
"shared_read_blocks": 0.0
},
{
"variant": "composite",
"case": "small_deep",
"samples": 60,
"median_ms": 0.379,
"p95_ms": 0.665,
"p99_ms": 0.971,
"index_bytes": null,
"wal_bytes": null,
"shared_hit_blocks": 44.0,
"shared_read_blocks": 0.0
}
],
"restore": {
"source_container": "lab2-research-83fe774600",
"target_container": "lab2-restore-83fe774600",
"source_volume": "lab2-research-83fe774600-data",
"new_volume": "lab2-restore-83fe774600-data",
"destination_initial_public_tables": 0,
"dump_seconds": 0.5826623999746516,
"dump_bytes": 3027977,
"dump_path": "backups/research-83fe774600.dump",
"destination_startup_seconds": 2.4172622999176383,
"pg_restore_seconds": 1.1627591999713331,
"recovery_through_verification_seconds": 6.650994199910201,
"before_backup": {
"counts": {
"users": 1,
"chats": 3,
"chat_members": 3,
"messages": 100000,
"schema_migrations": 2
},
"chat_counts": {
"6adca606-cb42-ce80-9dfe-e9c5ab3f1b51": 80000,
"0edbe356-1e20-7355-3db8-96e0eb8b4f65": 5000,
"64774a49-48b0-211f-0ac6-28d7a0db260f": 15000
},
"history_sha256": "77d6cd55c7467440c0c500f3aa8fcf74145fbd6b108b347cea51d54c5886e52a",
"samples": {
"200726dc-60e7-4926-cb2a-83366f5e1508": "0035c2ed1e41b01413e82ed95631c6391168b910dd6e78a6a6e8a4c595fea1dd",
"2ec90eaf-63d3-874f-03e0-4b72e302aa34": "40e53c4b3479d711e9ccf09ba951fc67a00083274b65fee7723c10a6bce1bbeb",
"5250e7db-fada-8da9-5526-2558f592e527": "640901647462319a187ea1d1277f54880bf9c4df1ba69621a25190f22e7b21f2",
"59f8c672-0c1a-ed3e-9fbc-bbe8c574a7a2": "f2a2c79fe54650df021d8e3b752e221d481002a9715452fad82dc579fe0c87ee",
"7a15b473-994f-e836-a01a-4ff3eafcb285": "7ce58b566161b6dfcbb418c0abe90574c3eae47d98378969c6c12adfdf7b3fb6",
"7aaf2bd4-084d-2b18-d619-5cf0cfecd280": "865bcb893c76498eb31c7f06d19db18db520771824b8157e9a561e5dbb9d1d0a",
"80408f00-16cd-9fd0-de25-77a69236c5f5": "b70b5407f08ab2bbea71b530b9803b2aece580985681408f1acffa96a4df45e2",
"8dbc017a-9f4f-1a71-ae0f-6e1e4926fa09": "0fd7cdf68fe068c441a57ae369997050ed584167a7988d21e9131dc593f9ba89",
"ae678afe-42a2-1c39-aa5d-83256f57f1a7": "6a305999f64702e8f8475797e0884ff473c271c42f56ded6e51546563591c3b6",
"b4d94967-7ae4-b21c-60b7-ffd32fffd17c": "04e7ea69116281e36e3fbe9e753e81c7585dd24f01c7f8245c4a388c8326a368",
"cf53958f-c8bf-496e-e9ab-d1c4385382ea": "b6796018ff49584e48afe5ce4c5d360b018f30f205eed9073f44f8504ae091da"
}
},
"after_restore": {
"counts": {
"users": 1,
"chats": 3,
"chat_members": 3,
"messages": 100000,
"schema_migrations": 2
},
"chat_counts": {
"64774a49-48b0-211f-0ac6-28d7a0db260f": 15000,
"6adca606-cb42-ce80-9dfe-e9c5ab3f1b51": 80000,
"0edbe356-1e20-7355-3db8-96e0eb8b4f65": 5000
},
"history_sha256": "77d6cd55c7467440c0c500f3aa8fcf74145fbd6b108b347cea51d54c5886e52a",
"samples": {
"200726dc-60e7-4926-cb2a-83366f5e1508": "0035c2ed1e41b01413e82ed95631c6391168b910dd6e78a6a6e8a4c595fea1dd",
"2ec90eaf-63d3-874f-03e0-4b72e302aa34": "40e53c4b3479d711e9ccf09ba951fc67a00083274b65fee7723c10a6bce1bbeb",
"5250e7db-fada-8da9-5526-2558f592e527": "640901647462319a187ea1d1277f54880bf9c4df1ba69621a25190f22e7b21f2",
"59f8c672-0c1a-ed3e-9fbc-bbe8c574a7a2": "f2a2c79fe54650df021d8e3b752e221d481002a9715452fad82dc579fe0c87ee",
"7a15b473-994f-e836-a01a-4ff3eafcb285": "7ce58b566161b6dfcbb418c0abe90574c3eae47d98378969c6c12adfdf7b3fb6",
"7aaf2bd4-084d-2b18-d619-5cf0cfecd280": "865bcb893c76498eb31c7f06d19db18db520771824b8157e9a561e5dbb9d1d0a",
"80408f00-16cd-9fd0-de25-77a69236c5f5": "b70b5407f08ab2bbea71b530b9803b2aece580985681408f1acffa96a4df45e2",
"8dbc017a-9f4f-1a71-ae0f-6e1e4926fa09": "0fd7cdf68fe068c441a57ae369997050ed584167a7988d21e9131dc593f9ba89",
"ae678afe-42a2-1c39-aa5d-83256f57f1a7": "6a305999f64702e8f8475797e0884ff473c271c42f56ded6e51546563591c3b6",
"b4d94967-7ae4-b21c-60b7-ffd32fffd17c": "04e7ea69116281e36e3fbe9e753e81c7585dd24f01c7f8245c4a388c8326a368",
"cf53958f-c8bf-496e-e9ab-d1c4385382ea": "b6796018ff49584e48afe5ce4c5d360b018f30f205eed9073f44f8504ae091da"
}
},
"source_count_after_backup": 100001,
"restored_count": 100000,
"post_backup_marker_absent": true
},
"result": "PASS: two indexes, 100000 uneven messages, write cost, new-volume restore and SHA256 verified"
}
+3
View File
@@ -0,0 +1,3 @@
/mtusi-lab2-api-1 2026-10-16T12:12:56.423734297Z
/mtusi-lab2-db-1 2026-10-16T12:12:52.943113207Z
/mtusi-lab2-valkey-1 2026-10-16T12:12:52.868740837Z
+3
View File
@@ -0,0 +1,3 @@
/mtusi-lab2-api-1 2026-10-16T11:39:33.975833867Z
/mtusi-lab2-db-1 2026-10-16T11:39:30.617236669Z
/mtusi-lab2-valkey-1 2026-10-16T11:39:30.667089298Z
+5
View File
@@ -0,0 +1,5 @@
2026-10-16T11:21:04Z
$ make test BASE_URL=http://127.0.0.1:8080
python3 tests/smoke.py --base-url "http://127.0.0.1:8080"
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
exit_code=0
+4
View File
@@ -0,0 +1,4 @@
2026-10-16T11:21:22Z
$ python -X utf8 scripts/verify_sources.py
PASS: 17 mandatory files unchanged; public Makefile targets preserved
exit_code=0
+74
View File
@@ -0,0 +1,74 @@
{
"baseline": "65003b61195361aac238f19c9bff0027ca58e09e",
"files": [
{
"path": "CONTRIBUTING.md",
"sha256_lf": "2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e"
},
{
"path": "COURSE.md",
"sha256_lf": "c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971"
},
{
"path": "MAINTAINERS.md",
"sha256_lf": "59a70ede89ba308a782f0695f8441dfa4b75479d155966303ab86addc36f8d1f"
},
{
"path": "README.md",
"sha256_lf": "4f14a97911bd3ea335868d37fec187d1738b42f91a7d4780d33b721edf25b6dc"
},
{
"path": "contracts/README.md",
"sha256_lf": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f"
},
{
"path": "contracts/examples.json",
"sha256_lf": "0a71cec72903af556df85f939c7e347fc73a86a1a4ffc39fb9c8ded169b7df45"
},
{
"path": "contracts/infrastructure.json",
"sha256_lf": "7efd8b1e6023ddc3ff9747d4f663ee772c1293b782bb9e74bd1c3fbcca9c68d8"
},
{
"path": "contracts/openapi.json",
"sha256_lf": "cff3aa6b34855b573401b0ac393fdfe327b6a12da51f315fbbd67168ce3762c4"
},
{
"path": "lab.json",
"sha256_lf": "d63eac8df585a63153cff0c632e6b81b2088316b53d531eecc856ec1da7855e4"
},
{
"path": "requirements-dev.txt",
"sha256_lf": "4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525"
},
{
"path": "scripts/check_contract.py",
"sha256_lf": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671"
},
{
"path": "scripts/validate_openapi.py",
"sha256_lf": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54"
},
{
"path": "tests/README.md",
"sha256_lf": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5"
},
{
"path": "tests/client.py",
"sha256_lf": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d"
},
{
"path": "tests/load.py",
"sha256_lf": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933"
},
{
"path": "tests/resilience.py",
"sha256_lf": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b"
},
{
"path": "tests/smoke.py",
"sha256_lf": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db"
}
],
"result": "PASS: mandatory files identical (LF normalized); original Makefile targets preserved"
}