forked from mtusi2026/mtusi2026lab2
ЛР 2 — PostgreSQL, сессии и Redis
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user