| Aggregate (cost=168.21..168.22 rows=1 width=8) |
| -> Sort (cost=167.69..167.77 rows=35 width=214) |
| Sort Key: s.created_at DESC |
| -> Group (cost=166.61..166.79 rows=35 width=214) |
| Group Key: s.id |
| -> Sort (cost=166.61..166.70 rows=35 width=12) |
| Sort Key: s.id |
| -> Hash Right Join (cost=155.28..165.72 rows=35 width=12) |
| Hash Cond: (turs.task_group_id = s.id) |
| -> Seq Scan on tbl_task_group_user_relationships turs (cost=0.00..8.13 rows=513 width=4) |
| -> Hash (cost=155.19..155.19 rows=7 width=12) |
| -> Hash Right Join (cost=150.29..155.19 rows=7 width=12) |
| Hash Cond: (thrs.task_group_id = s.id) |
| -> Seq Scan on tbl_task_group_head_of_relationships thrs (cost=0.00..4.06 rows=206 width=4) |
| -> Hash (cost=150.25..150.25 rows=3 width=12) |
| -> Hash Left Join (cost=144.06..150.25 rows=3 width=12) |
| Hash Cond: (s.client_id = client.id) |
| Filter: ((lower((client.name)::text) ~~ '%视觉i%'::text) OR (client.pinyin_shortcut ~~ '%视觉i%'::text) OR (lower((s.title)::text) ~~ '%视觉i%'::text) OR ((s.situation)::text ~~* '%视觉i%'::text) OR (lower(s.description) ~~ '%视觉i%'::text)) |
| -> Seq Scan on tbl_task_groups s (cost=0.00..5.95 rows=95 width=289) |
| -> Hash (cost=119.58..119.58 rows=1958 width=59) |
| -> Seq Scan on tbl_clients client (cost=0.00..119.58 rows=1958 width=59) |
| Filter: (NOT deleted) |