| GroupAggregate (cost=1645.66..1646.10 rows=11 width=36) |
| Group Key: p.client_id, ttr.taxonomy_id, tt.name |
| -> Sort (cost=1645.66..1645.69 rows=11 width=40) |
| Sort Key: p.client_id, ttr.taxonomy_id, tt.name |
| -> Nested Loop Left Join (cost=226.60..1645.47 rows=11 width=40) |
| -> Hash Join (cost=226.45..1642.61 rows=11 width=28) |
| Hash Cond: (ttr.object_id = p.id) |
| -> Seq Scan on tbl_term_taxonomy_relationships ttr (cost=0.00..1415.49 rows=252 width=28) |
| Filter: ((taxonomy_id IS NOT NULL) AND (value IS NOT NULL) AND (term_id = 1) AND (object_type = 1)) |
| -> Hash (cost=221.99..221.99 rows=357 width=8) |
| -> Bitmap Heap Scan on tbl_projects p (cost=54.79..221.99 rows=357 width=8) |
| Recheck Cond: (client_id = ANY ('{5,149,89,2601,12,2181,1492,918,57,20,15,287,3296,2091,989,14,3281,426,90,876}'::integer[])) |
| Filter: (project_status = 3) |
| -> Bitmap Index Scan on tbl_projects_client_id_idx (cost=0.00..54.70 rows=672 width=0) |
| Index Cond: (client_id = ANY ('{5,149,89,2601,12,2181,1492,918,57,20,15,287,3296,2091,989,14,3281,426,90,876}'::integer[])) |
| -> Index Scan using tbl_term_taxonomies_pkey on tbl_term_taxonomies tt (cost=0.15..0.26 rows=1 width=16) |
| Index Cond: (ttr.taxonomy_id = id) |