QUERY PLAN
Limit (cost=300.13..300.18 rows=20 width=154)
-> Sort (cost=300.13..300.64 rows=206 width=154)
Sort Key: c.created_at DESC
-> Hash Left Join (cost=144.06..294.65 rows=206 width=154)
Hash Cond: (c.client_id = client.id)
-> Seq Scan on tbl_contacts c (cost=0.00..150.05 rows=206 width=150)
Filter: ((client_id IS NOT NULL) AND (created_by = 1005))
-> Hash (cost=119.58..119.58 rows=1958 width=8)
-> Seq Scan on tbl_clients client (cost=0.00..119.58 rows=1958 width=8)