# Стоимость записи: 5000 INSERT в один чат
# date: 2026-10-02T16:45:29Z
# chat_id: 349f1aef-3bbc-42d1-8724-e8d22b8c2253

## A. Baseline (chat_id, created_at, id)
## INSERT 5000 rows
Timing is on.
DO
Time: 353.267 ms
          indexname           |  size   
------------------------------+---------
 messages_chat_created_id_idx | 6768 kB
 messages_pkey                | 4736 kB
(2 rows)



## B. Covering (chat_id, created_at, id) INCLUDE (sender_id)
## INSERT 5000 rows
Timing is on.
DO
Time: 288.259 ms
        indexname        |  size   
-------------------------+---------
 messages_covering_small | 8848 kB
 messages_pkey           | 4944 kB
(2 rows)



## Восстанавливаем baseline
