Aggregate (cost=1662.97..1662.98 rows=1 width=32) |
-> Group (cost=1599.88..1624.41 rows=1402 width=437) |
Group Key: (CASE WHEN ((rvr.status = 0) AND (r.next_verify_user = 1001)) THEN 1 WHEN ((rcvr.status = 0) AND (r.next_cancel_verify_user = 1001)) THEN 2 ELSE 0 END), r.id |
-> Sort (cost=1599.88..1603.38 rows=1402 width=10) |
Sort Key: (CASE WHEN ((rvr.status = 0) AND (r.next_verify_user = 1001)) THEN 1 WHEN ((rcvr.status = 0) AND (r.next_cancel_verify_user = 1001)) THEN 2 ELSE 0 END) DESC, r.id |
-> Hash Right Join (cost=271.42..1526.60 rows=1402 width=10) |
Hash Cond: (dt1.object_id = r.id) |
-> Seq Scan on tbl_term_taxonomy_relationships dt1 (cost=0.00..1229.41 rows=2118 width=4) |
Filter: (term_id = 17) |
-> Hash (cost=253.89..253.89 rows=1402 width=22) |
-> Hash Right Join (cost=224.25..253.89 rows=1402 width=22) |
Hash Cond: (rcvr.approve_id = r.id) |
-> Seq Scan on tbl_approve_cancel_verify_rels rcvr (cost=0.00..19.70 rows=970 width=8) |
-> Hash (cost=206.73..206.73 rows=1402 width=18) |
-> Hash Join (cost=155.91..206.73 rows=1402 width=18) |
Hash Cond: (rvr.approve_id = r.id) |
-> Seq Scan on tbl_approve_verify_rels rvr (cost=0.00..47.11 rows=1407 width=8) |
Filter: (user_id = 1001) |
-> Hash (cost=129.00..129.00 rows=2153 width=22) |
-> Seq Scan on tbl_approves r (cost=0.00..129.00 rows=2153 width=22) |
Filter: (status <> 0) |