QUERY PLAN
Sort (cost=215.55..218.78 rows=1294 width=57)
Sort Key: c.pinyin1, c.namecut1, c.pinyin2, c.namecut2, c.pinyin3, c.namecut3, c.pinyin4, c.namecut4, c.created_at DESC
-> HashAggregate (cost=135.73..148.67 rows=1294 width=57)
Group Key: c.id
-> Seq Scan on tbl_contacts c (cost=0.00..132.49 rows=1294 width=57)
Filter: (supplier_id IS NOT NULL)