Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QUERY PLAN
- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Nested Loop Left Join (cost=160.19..260.71 rows=2 width=328) (actual time=0.015..0.015 rows=0 loops=1)
- -> Nested Loop Left Join (cost=159.91..260.04 rows=2 width=332) (actual time=0.014..0.014 rows=0 loops=1)
- Join Filter: (ahr.hold_type = 'I'::text)
- -> Nested Loop (cost=159.62..251.41 rows=2 width=317) (actual time=0.014..0.014 rows=0 loops=1)
- -> GroupAggregate (cost=0.55..17.12 rows=1 width=12) (actual time=0.014..0.014 rows=0 loops=1)
- Group Key: hold_copy_map.hold
- -> Index Only Scan using copy_once_per_hold on hold_copy_map (cost=0.55..16.95 rows=32 width=12) (actual time=0.013..0.013 rows=0 loops=1)
- Index Cond: (hold = 1535337)
- Heap Fetches: 0
- -> Nested Loop Anti Join (cost=159.08..234.26 rows=2 width=309) (never executed)
- Join Filter: (((csp.org_depth IS NULL) AND (ahr.pickup_lib = ausp.org_unit)) OR ((csp.org_depth IS NOT NULL) AND (SubPlan 1)))
- -> Nested Loop Left Join (cost=158.94..233.38 rows=2 width=317) (never executed)
- -> Nested Loop (cost=158.52..228.08 rows=1 width=309) (never executed)
- -> Nested Loop (cost=158.09..223.62 rows=1 width=285) (never executed)
- -> Nested Loop (cost=157.94..223.44 rows=1 width=279) (never executed)
- -> Nested Loop (cost=157.80..223.27 rows=1 width=278) (never executed)
- -> Hash Join (cost=157.37..222.76 rows=1 width=268) (never executed)
- Hash Cond: (copy_location.id = acp.location)
- -> WindowAgg (cost=144.13..182.87 rows=1937 width=34) (never executed)
- -> Sort (cost=144.13..148.97 rows=1937 width=34) (never executed)
- Sort Key: copy_location.name
- -> Seq Scan on copy_location (cost=0.00..38.37 rows=1937 width=34) (never executed)
- -> Hash (cost=13.23..13.23 rows=1 width=260) (never executed)
- -> Nested Loop (cost=0.86..13.23 rows=1 width=260) (never executed)
- -> Index Scan using hold_request_pkey on hold_request ahr (cost=0.43..4.45 rows=1 width=244) (never executed)
- Index Cond: (id = 1535337)
- Filter: ((capture_time IS NULL) AND (cancel_time IS NULL) AND ((expire_time IS NULL) OR (expire_time > now())))
- -> Append (cost=0.43..8.76 rows=2 width=24) (never executed)
- -> Index Scan using copy_pkey on copy acp (cost=0.43..4.46 rows=1 width=24) (never executed)
- Index Cond: (id = ahr.current_copy)
- Filter: (status = ANY ('{0,7}'::integer[]))
- -> Index Scan using unit_pkey on unit acp_1 (cost=0.29..4.31 rows=1 width=24) (never executed)
- Index Cond: (id = ahr.current_copy)
- Filter: (status = ANY ('{0,7}'::integer[]))
- -> Index Scan using call_number_pkey on call_number acn (cost=0.43..0.51 rows=1 width=26) (never executed)
- Index Cond: (id = acp.call_number)
- -> Index Scan using call_number_prefix_pkey on call_number_prefix acnp (cost=0.14..0.16 rows=1 width=9) (never executed)
- Index Cond: (id = acn.prefix)
- -> Index Scan using call_number_suffix_pkey on call_number_suffix acns (cost=0.14..0.17 rows=1 width=14) (never executed)
- Index Cond: (id = acn.suffix)
- -> Index Scan using usr_pkey on usr au (cost=0.43..4.45 rows=1 width=28) (never executed)
- Index Cond: (id = ahr.usr)
- -> Index Scan using actor_usr_standing_penalty_usr_idx on usr_standing_penalty ausp (cost=0.42..5.28 rows=2 width=12) (never executed)
- Index Cond: (ahr.usr = usr)
- Filter: ((stop_date IS NULL) OR (stop_date > now()))
- -> Index Scan using standing_penalty_pkey on standing_penalty csp (cost=0.14..0.16 rows=1 width=8) (never executed)
- Index Cond: (id = ausp.standing_penalty)
- Filter: (((org_depth IS NULL) OR (org_depth IS NOT NULL)) AND (block_list ~~ '%CAPTURE%'::text))
- SubPlan 1
- -> Function Scan on org_unit_descendants (cost=0.25..0.26 rows=1 width=4) (never executed)
- -> Index Scan using issuance_pkey on issuance siss (cost=0.29..4.30 rows=1 width=19) (never executed)
- Index Cond: (id = ahr.target)
- -> Index Scan using acplo_once_per_org on copy_location_order acplo (cost=0.28..0.30 rows=1 width=12) (never executed)
- Index Cond: ((acp.location = location) AND (acp.circ_lib = org))
- Planning time: 27.338 ms
- Execution time: 7.207 ms
- (56 rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement