QUERY PLAN ----------------------------------------------------------------------------------------------------------------------------------------------------- Limit (cost=0.42..6.24 rows=50 width=66) (actual time=0.229..0.237 rows=50 loops=1) Buffers: shared hit=1 read=3 -> Index Scan using ix_messages_chat_created_id on messages (cost=0.42..9420.75 rows=80862 width=66) (actual time=0.228..0.232 rows=50 loops=1) Index Cond: (chat_id = '66666666-6666-4666-8666-666666666666'::uuid) Buffers: shared hit=1 read=3 Planning: Buffers: shared hit=108 read=1 dirtied=3 Planning Time: 1.173 ms Execution Time: 0.308 ms (9 rows)