| Limit (cost=181.31..181.37 rows=1 width=380) |
| -> Unique (cost=181.31..181.37 rows=1 width=380) |
| -> Sort (cost=181.31..181.32 rows=1 width=380) |
| Sort Key: s.updated_at DESC, s.id, s.name, s.abbr, s.pinyin_shortcut, s.main_products, s.company_nature, s.website, s.established_at, s.capital, s.corp_rep, s.reg_address, s.telephone, s.fax, s.description, s.main_contact, s.created_by, s.created_at, s.working_address, s.capital_currency, s.payment_cycle, s.account_number |
| -> Group (cost=181.30..181.30 rows=1 width=380) |
| Group Key: s.id |
| -> Sort (cost=181.30..181.30 rows=1 width=380) |
| Sort Key: s.id |
| -> Hash Right Join (cost=37.78..181.29 rows=1 width=380) |
| Hash Cond: (c.supplier_id = s.id) |
| Filter: ((lower((s.name)::text) ~~ '%北京惠%'::text) OR (s.pinyin_shortcut ~~ '%北京惠%'::text) OR (lower(s.description) ~~ '%北京惠%'::text) OR (lower((s.main_products)::text) ~~ '%北京惠%'::text) OR (lower((c.name)::text) ~~ '%北京惠%'::text)) |
| -> Seq Scan on tbl_contacts c (cost=0.00..139.88 rows=1368 width=13) |
| Filter: (supplier_id IS NOT NULL) |
| -> Hash (cost=29.57..29.57 rows=657 width=380) |
| -> Seq Scan on tbl_suppliers s (cost=0.00..29.57 rows=657 width=380) |