Перенести мессенджер на PostgreSQL и сессии Redis.
Skeleton contracts / contracts (pull_request) Canceled after 0s

Сообщения должны переживать рестарт, а доступ идти через Bearer, а не X-User-Id. Трек 2 сравнивает план keyset-запроса и сверяет pg_restore.
This commit is contained in:
Mlvn
2026-10-14 22:47:08 +03:00
parent 65003b6119
commit 096c53ecdb
29 changed files with 3384 additions and 23 deletions
+13
View File
@@ -0,0 +1,13 @@
{
"cursor_offset": 30000,
"largest_chat_messages": 74449,
"strong_index": "messages_history_idx (chat_id, created_at, id)",
"strong_plan": "node=Limit execution_ms=0.091 shared_hit_blocks=1 sort=false",
"weak_index": "messages_chat_only_idx (chat_id)",
"weak_plan": "node=Limit execution_ms=16.435 shared_hit_blocks=847 sort=true",
"write_cost": {
"chat_id_plus_history_ms": 31,
"only_chat_id_index_ms": 30,
"rows": 5000
}
}