Aggregate (cost=260.49..260.50 rows=1 width=8) |
-> Sort (cost=260.44..260.45 rows=3 width=261) |
Sort Key: r.status, r.created_at DESC |
-> Group (cost=260.40..260.42 rows=3 width=261) |
Group Key: r.id |
-> Sort (cost=260.40..260.41 rows=3 width=14) |
Sort Key: r.id |
-> Nested Loop Left Join (cost=138.50..260.38 rows=3 width=14) |
-> Hash Right Join (cost=138.21..235.42 rows=3 width=14) |
Hash Cond: (rccr.approve_id = r.id) |
Filter: ((r.created_by = 5295) OR (rccr.user_id = 5295) OR (rvr.user_id = 5295)) |
-> Seq Scan on tbl_approve_carbon_copy_rels rccr (cost=0.00..78.18 rows=5018 width=8) |
-> Hash (cost=138.16..138.16 rows=4 width=22) |
-> Hash Right Join (cost=103.14..138.16 rows=4 width=22) |
Hash Cond: (rvr.approve_id = r.id) |
-> Seq Scan on tbl_approve_verify_rels rvr (cost=0.00..30.43 rows=1743 width=8) |
-> Hash (cost=103.09..103.09 rows=4 width=22) |
-> Seq Scan on tbl_approves r (cost=0.00..103.09 rows=4 width=22) |
Filter: ((status <> 0) AND (client_id = 3332)) |
-> Index Only Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..8.31 rows=1 width=4) |
Index Cond: ((object_id = r.id) AND (term_id = 17)) |