synthetic_chat_id=493ca34c-b101-414a-a747-56017577daf0 message_count=10000 Limit (cost=0.29..10.73 rows=101 width=69) (actual time=0.015..0.042 rows=101 loops=1) Buffers: shared hit=11 -> Index Scan using messages_history_idx on messages (cost=0.29..1034.81 rows=10000 width=69) (actual time=0.014..0.034 rows=101 loops=1) Index Cond: (chat_id = '493ca34c-b101-414a-a747-56017577daf0'::uuid) Buffers: shared hit=11 Planning: Buffers: shared hit=109 Planning Time: 0.406 ms Execution Time: 0.074 ms