lab 2 realization: PostgreSQL, Valkey, track 2
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user