Limit (cost=261.82..261.83 rows=3 width=390) |
-> Sort (cost=261.82..261.83 rows=3 width=390) |
Sort Key: r.status, r.created_at DESC |
-> Group (cost=261.79..261.80 rows=3 width=390) |
Group Key: r.id |
-> Sort (cost=261.79..261.79 rows=3 width=390) |
Sort Key: r.id |
-> Nested Loop Left Join (cost=138.94..261.76 rows=3 width=390) |
-> Hash Right Join (cost=138.65..236.80 rows=3 width=390) |
Hash Cond: (rccr.approve_id = r.id) |
Filter: ((r.created_by = 1004) OR (rccr.user_id = 1004) OR (rvr.user_id = 1004)) |
-> Seq Scan on tbl_approve_carbon_copy_rels rccr (cost=0.00..78.18 rows=5018 width=8) |
-> Hash (cost=138.37..138.37 rows=22 width=394) |
-> Hash Right Join (cost=103.36..138.37 rows=22 width=394) |
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=21 width=390) |
-> Seq Scan on tbl_approves r (cost=0.00..103.09 rows=21 width=390) |
Filter: ((status <> 0) AND (client_id = 2094)) |
-> 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)) |