Перенести мессенджер на PostgreSQL и сессии Redis.
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
Сообщения должны переживать рестарт, а доступ идти через Bearer, а не X-User-Id. Трек 2 сравнивает план keyset-запроса и сверяет pg_restore.
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"explain": [
|
||||
{
|
||||
"Execution Time": 0.091,
|
||||
"Plan": {
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 50,
|
||||
"Actual Startup Time": 0.061,
|
||||
"Actual Total Time": 0.075,
|
||||
"Async Capable": false,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Plan Rows": 50,
|
||||
"Plan Width": 24,
|
||||
"Plans": [
|
||||
{
|
||||
"Actual Loops": 1,
|
||||
"Actual Rows": 50,
|
||||
"Actual Startup Time": 0.06,
|
||||
"Actual Total Time": 0.068,
|
||||
"Alias": "messages",
|
||||
"Async Capable": false,
|
||||
"Heap Fetches": 50,
|
||||
"Index Cond": "((chat_id = 'dd159fd8-b79e-4a15-a48c-4a84bd479430'::uuid) AND (ROW(created_at, id) \u003e ROW('2026-10-14 19:46:28.256+00'::timestamp with time zone, 'f051734d-6f81-440a-9253-0b417ccee2b1'::uuid)))",
|
||||
"Index Name": "messages_history_idx",
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Node Type": "Index Only Scan",
|
||||
"Parallel Aware": false,
|
||||
"Parent Relationship": "Outer",
|
||||
"Plan Rows": 167,
|
||||
"Plan Width": 24,
|
||||
"Relation Name": "messages",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Scan Direction": "Forward",
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 1,
|
||||
"Shared Read Blocks": 3,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.42,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 635.76
|
||||
}
|
||||
],
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 1,
|
||||
"Shared Read Blocks": 3,
|
||||
"Shared Written Blocks": 0,
|
||||
"Startup Cost": 0.42,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Total Cost": 190.64
|
||||
},
|
||||
"Planning": {
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Hit Blocks": 22,
|
||||
"Shared Read Blocks": 1,
|
||||
"Shared Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.17,
|
||||
"Triggers": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user