ЛР 2 — PostgreSQL, сессии и Redis
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Nik
2026-10-09 13:44:16 +03:00
parent 65003b6119
commit f87929c0d7
16 changed files with 494 additions and 29 deletions
+7
View File
@@ -0,0 +1,7 @@
-- run inside postgres after loading >=10000 synthetic messages
EXPLAIN (ANALYZE, BUFFERS)
SELECT id, chat_id, sender_id, text, created_at
FROM messages
WHERE chat_id = :'chat_id'
ORDER BY created_at, id
LIMIT 50;