GroupAggregate (cost=441.37..441.41 rows=1 width=35) |
Group Key: p.client_id, ttr.taxonomy_id, tt.name |
-> Sort (cost=441.37..441.37 rows=1 width=40) |
Sort Key: p.client_id, ttr.taxonomy_id, tt.name |
-> Nested Loop Left Join (cost=62.34..441.36 rows=1 width=40) |
-> Nested Loop (cost=62.20..441.10 rows=1 width=29) |
-> Bitmap Heap Scan on tbl_projects p (cost=61.91..170.68 rows=24 width=8) |
Recheck Cond: (client_id = ANY ('{3296,3334,1661,2115,982,2117,3009,2553,2589,2520,2500,2540,2836,1956,2545,1077,1039,3364,2845,3278}'::integer[])) |
Filter: (project_status = 3) |
-> Bitmap Index Scan on tbl_projects_client_id_idx (cost=0.00..61.90 rows=44 width=0) |
Index Cond: (client_id = ANY ('{3296,3334,1661,2115,982,2117,3009,2553,2589,2520,2500,2540,2836,1956,2545,1077,1039,3364,2845,3278}'::integer[])) |
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships ttr (cost=0.29..11.26 rows=1 width=29) |
Index Cond: ((object_id = p.id) AND (term_id = 1)) |
Filter: ((taxonomy_id IS NOT NULL) AND (value IS NOT NULL) AND (object_type = 1)) |
-> Index Scan using tbl_term_taxonomies_pkey on tbl_term_taxonomies tt (cost=0.15..0.26 rows=1 width=15) |
Index Cond: (ttr.taxonomy_id = id) |