QUERY PLAN
HashAggregate (cost=526.10..529.71 rows=361 width=25)
Group Key: it.product_type_id, it.name
-> Hash Join (cost=361.64..523.40 rows=361 width=17)
Hash Cond: (it.implement_id = tbl_implement_records.id)
-> Seq Scan on tbl_implement_product_types it (cost=0.00..139.76 rows=8376 width=21)
-> Hash (cost=357.85..357.85 rows=303 width=4)
-> Seq Scan on tbl_implement_records (cost=0.00..357.85 rows=303 width=4)
Filter: ((NOT is_draft) AND (client_id = 149))