Created
November 22, 2022 16:14
-
-
Save stompro/0a716f912c1f27d1de8bec684552bfb5 to your computer and use it in GitHub Desktop.
Evergreen Wide-Hold SQL Queries performance problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QUERY PLAN | |
Sort (cost=15787476.75..15787476.77 rows=8 width=1810) (actual time=2236.183..2236.220 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, ((SubPlan 4)), h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, (CASE WHEN (h.cancel_time IS NOT NULL) THEN 6 WHEN (h.frozen AND (h.capture_time IS NULL)) THEN 7 WHEN ((h.current_shelf_lib IS NOT NULL) AND (h.current_shelf_lib <> h.pickup_lib)) THEN 8 WHEN (h.fulfillment_time IS NOT NULL) THEN 9 WHEN (h.current_copy IS NULL) THEN 1 WHEN (h.capture_time IS NULL) THEN 2 WHEN (cp.status = 6) THEN 3 WHEN (date_part('epoch'::text, (COALESCE(NULLIF(btrim(hold_wait_time.value, '"'::text), ''::text), '0 seconds'::text))::interval) = '0'::double precision) THEN 4 WHEN ((h.shelf_time + (COALESCE(NULLIF(btrim(hold_wait_time.value, '"'::text), ''::text), '0 seconds'::text))::interval) > now()) THEN 5 ELSE 4 END), (((h.shelf_expire_time < '2022-11-22 00:00:00-06'::timestamp with time zone) OR (h.cancel_time IS NOT NULL) OR ((h.current_shelf_lib IS NOT NULL) AND (h.current_shelf_lib <> h.pickup_lib)))), ((h.usr <> h.requestor)), cc.id, cc.label, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, (CASE WHEN (u.alias IS NOT NULL) THEN u.alias ELSE u.first_given_name END), (CASE WHEN (u.alias IS NOT NULL) THEN u.alias ELSE regexp_replace(array_to_string(ARRAY[COALESCE(u.family_name, ''::text), COALESCE(u.suffix, ''::text), ', '::text, COALESCE(u.prefix, ''::text), COALESCE(u.first_given_name, ''::text), COALESCE(u.second_given_name, ''::text)], ' '::text), 's+,'::text, ','::text) END), (regexp_replace(array_to_string(ARRAY[COALESCE(u.family_name, ''::text), COALESCE(u.suffix, ''::text), ', '::text, COALESCE(u.prefix, ''::text), COALESCE(u.first_given_name, ''::text), COALESCE(u.second_given_name, ''::text)], ' '::text), 's+,'::text, ','::text)), uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.status, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, siss.label, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, p.id, p.record, p.label, p.label_sortkey, p.deleted, acnp.label, acns.label, (btrim(((((acnp.label || ' '::text) || cn.label) || ' '::text) || acns.label))), r.bib_record, (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, (COALESCE((acplo."position")::bigint, acpl_ordered.fallback_position)), (row_number() OVER (?)), (date_part('epoch'::text, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)), (date_part('epoch'::text, (COALESCE(NULLIF(btrim(min_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)), (COALESCE((count(*)), '0'::bigint)), (COALESCE((count(DISTINCT m.hold)), '0'::bigint)), (COALESCE((sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)))), '0'::double precision)), (count(*)), (max(hold_notification.notify_time)) | |
Sort Key: h.shelf_expire_time | |
Sort Method: quicksort Memory: 964kB | |
Buffers: shared hit=1291003 | |
CTE t_field | |
-> Seq Scan on config.display_field_map (cost=0.00..1.32 rows=1 width=4) (actual time=0.001..0.004 rows=1 loops=1) | |
Output: display_field_map.field | |
Filter: (display_field_map.name = 'title'::text) | |
Rows Removed by Filter: 25 | |
Buffers: shared hit=1 | |
CTE a_field | |
-> Seq Scan on config.display_field_map display_field_map_1 (cost=0.00..1.32 rows=1 width=4) (actual time=0.005..0.006 rows=1 loops=1) | |
Output: display_field_map_1.field | |
Filter: (display_field_map_1.name = 'author'::text) | |
Rows Removed by Filter: 25 | |
Buffers: shared hit=1 | |
CTE s_field | |
-> Seq Scan on config.display_field_map display_field_map_2 (cost=0.00..1.32 rows=1 width=4) (actual time=0.001..0.004 rows=1 loops=1) | |
Output: display_field_map_2.field | |
Filter: (display_field_map_2.name = 'series_title'::text) | |
Rows Removed by Filter: 25 | |
Buffers: shared hit=1 | |
-> WindowAgg (cost=15787456.21..15787472.65 rows=8 width=1810) (actual time=2228.178..2234.768 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, (SubPlan 4), h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, CASE WHEN (h.cancel_time IS NOT NULL) THEN 6 WHEN (h.frozen AND (h.capture_time IS NULL)) THEN 7 WHEN ((h.current_shelf_lib IS NOT NULL) AND (h.current_shelf_lib <> h.pickup_lib)) THEN 8 WHEN (h.fulfillment_time IS NOT NULL) THEN 9 WHEN (h.current_copy IS NULL) THEN 1 WHEN (h.capture_time IS NULL) THEN 2 WHEN (cp.status = 6) THEN 3 WHEN (date_part('epoch'::text, (COALESCE(NULLIF(btrim(hold_wait_time.value, '"'::text), ''::text), '0 seconds'::text))::interval) = '0'::double precision) THEN 4 WHEN ((h.shelf_time + (COALESCE(NULLIF(btrim(hold_wait_time.value, '"'::text), ''::text), '0 seconds'::text))::interval) > now()) THEN 5 ELSE 4 END, ((h.shelf_expire_time < '2022-11-22 00:00:00-06'::timestamp with time zone) OR (h.cancel_time IS NOT NULL) OR ((h.current_shelf_lib IS NOT NULL) AND (h.current_shelf_lib <> h.pickup_lib))), (h.usr <> h.requestor), cc.id, cc.label, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, CASE WHEN (u.alias IS NOT NULL) THEN u.alias ELSE u.first_given_name END, CASE WHEN (u.alias IS NOT NULL) THEN u.alias ELSE regexp_replace(array_to_string(ARRAY[COALESCE(u.family_name, ''::text), COALESCE(u.suffix, ''::text), ', '::text, COALESCE(u.prefix, ''::text), COALESCE(u.first_given_name, ''::text), COALESCE(u.second_given_name, ''::text)], ' '::text), 's+,'::text, ','::text) END, regexp_replace(array_to_string(ARRAY[COALESCE(u.family_name, ''::text), COALESCE(u.suffix, ''::text), ', '::text, COALESCE(u.prefix, ''::text), COALESCE(u.first_given_name, ''::text), COALESCE(u.second_given_name, ''::text)], ' '::text), 's+,'::text, ','::text), uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.status, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, siss.label, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, p.id, p.record, p.label, p.label_sortkey, p.deleted, acnp.label, acns.label, btrim(((((acnp.label || ' '::text) || cn.label) || ' '::text) || acns.label)), r.bib_record, (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, COALESCE((acplo."position")::bigint, acpl_ordered.fallback_position), row_number() OVER (?), date_part('epoch'::text, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval), date_part('epoch'::text, (COALESCE(NULLIF(btrim(min_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval), COALESCE((count(*)), '0'::bigint), COALESCE((count(DISTINCT m.hold)), '0'::bigint), COALESCE((sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)))), '0'::double precision), (count(*)), (max(hold_notification.notify_time)) | |
Buffers: shared hit=1291003 | |
-> Sort (cost=15787456.21..15787456.23 rows=8 width=1724) (actual time=2228.136..2228.219 rows=466 loops=1) | |
Output: h.request_time, h.cut_in_line, r.bib_record, h.id, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, cp.status, hold_wait_time.value, cc.id, cc.label, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, siss.label, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, p.id, p.record, p.label, p.label_sortkey, p.deleted, acnp.label, acns.label, (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, default_estimated_wait_interval.value, min_estimated_wait_interval.value, (count(*)), (count(DISTINCT m.hold)), (sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)))), (count(*)), (max(hold_notification.notify_time)) | |
Sort Key: r.bib_record, h.cut_in_line DESC NULLS LAST, h.request_time | |
Sort Method: quicksort Memory: 963kB | |
Buffers: shared hit=1290537 | |
-> Nested Loop (cost=1259.18..15787456.09 rows=8 width=1724) (actual time=5.783..2226.617 rows=466 loops=1) | |
Output: h.request_time, h.cut_in_line, r.bib_record, h.id, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, cp.status, hold_wait_time.value, cc.id, cc.label, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, siss.label, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, p.id, p.record, p.label, p.label_sortkey, p.deleted, acnp.label, acns.label, (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, default_estimated_wait_interval.value, min_estimated_wait_interval.value, (count(*)), (count(DISTINCT m.hold)), (sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)))), (count(*)), (max(hold_notification.notify_time)) | |
Buffers: shared hit=1290537 | |
-> Nested Loop Left Join (cost=1199.63..15786979.44 rows=8 width=1700) (actual time=5.694..2211.241 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), default_estimated_wait_interval.value, min_estimated_wait_interval.value, hold_wait_time.value | |
Buffers: shared hit=1275672 | |
-> Nested Loop Left Join (cost=1199.38..15786979.03 rows=8 width=1668) (actual time=5.657..2195.435 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), default_estimated_wait_interval.value, min_estimated_wait_interval.value | |
Buffers: shared hit=1271478 | |
-> Nested Loop Left Join (cost=1199.13..15786978.62 rows=8 width=1636) (actual time=5.618..2178.009 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), default_estimated_wait_interval.value | |
Buffers: shared hit=1267284 | |
-> Nested Loop Left Join (cost=1198.88..15786978.21 rows=8 width=1604) (actual time=5.535..2157.017 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)) | |
Buffers: shared hit=1263090 | |
-> Nested Loop Left Join (cost=945.93..15784954.35 rows=8 width=1576) (actual time=5.518..2152.464 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)) | |
Buffers: shared hit=1260747 | |
-> Nested Loop Left Join (cost=692.98..15782930.50 rows=8 width=1548) (actual time=5.498..2147.342 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)) | |
Buffers: shared hit=1258404 | |
-> Nested Loop Left Join (cost=440.02..15780906.65 rows=8 width=1520) (actual time=5.445..2139.240 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)) | |
Buffers: shared hit=1256061 | |
-> Nested Loop Left Join (cost=431.58..15780838.85 rows=8 width=1504) (actual time=5.436..2136.841 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)) | |
Buffers: shared hit=1254467 | |
-> Nested Loop Left Join (cost=430.55..15780830.39 rows=8 width=1496) (actual time=5.430..2134.991 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time | |
Buffers: shared hit=1254001 | |
-> Hash Left Join (cost=422.10..15780762.57 rows=8 width=1435) (actual time=5.419..2131.300 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label | |
Inner Unique: true | |
Hash Cond: (cn.suffix = acns.id) | |
Buffers: shared hit=1252286 | |
-> Nested Loop Left Join (cost=421.05..15780761.46 rows=8 width=1428) (actual time=5.410..2130.474 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label | |
Inner Unique: true | |
Buffers: shared hit=1252285 | |
-> Nested Loop Left Join (cost=420.91..15780760.18 rows=8 width=1418) (actual time=5.406..2129.083 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey | |
Join Filter: (acpl_ordered.id = cp.location) | |
Rows Removed by Join Filter: 46134 | |
Buffers: shared hit=1251353 | |
-> Nested Loop Left Join (cost=415.59..15780739.61 rows=8 width=1410) (actual time=5.339..2122.463 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey | |
Inner Unique: true | |
Buffers: shared hit=1251352 | |
-> Nested Loop Left Join (cost=415.44..15780738.21 rows=8 width=1406) (actual time=5.333..2120.953 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey | |
Inner Unique: true | |
Buffers: shared hit=1250718 | |
-> Nested Loop Left Join (cost=415.30..15780736.85 rows=8 width=1384) (actual time=5.329..2119.466 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey | |
Buffers: shared hit=1249786 | |
-> Nested Loop (cost=4.12..15777383.57 rows=8 width=1301) (actual time=5.315..2114.737 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field | |
Buffers: shared hit=1246523 | |
-> Nested Loop (cost=0.00..0.05 rows=1 width=8) (actual time=0.009..0.015 rows=1 loops=1) | |
Output: a_field.field, s_field.field | |
Buffers: shared hit=2 | |
-> CTE Scan on a_field (cost=0.00..0.02 rows=1 width=4) (actual time=0.007..0.008 rows=1 loops=1) | |
Output: a_field.field | |
Buffers: shared hit=1 | |
-> CTE Scan on s_field (cost=0.00..0.02 rows=1 width=4) (actual time=0.002..0.005 rows=1 loops=1) | |
Output: s_field.field | |
Buffers: shared hit=1 | |
-> Nested Loop (cost=4.12..15777383.44 rows=8 width=1293) (actual time=5.304..2114.135 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available | |
Buffers: shared hit=1246521 | |
-> Seq Scan on config.copy_status cs (cost=0.00..1.26 rows=1 width=20) (actual time=0.002..0.004 rows=1 loops=1) | |
Output: cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, cs.hopeless_prone | |
Filter: (cs.id = 8) | |
Rows Removed by Filter: 20 | |
Buffers: shared hit=1 | |
-> Nested Loop Left Join (cost=4.12..15777382.10 rows=8 width=1273) (actual time=5.300..2113.531 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Inner Unique: true | |
Join Filter: ((h.hold_type = 'I'::text) AND (siss.id = h.target)) | |
Buffers: shared hit=1246520 | |
-> Nested Loop Left Join (cost=4.12..15777300.43 rows=8 width=1241) (actual time=5.297..2112.856 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Inner Unique: true | |
Join Filter: ((h.hold_type = 'P'::text) AND (p.id = h.target)) | |
Rows Removed by Join Filter: 8596302 | |
Buffers: shared hit=1246520 | |
-> Nested Loop Left Join (cost=4.12..15774270.26 rows=8 width=1183) (actual time=0.920..1071.413 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Inner Unique: true | |
Join Filter: (h.cancel_cause = cc.id) | |
Rows Removed by Join Filter: 3676 | |
Buffers: shared hit=1246303 | |
-> Nested Loop (cost=4.12..15774268.20 rows=8 width=1161) (actual time=0.915..1070.289 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Buffers: shared hit=1246302 | |
-> Nested Loop (cost=2.41..221713.63 rows=17811 width=975) (actual time=0.044..956.703 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field | |
Buffers: shared hit=1108597 | |
-> Nested Loop (cost=2.41..221357.40 rows=17811 width=971) (actual time=0.041..933.180 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar | |
Inner Unique: true | |
Buffers: shared hit=1108596 | |
-> Nested Loop (cost=2.27..218547.80 rows=17811 width=876) (actual time=0.038..895.236 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active | |
Inner Unique: true | |
Buffers: shared hit=1070134 | |
-> Nested Loop (cost=1.84..160572.22 rows=17811 width=868) (actual time=0.031..814.532 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active | |
Inner Unique: true | |
Buffers: shared hit=993151 | |
-> Nested Loop (cost=1.43..151935.49 rows=18064 width=845) (actual time=0.028..766.428 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time | |
Inner Unique: true | |
Buffers: shared hit=916189 | |
-> Nested Loop (cost=1.14..129770.41 rows=18064 width=578) (actual time=0.023..713.324 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active | |
Inner Unique: true | |
Buffers: shared hit=858471 | |
-> Nested Loop (cost=0.72..121011.29 rows=18320 width=555) (actual time=0.017..655.115 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time | |
Inner Unique: true | |
Buffers: shared hit=781432 | |
-> Index Scan using hold_request_target_idx on action.hold_request h (cost=0.42..98532.09 rows=18320 width=288) (actual time=0.010..588.888 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.acq_request, h.hopeless_date | |
Filter: ((h.fulfillment_time IS NULL) AND (h.capture_time IS NOT NULL) AND (h.current_shelf_lib = 102)) | |
Rows Removed by Filter: 718564 | |
Buffers: shared hit=723711 | |
-> Index Scan using usr_pkey on actor.usr u (cost=0.29..1.23 rows=1 width=267) (actual time=0.003..0.003 rows=1 loops=19231) | |
Output: u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time | |
Index Cond: (u.id = h.usr) | |
Buffers: shared hit=57721 | |
-> Index Scan using card_pkey on actor.card uc (cost=0.42..0.48 rows=1 width=23) (actual time=0.002..0.002 rows=1 loops=19231) | |
Output: uc.id, uc.usr, uc.barcode, uc.active | |
Index Cond: (uc.id = u.card) | |
Buffers: shared hit=77039 | |
-> Index Scan using usr_pkey on actor.usr ru (cost=0.29..1.23 rows=1 width=267) (actual time=0.002..0.002 rows=1 loops=19231) | |
Output: ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time | |
Index Cond: (ru.id = h.requestor) | |
Buffers: shared hit=57718 | |
-> Index Scan using card_pkey on actor.card ruc (cost=0.42..0.48 rows=1 width=23) (actual time=0.001..0.001 rows=1 loops=19231) | |
Output: ruc.id, ruc.usr, ruc.barcode, ruc.active | |
Index Cond: (ruc.id = ru.card) | |
Buffers: shared hit=76962 | |
-> Index Scan using reporter_hold_request_record_pkey_idx on reporter.hold_request_record r (cost=0.43..3.26 rows=1 width=12) (actual time=0.003..0.003 rows=1 loops=19231) | |
Output: r.id, r.target, r.hold_type, r.bib_record | |
Index Cond: (r.id = h.id) | |
Buffers: shared hit=76983 | |
-> Index Scan using org_unit_pkey on actor.org_unit pl (cost=0.14..0.16 rows=1 width=95) (actual time=0.001..0.001 rows=1 loops=19231) | |
Output: pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar | |
Index Cond: (pl.id = h.pickup_lib) | |
Buffers: shared hit=38462 | |
-> CTE Scan on t_field (cost=0.00..0.02 rows=1 width=4) (actual time=0.000..0.000 rows=1 loops=19231) | |
Output: t_field.field | |
Buffers: shared hit=1 | |
-> Append (cost=1.70..873.18 rows=2 width=186) (actual time=0.006..0.006 rows=0 loops=19231) | |
Buffers: shared hit=137705 | |
-> Bitmap Heap Scan on asset.copy cp (cost=1.70..20.18 rows=1 width=186) (actual time=0.004..0.004 rows=0 loops=19231) | |
Output: cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Recheck Cond: ((h.current_copy = cp.id) OR (cp.id = h.target)) | |
Filter: ((NOT cp.deleted) AND (cp.status = 8) AND ((h.current_copy = cp.id) OR ((h.hold_type = ANY ('{C,F,R}'::text[])) AND (cp.id = h.target))) AND ((h.capture_time IS NULL) OR (h.id = (SubPlan 5)))) | |
Rows Removed by Filter: 1 | |
Heap Blocks: exact=19231 | |
Buffers: shared hit=137705 | |
-> BitmapOr (cost=1.70..1.70 rows=2 width=0) (actual time=0.003..0.003 rows=0 loops=19231) | |
Buffers: shared hit=115490 | |
-> Bitmap Index Scan on copy_pkey (cost=0.00..0.85 rows=1 width=0) (actual time=0.002..0.002 rows=1 loops=19231) | |
Index Cond: (h.current_copy = cp.id) | |
Buffers: shared hit=57788 | |
-> Bitmap Index Scan on copy_pkey (cost=0.00..0.85 rows=1 width=0) (actual time=0.001..0.001 rows=0 loops=19231) | |
Index Cond: (cp.id = h.target) | |
Buffers: shared hit=57702 | |
SubPlan 5 | |
-> Limit (cost=0.42..5.24 rows=1 width=12) (actual time=0.004..0.004 rows=1 loops=746) | |
Output: recheck.id, recheck.capture_time | |
Buffers: shared hit=2984 | |
-> Index Scan Backward using hold_request_copy_capture_time_idx on action.hold_request recheck (cost=0.42..24.52 rows=5 width=12) (actual time=0.003..0.003 rows=1 loops=746) | |
Output: recheck.id, recheck.capture_time | |
Index Cond: ((recheck.current_copy = cp.id) AND (recheck.capture_time IS NOT NULL)) | |
Buffers: shared hit=2984 | |
-> Seq Scan on serial.unit cp_1 (cost=0.00..853.00 rows=1 width=369) (actual time=0.000..0.000 rows=0 loops=19231) | |
Output: cp_1.status, cp_1.id, cp_1.circ_lib, cp_1.creator, cp_1.call_number, cp_1.editor, cp_1.create_date, cp_1.edit_date, cp_1.copy_number, cp_1.location, cp_1.loan_duration, cp_1.fine_level, cp_1.age_protect, cp_1.circulate, cp_1.deposit, cp_1.ref, cp_1.holdable, cp_1.deposit_amount, cp_1.price, cp_1.barcode, cp_1.circ_modifier, cp_1.circ_as_type, cp_1.dummy_title, cp_1.dummy_author, cp_1.alert_message, cp_1.opac_visible, cp_1.deleted, cp_1.floating, cp_1.dummy_isbn, cp_1.status_changed_time, cp_1.active_date, cp_1.mint_condition, cp_1.cost | |
Filter: ((NOT cp_1.deleted) AND (cp_1.status = 8) AND ((h.current_copy = cp_1.id) OR ((h.hold_type = ANY ('{C,F,R}'::text[])) AND (cp_1.id = h.target))) AND ((h.capture_time IS NULL) OR (h.id = (SubPlan 5)))) | |
-> Materialize (cost=0.00..1.12 rows=8 width=22) (actual time=0.000..0.000 rows=8 loops=466) | |
Output: cc.id, cc.label | |
Buffers: shared hit=1 | |
-> Seq Scan on action.hold_request_cancel_cause cc (cost=0.00..1.08 rows=8 width=22) (actual time=0.001..0.002 rows=8 loops=1) | |
Output: cc.id, cc.label | |
Buffers: shared hit=1 | |
-> Materialize (cost=0.00..493.71 rows=18447 width=58) (actual time=0.000..0.697 rows=18447 loops=466) | |
Output: p.id, p.record, p.label, p.label_sortkey, p.deleted | |
Buffers: shared hit=217 | |
-> Seq Scan on biblio.monograph_part p (cost=0.00..401.47 rows=18447 width=58) (actual time=0.002..1.079 rows=18447 loops=1) | |
Output: p.id, p.record, p.label, p.label_sortkey, p.deleted | |
Buffers: shared hit=217 | |
-> Materialize (cost=0.00..17.05 rows=470 width=36) (actual time=0.000..0.000 rows=0 loops=466) | |
Output: siss.label, siss.id | |
-> Seq Scan on serial.issuance siss (cost=0.00..14.70 rows=470 width=36) (actual time=0.001..0.001 rows=0 loops=1) | |
Output: siss.label, siss.id | |
-> Bitmap Heap Scan on asset.call_number cn (cost=411.19..419.15 rows=1 width=83) (actual time=0.007..0.007 rows=1 loops=466) | |
Output: cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey | |
Recheck Cond: ((cn.id = cp.call_number) OR (cn.id = h.target)) | |
Filter: (((cn.id = cp.call_number) AND (h.hold_type <> 'V'::text)) OR ((h.hold_type = 'V'::text) AND (cn.id = h.target))) | |
Heap Blocks: exact=466 | |
Buffers: shared hit=3263 | |
-> BitmapOr (cost=411.19..411.19 rows=2 width=0) (actual time=0.005..0.005 rows=0 loops=466) | |
Buffers: shared hit=2797 | |
-> Bitmap Index Scan on call_number_pkey (cost=0.00..3.59 rows=1 width=0) (actual time=0.004..0.004 rows=1 loops=466) | |
Index Cond: (cn.id = cp.call_number) | |
Buffers: shared hit=1399 | |
-> Bitmap Index Scan on call_number_pkey (cost=0.00..0.92 rows=1 width=0) (actual time=0.001..0.001 rows=0 loops=466) | |
Index Cond: (cn.id = h.target) | |
Buffers: shared hit=1398 | |
-> Index Scan using copy_location_pkey on asset.copy_location acpl (cost=0.14..0.17 rows=1 width=22) (actual time=0.001..0.001 rows=1 loops=466) | |
Output: acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url | |
Index Cond: (cp.location = acpl.id) | |
Buffers: shared hit=932 | |
-> Index Scan using acplo_once_per_org on asset.copy_location_order acplo (cost=0.14..0.18 rows=1 width=12) (actual time=0.001..0.001 rows=0 loops=466) | |
Output: acplo.id, acplo.location, acplo.org, acplo."position" | |
Index Cond: ((cp.location = acplo.location) AND (cp.circ_lib = acplo.org)) | |
Buffers: shared hit=634 | |
-> Materialize (cost=5.32..8.82 rows=100 width=12) (actual time=0.000..0.004 rows=100 loops=466) | |
Output: acpl_ordered.fallback_position, acpl_ordered.id | |
Buffers: shared hit=1 | |
-> Subquery Scan on acpl_ordered (cost=5.32..8.32 rows=100 width=12) (actual time=0.044..0.096 rows=100 loops=1) | |
Output: acpl_ordered.fallback_position, acpl_ordered.id | |
Buffers: shared hit=1 | |
-> WindowAgg (cost=5.32..7.32 rows=100 width=123) (actual time=0.044..0.086 rows=100 loops=1) | |
Output: copy_location.id, copy_location.name, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::text, NULL::text, NULL::boolean, NULL::boolean, NULL::text, (row_number() OVER (?) + 1000000) | |
Buffers: shared hit=1 | |
-> Sort (cost=5.32..5.57 rows=100 width=9) (actual time=0.041..0.047 rows=100 loops=1) | |
Output: copy_location.name, copy_location.id | |
Sort Key: copy_location.name | |
Sort Method: quicksort Memory: 29kB | |
Buffers: shared hit=1 | |
-> Seq Scan on asset.copy_location (cost=0.00..2.00 rows=100 width=9) (actual time=0.002..0.011 rows=100 loops=1) | |
Output: copy_location.name, copy_location.id | |
Buffers: shared hit=1 | |
-> Index Scan using call_number_prefix_pkey on asset.call_number_prefix acnp (cost=0.14..0.16 rows=1 width=14) (actual time=0.001..0.001 rows=1 loops=466) | |
Output: acnp.id, acnp.owning_lib, acnp.label, acnp.label_sortkey | |
Index Cond: (cn.prefix = acnp.id) | |
Buffers: shared hit=932 | |
-> Hash (cost=1.02..1.02 rows=2 width=11) (actual time=0.003..0.003 rows=2 loops=1) | |
Output: acns.label, acns.id | |
Buckets: 1024 Batches: 1 Memory Usage: 9kB | |
Buffers: shared hit=1 | |
-> Seq Scan on asset.call_number_suffix acns (cost=0.00..1.02 rows=2 width=11) (actual time=0.001..0.002 rows=2 loops=1) | |
Output: acns.label, acns.id | |
Buffers: shared hit=1 | |
-> Limit (cost=8.45..8.46 rows=1 width=61) (actual time=0.006..0.006 rows=1 loops=466) | |
Output: hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.cancel_time, hold_transit_copy.hold | |
Buffers: shared hit=1715 | |
-> Sort (cost=8.45..8.46 rows=1 width=61) (actual time=0.005..0.005 rows=1 loops=466) | |
Output: hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.cancel_time, hold_transit_copy.hold | |
Sort Key: hold_transit_copy.id DESC | |
Sort Method: quicksort Memory: 25kB | |
Buffers: shared hit=1715 | |
-> Index Scan using hold_transit_copy_hold_idx on action.hold_transit_copy (cost=0.42..8.44 rows=1 width=61) (actual time=0.003..0.003 rows=1 loops=466) | |
Output: hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.cancel_time, hold_transit_copy.hold | |
Index Cond: (h.id = hold_transit_copy.hold) | |
Buffers: shared hit=1715 | |
-> Aggregate (cost=1.03..1.04 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=466) | |
Output: count(*) | |
Buffers: shared hit=466 | |
-> Seq Scan on action.hold_request_note (cost=0.00..1.02 rows=1 width=0) (actual time=0.001..0.001 rows=0 loops=466) | |
Output: hold_request_note.id, hold_request_note.hold, hold_request_note.title, hold_request_note.body, hold_request_note.slip, hold_request_note.pub, hold_request_note.staff | |
Filter: ((hold_request_note.pub OR hold_request_note.staff) AND (h.id = hold_request_note.hold)) | |
Rows Removed by Filter: 2 | |
Buffers: shared hit=466 | |
-> Aggregate (cost=8.45..8.46 rows=1 width=16) (actual time=0.003..0.003 rows=1 loops=466) | |
Output: count(*), max(hold_notification.notify_time) | |
Buffers: shared hit=1594 | |
-> Index Scan using ahn_hold_idx on action.hold_notification (cost=0.42..8.44 rows=1 width=8) (actual time=0.003..0.003 rows=0 loops=466) | |
Output: hold_notification.id, hold_notification.hold, hold_notification.notify_staff, hold_notification.notify_time, hold_notification.method, hold_notification.note | |
Index Cond: (h.id = hold_notification.hold) | |
Buffers: shared hit=1594 | |
-> Aggregate (cost=252.95..252.96 rows=1 width=32) (actual time=0.015..0.015 rows=1 loops=466) | |
Output: first(display_entry.value) | |
Buffers: shared hit=2343 | |
-> Bitmap Heap Scan on metabib.display_entry (cost=4.91..252.45 rows=2 width=32) (actual time=0.009..0.010 rows=1 loops=466) | |
Output: display_entry.id, display_entry.source, display_entry.field, display_entry.value | |
Recheck Cond: (display_entry.source = r.bib_record) | |
Filter: (display_entry.field = t_field.field) | |
Rows Removed by Filter: 30 | |
Heap Blocks: exact=904 | |
Buffers: shared hit=2343 | |
-> Bitmap Index Scan on metabib_display_entry_source_idx (cost=0.00..4.91 rows=63 width=0) (actual time=0.004..0.004 rows=31 loops=466) | |
Index Cond: (display_entry.source = r.bib_record) | |
Buffers: shared hit=1439 | |
-> Aggregate (cost=252.95..252.96 rows=1 width=32) (actual time=0.009..0.009 rows=1 loops=466) | |
Output: first(display_entry_1.value) | |
Buffers: shared hit=2343 | |
-> Bitmap Heap Scan on metabib.display_entry display_entry_1 (cost=4.91..252.45 rows=2 width=32) (actual time=0.005..0.006 rows=1 loops=466) | |
Output: display_entry_1.id, display_entry_1.source, display_entry_1.field, display_entry_1.value | |
Recheck Cond: (display_entry_1.source = r.bib_record) | |
Filter: (display_entry_1.field = a_field.field) | |
Rows Removed by Filter: 30 | |
Heap Blocks: exact=904 | |
Buffers: shared hit=2343 | |
-> Bitmap Index Scan on metabib_display_entry_source_idx (cost=0.00..4.91 rows=63 width=0) (actual time=0.002..0.002 rows=31 loops=466) | |
Index Cond: (display_entry_1.source = r.bib_record) | |
Buffers: shared hit=1439 | |
-> Aggregate (cost=252.95..252.96 rows=1 width=32) (actual time=0.008..0.008 rows=1 loops=466) | |
Output: first(display_entry_2.value) | |
Buffers: shared hit=2343 | |
-> Bitmap Heap Scan on metabib.display_entry display_entry_2 (cost=4.91..252.45 rows=2 width=32) (actual time=0.006..0.006 rows=0 loops=466) | |
Output: display_entry_2.id, display_entry_2.source, display_entry_2.field, display_entry_2.value | |
Recheck Cond: (display_entry_2.source = r.bib_record) | |
Filter: (display_entry_2.field = s_field.field) | |
Rows Removed by Filter: 31 | |
Heap Blocks: exact=904 | |
Buffers: shared hit=2343 | |
-> Bitmap Index Scan on metabib_display_entry_source_idx (cost=0.00..4.91 rows=63 width=0) (actual time=0.002..0.002 rows=31 loops=466) | |
Index Cond: (display_entry_2.source = r.bib_record) | |
Buffers: shared hit=1439 | |
-> Function Scan on actor.org_unit_ancestor_setting default_estimated_wait_interval (cost=0.25..0.26 rows=1 width=32) (actual time=0.043..0.043 rows=0 loops=466) | |
Output: default_estimated_wait_interval.id, default_estimated_wait_interval.org_unit, default_estimated_wait_interval.name, default_estimated_wait_interval.value | |
Function Call: actor.org_unit_ancestor_setting('circ.holds.default_estimated_wait_interval'::text, u.home_ou) | |
Buffers: shared hit=4194 | |
-> Function Scan on actor.org_unit_ancestor_setting min_estimated_wait_interval (cost=0.25..0.26 rows=1 width=32) (actual time=0.035..0.035 rows=0 loops=466) | |
Output: min_estimated_wait_interval.id, min_estimated_wait_interval.org_unit, min_estimated_wait_interval.name, min_estimated_wait_interval.value | |
Function Call: actor.org_unit_ancestor_setting('circ.holds.min_estimated_wait_interval'::text, u.home_ou) | |
Buffers: shared hit=4194 | |
-> Function Scan on actor.org_unit_ancestor_setting hold_wait_time (cost=0.25..0.26 rows=1 width=32) (actual time=0.032..0.032 rows=1 loops=466) | |
Output: hold_wait_time.id, hold_wait_time.org_unit, hold_wait_time.name, hold_wait_time.value | |
Function Call: actor.org_unit_ancestor_setting('circ.hold_shelf_status_delay'::text, h.pickup_lib) | |
Buffers: shared hit=4194 | |
-> Aggregate (cost=59.55..59.56 rows=1 width=24) (actual time=0.031..0.031 rows=1 loops=466) | |
Output: count(*), count(DISTINCT m.hold), sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval))) | |
Buffers: shared hit=14865 | |
-> Nested Loop Left Join (cost=0.85..59.47 rows=4 width=20) (actual time=0.009..0.025 rows=4 loops=466) | |
Output: m.hold, cm.avg_wait_time | |
Inner Unique: true | |
Buffers: shared hit=14865 | |
-> Nested Loop (cost=0.71..58.86 rows=4 width=9) (actual time=0.006..0.018 rows=4 loops=466) | |
Output: m.hold, cp_2.circ_modifier | |
Buffers: shared hit=10893 | |
-> Index Only Scan using copy_once_per_hold on action.hold_copy_map m (cost=0.29..4.36 rows=4 width=12) (actual time=0.003..0.003 rows=4 loops=466) | |
Output: m.hold, m.target_copy | |
Index Cond: (m.hold = h.id) | |
Heap Fetches: 0 | |
Buffers: shared hit=944 | |
-> Append (cost=0.42..13.61 rows=2 width=13) (actual time=0.002..0.003 rows=1 loops=1986) | |
Buffers: shared hit=9949 | |
-> Index Scan using copy_pkey on asset.copy cp_2 (cost=0.42..8.44 rows=1 width=13) (actual time=0.002..0.002 rows=1 loops=1986) | |
Output: cp_2.id, cp_2.circ_modifier | |
Index Cond: (cp_2.id = m.target_copy) | |
Buffers: shared hit=7963 | |
-> Index Scan using unit_pkey on serial.unit cp_3 (cost=0.14..5.16 rows=1 width=40) (actual time=0.000..0.000 rows=0 loops=1986) | |
Output: cp_3.id, cp_3.circ_modifier | |
Index Cond: (cp_3.id = m.target_copy) | |
Buffers: shared hit=1986 | |
-> Index Scan using circ_modifier_pkey on config.circ_modifier cm (cost=0.14..0.15 rows=1 width=24) (actual time=0.001..0.001 rows=1 loops=1986) | |
Output: cm.code, cm.name, cm.description, cm.sip2_media_type, cm.magnetic_media, cm.avg_wait_time | |
Index Cond: (cp_2.circ_modifier = cm.code) | |
Buffers: shared hit=3972 | |
SubPlan 4 | |
-> Seq Scan on config.sms_carrier (cost=0.00..1.94 rows=1 width=16) (actual time=0.004..0.005 rows=0 loops=466) | |
Output: sms_carrier.name | |
Filter: (sms_carrier.id = h.sms_carrier) | |
Rows Removed by Filter: 75 | |
Buffers: shared hit=466 | |
Planning time: 7.001 ms | |
Execution time: 2237.376 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH | |
t_field AS (SELECT field FROM config.display_field_map WHERE name = 'title'), | |
a_field AS (SELECT field FROM config.display_field_map WHERE name = 'author'), | |
s_field AS (SELECT field FROM config.display_field_map WHERE name = 'series_title') | |
SELECT h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, | |
h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, | |
h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, | |
h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, | |
h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, | |
(SELECT name FROM config.sms_carrier WHERE id = h.sms_carrier) AS "sms_carrier", | |
h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, | |
h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, | |
CASE WHEN h.cancel_time IS NOT NULL THEN 6 | |
WHEN h.frozen AND h.capture_time IS NULL THEN 7 | |
WHEN h.current_shelf_lib IS NOT NULL AND h.current_shelf_lib <> h.pickup_lib THEN 8 | |
WHEN h.fulfillment_time IS NOT NULL THEN 9 | |
WHEN h.current_copy IS NULL THEN 1 | |
WHEN h.capture_time IS NULL THEN 2 | |
WHEN cp.status = 6 THEN 3 | |
WHEN EXTRACT(EPOCH FROM COALESCE(NULLIF(BTRIM(hold_wait_time.value,'"'),''),'0 seconds')::INTERVAL) = 0 THEN 4 | |
WHEN h.shelf_time + COALESCE(NULLIF(BTRIM(hold_wait_time.value,'"'),''),'0 seconds')::INTERVAL > NOW() THEN 5 | |
ELSE 4 | |
END AS hold_status, | |
(h.shelf_expire_time < 'today'::timestamptz OR h.cancel_time IS NOT NULL OR (h.current_shelf_lib IS NOT NULL AND h.current_shelf_lib <> h.pickup_lib)) AS clear_me, | |
(h.usr <> h.requestor) AS is_staff_hold, | |
cc.id AS cc_id, cc.label AS cc_label, | |
pl.id AS pl_id, pl.parent_ou AS pl_parent_ou, pl.ou_type AS pl_ou_type, | |
pl.ill_address AS pl_ill_address, pl.holds_address AS pl_holds_address, | |
pl.mailing_address AS pl_mailing_address, pl.billing_address AS pl_billing_address, | |
pl.shortname AS pl_shortname, pl.name AS pl_name, pl.email AS pl_email, | |
pl.phone AS pl_phone, pl.opac_visible AS pl_opac_visible, pl.fiscal_calendar AS pl_fiscal_calendar, | |
tr.id AS tr_id, tr.source_send_time AS tr_source_send_time, tr.dest_recv_time AS tr_dest_recv_time, | |
tr.target_copy AS tr_target_copy, tr.source AS tr_source, tr.dest AS tr_dest, tr.prev_hop AS tr_prev_hop, | |
tr.copy_status AS tr_copy_status, tr.persistant_transfer AS tr_persistant_transfer, | |
tr.prev_dest AS tr_prev_dest, tr.hold AS tr_hold, tr.cancel_time AS tr_cancel_time, | |
notes.count AS note_count, | |
u.id AS usr_id, u.card AS usr_card, u.profile AS usr_profile, u.usrname AS usr_usrname, | |
u.email AS usr_email, u.standing AS usr_standing, u.ident_type AS usr_ident_type, | |
u.ident_value AS usr_ident_value, u.ident_type2 AS usr_ident_type2, | |
u.ident_value2 AS usr_ident_value2, u.net_access_level AS usr_net_access_level, | |
u.photo_url AS usr_photo_url, u.prefix AS usr_prefix, u.first_given_name AS usr_first_given_name, | |
u.second_given_name AS usr_second_given_name, u.family_name AS usr_family_name, | |
u.suffix AS usr_suffix, u.alias AS usr_alias, u.day_phone AS usr_day_phone, | |
u.evening_phone AS usr_evening_phone, u.other_phone AS usr_other_phone, | |
u.mailing_address AS usr_mailing_address, u.billing_address AS usr_billing_address, | |
u.home_ou AS usr_home_ou, u.dob AS usr_dob, u.active AS usr_active, | |
u.master_account AS usr_master_account, u.super_user AS usr_super_user, | |
u.barred AS usr_barred, u.deleted AS usr_deleted, u.juvenile AS usr_juvenile, | |
u.usrgroup AS usr_usrgroup, u.claims_returned_count AS usr_claims_returned_count, | |
u.credit_forward_balance AS usr_credit_forward_balance, u.last_xact_id AS usr_last_xact_id, | |
u.create_date AS usr_create_date, | |
u.expire_date AS usr_expire_date, u.claims_never_checked_out_count AS usr_claims_never_checked_out_count, | |
u.last_update_time AS usr_last_update_time, | |
CASE WHEN u.alias IS NOT NULL THEN | |
u.alias | |
ELSE | |
u.first_given_name | |
END AS usr_alias_or_first_given_name, | |
CASE WHEN u.alias IS NOT NULL THEN | |
u.alias | |
ELSE | |
REGEXP_REPLACE(ARRAY_TO_STRING(ARRAY[ | |
COALESCE(u.family_name, ''), | |
COALESCE(u.suffix, ''), | |
', ', | |
COALESCE(u.prefix, ''), | |
COALESCE(u.first_given_name, ''), | |
COALESCE(u.second_given_name, '') | |
], ' '), E'\s+,', ',') | |
END AS usr_alias_or_display_name, | |
REGEXP_REPLACE(ARRAY_TO_STRING(ARRAY[ | |
COALESCE(u.family_name, ''), | |
COALESCE(u.suffix, ''), | |
', ', | |
COALESCE(u.prefix, ''), | |
COALESCE(u.first_given_name, ''), | |
COALESCE(u.second_given_name, '') | |
], ' '), E'\s+,', ',') AS usr_display_name, | |
uc.id AS ucard_id, uc.barcode AS ucard_barcode, uc.usr AS ucard_usr, uc.active AS ucard_active, | |
ru.id AS rusr_id, ru.card AS rusr_card, ru.profile AS rusr_profile, ru.usrname AS rusr_usrname, | |
ru.email AS rusr_email, ru.standing AS rusr_standing, ru.ident_type AS rusr_ident_type, | |
ru.ident_value AS rusr_ident_value, ru.ident_type2 AS rusr_ident_type2, | |
ru.ident_value2 AS rusr_ident_value2, ru.net_access_level AS rusr_net_access_level, | |
ru.photo_url AS rusr_photo_url, ru.prefix AS rusr_prefix, ru.first_given_name AS rusr_first_given_name, | |
ru.second_given_name AS rusr_second_given_name, ru.family_name AS rusr_family_name, | |
ru.suffix AS rusr_suffix, ru.alias AS rusr_alias, ru.day_phone AS rusr_day_phone, | |
ru.evening_phone AS rusr_evening_phone, ru.other_phone AS rusr_other_phone, | |
ru.mailing_address AS rusr_mailing_address, ru.billing_address AS rusr_billing_address, | |
ru.home_ou AS rusr_home_ou, ru.dob AS rusr_dob, ru.active AS rusr_active, | |
ru.master_account AS rusr_master_account, ru.super_user AS rusr_super_user, | |
ru.barred AS rusr_barred, ru.deleted AS rusr_deleted, ru.juvenile AS rusr_juvenile, | |
ru.usrgroup AS rusr_usrgroup, ru.claims_returned_count AS rusr_claims_returned_count, | |
ru.credit_forward_balance AS rusr_credit_forward_balance, ru.last_xact_id AS rusr_last_xact_id, | |
ru.create_date AS rusr_create_date, | |
ru.expire_date AS rusr_expire_date, ru.claims_never_checked_out_count AS rusr_claims_never_checked_out_count, | |
ru.last_update_time AS rusr_last_update_time, | |
ruc.id AS rucard_id, ruc.barcode AS rucard_barcode, ruc.usr AS rucard_usr, ruc.active AS rucard_active, | |
cp.id AS cp_id, cp.circ_lib AS cp_circ_lib, cp.creator AS cp_creator, cp.call_number AS cp_call_number, | |
cp.editor AS cp_editor, cp.create_date AS cp_create_date, cp.edit_date AS cp_edit_date, | |
cp.copy_number AS cp_copy_number, cp.status AS cp_status, cp.location AS cp_location, | |
cp.loan_duration AS cp_loan_duration, cp.fine_level AS cp_fine_level, cp.age_protect AS cp_age_protect, | |
cp.circulate AS cp_circulate, cp.deposit AS cp_deposit, cp.ref AS cp_ref, cp.holdable AS cp_holdable, | |
cp.deposit_amount AS cp_deposit_amount, cp.price AS cp_price, cp.barcode AS cp_barcode, | |
cp.circ_modifier AS cp_circ_modifier, cp.circ_as_type AS cp_circ_as_type, cp.dummy_title AS cp_dummy_title, | |
cp.dummy_author AS cp_dummy_author, cp.alert_message AS cp_alert_message, cp.opac_visible AS cp_opac_visible, | |
cp.deleted AS cp_deleted, cp.floating AS cp_floating, cp.dummy_isbn AS cp_dummy_isbn, | |
cp.status_changed_time AS cp_status_change_time, cp.active_date AS cp_active_date, | |
cp.mint_condition AS cp_mint_condition, cp.cost AS cp_cost, | |
cs.id AS cs_id, cs.name AS cs_name, cs.holdable AS cs_holdable, cs.opac_visible AS cs_opac_visible, | |
cs.copy_active AS cs_copy_active, cs.restrict_copy_delete AS cs_restrict_copy_delete, | |
cs.is_available AS cs_is_available, | |
siss.label AS issuance_label, | |
cn.id AS cn_id, cn.creator AS cn_creator, cn.create_date AS cn_create_date, cn.editor AS cn_editor, | |
cn.edit_date AS cn_edit_date, cn.record AS cn_record, cn.owning_lib AS cn_owning_lib, cn.label AS cn_label, | |
cn.deleted AS cn_deleted, cn.prefix AS cn_prefix, cn.suffix AS cn_suffix, cn.label_class AS cn_label_class, | |
cn.label_sortkey AS cn_label_sortkey, | |
p.id AS p_id, p.record AS p_record, p.label AS p_label, p.label_sortkey AS p_label_sortkey, p.deleted AS p_deleted, | |
acnp.label AS ancp_label, acns.label AS ancs_label, | |
TRIM(acnp.label || ' ' || cn.label || ' ' || acns.label) AS cn_full_label, | |
r.bib_record AS record_id, | |
t.value AS title, | |
a.value AS author, | |
s.value AS series_title, | |
acpl.id AS acpl_id, acpl.name AS acpl_name, acpl.owning_lib AS acpl_owning_lib, acpl.holdable AS acpl_holdable, | |
acpl.hold_verify AS acpl_hold_verify, acpl.opac_visible AS acpl_opac_visible, acpl.circulate AS acpl_circulate, | |
acpl.label_prefix AS acpl_label_prefix, acpl.label_suffix AS acpl_label_suffix, | |
acpl.checkin_alert AS acpl_checkin_alert, acpl.deleted AS acpl_deleted, acpl.url AS acpl_url, | |
COALESCE(acplo.position, acpl_ordered.fallback_position) AS copy_location_order_position, | |
ROW_NUMBER() OVER ( | |
PARTITION BY r.bib_record | |
ORDER BY h.cut_in_line DESC NULLS LAST, h.request_time ASC | |
) AS relative_queue_position, | |
EXTRACT(EPOCH FROM COALESCE( | |
NULLIF(BTRIM(default_estimated_wait_interval.value,'"'),''), | |
'0 seconds' | |
)::INTERVAL) AS default_estimated_wait, | |
EXTRACT(EPOCH FROM COALESCE( | |
NULLIF(BTRIM(min_estimated_wait_interval.value,'"'),''), | |
'0 seconds' | |
)::INTERVAL) AS min_estimated_wait, | |
COALESCE(hold_wait.potenials,0) AS potentials, | |
COALESCE(hold_wait.other_holds,0) AS other_holds, | |
COALESCE(hold_wait.total_wait_time,0) AS total_wait_time, | |
n.count AS notification_count, | |
n.max AS last_notification_time | |
FROM action.hold_request h | |
JOIN reporter.hold_request_record r ON (r.id = h.id) | |
JOIN actor.usr u ON (u.id = h.usr) | |
JOIN actor.card uc ON (uc.id = u.card) | |
JOIN actor.usr ru ON (ru.id = h.requestor) | |
JOIN actor.card ruc ON (ruc.id = ru.card) | |
JOIN actor.org_unit pl ON (h.pickup_lib = pl.id) | |
JOIN t_field ON TRUE | |
JOIN a_field ON TRUE | |
JOIN s_field ON TRUE | |
LEFT JOIN action.hold_request_cancel_cause cc ON (h.cancel_cause = cc.id) | |
LEFT JOIN biblio.monograph_part p ON (h.hold_type = 'P' AND p.id = h.target) | |
LEFT JOIN serial.issuance siss ON (h.hold_type = 'I' AND siss.id = h.target) | |
LEFT JOIN asset.copy cp ON (h.current_copy = cp.id OR (h.hold_type IN ('C','F','R') AND cp.id = h.target)) | |
LEFT JOIN config.copy_status cs ON (cp.status = cs.id) | |
LEFT JOIN asset.copy_location acpl ON (cp.location = acpl.id) | |
LEFT JOIN asset.copy_location_order acplo ON (cp.location = acplo.location AND cp.circ_lib = acplo.org) | |
LEFT JOIN ( | |
SELECT *, (ROW_NUMBER() OVER (ORDER BY name) + 1000000) AS fallback_position | |
FROM asset.copy_location | |
) acpl_ordered ON (acpl_ordered.id = cp.location) | |
LEFT JOIN asset.call_number cn ON (cn.id = cp.call_number OR (h.hold_type = 'V' AND cn.id = h.target)) | |
LEFT JOIN asset.call_number_prefix acnp ON (cn.prefix = acnp.id) | |
LEFT JOIN asset.call_number_suffix acns ON (cn.suffix = acns.id) | |
LEFT JOIN LATERAL (SELECT * FROM action.hold_transit_copy WHERE h.id = hold ORDER BY id DESC LIMIT 1) tr ON TRUE | |
LEFT JOIN LATERAL (SELECT COUNT(*) FROM action.hold_request_note WHERE h.id = hold AND (pub = TRUE OR staff = true)) notes ON TRUE | |
LEFT JOIN LATERAL (SELECT COUNT(*), MAX(notify_time) FROM action.hold_notification WHERE h.id = hold) n ON TRUE | |
LEFT JOIN LATERAL (SELECT FIRST(value) AS value FROM metabib.display_entry WHERE source = r.bib_record AND field = t_field.field) t ON TRUE | |
LEFT JOIN LATERAL (SELECT FIRST(value) AS value FROM metabib.display_entry WHERE source = r.bib_record AND field = a_field.field) a ON TRUE | |
LEFT JOIN LATERAL (SELECT FIRST(value) AS value FROM metabib.display_entry WHERE source = r.bib_record AND field = s_field.field) s ON TRUE | |
LEFT JOIN LATERAL actor.org_unit_ancestor_setting('circ.holds.default_estimated_wait_interval',u.home_ou) AS default_estimated_wait_interval ON TRUE | |
LEFT JOIN LATERAL actor.org_unit_ancestor_setting('circ.holds.min_estimated_wait_interval',u.home_ou) AS min_estimated_wait_interval ON TRUE | |
LEFT JOIN LATERAL actor.org_unit_ancestor_setting('circ.hold_shelf_status_delay',h.pickup_lib) AS hold_wait_time ON TRUE, | |
LATERAL ( | |
SELECT COUNT(*) AS potenials, | |
COUNT(DISTINCT hold) AS other_holds, | |
SUM( | |
EXTRACT(EPOCH FROM | |
COALESCE( | |
cm.avg_wait_time, | |
COALESCE(NULLIF(BTRIM(default_estimated_wait_interval.value,'"'),''),'0 seconds')::INTERVAL | |
) | |
) | |
) AS total_wait_time | |
FROM action.hold_copy_map m | |
JOIN asset.copy cp ON (cp.id = m.target_copy) | |
LEFT JOIN config.circ_modifier cm ON (cp.circ_modifier = cm.code) | |
WHERE m.hold = h.id | |
) AS hold_wait | |
WHERE (h.capture_time IS NULL OR (h.id = ( | |
SELECT id | |
FROM action.hold_request recheck | |
WHERE recheck.current_copy = cp.id | |
AND recheck.capture_time IS NOT NULL | |
ORDER BY capture_time DESC | |
LIMIT 1 | |
))) | |
AND cs.id = $_6019$8$_6019$ AND fulfillment_time IS NULL AND cp.deleted = $_6019$f$_6019$ AND capture_time IS NOT NULL AND current_shelf_lib = $_6019$102$_6019$ ORDER BY shelf_expire_time | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QUERY PLAN | |
Sort (cost=15936419.07..15936419.09 rows=8 width=1810) (actual time=55767.345..55767.393 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, ((SubPlan 4)), h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, (CASE WHEN (h.cancel_time IS NOT NULL) THEN 6 WHEN (h.frozen AND (h.capture_time IS NULL)) THEN 7 WHEN ((h.current_shelf_lib IS NOT NULL) AND (h.current_shelf_lib <> h.pickup_lib)) THEN 8 WHEN (h.fulfillment_time IS NOT NULL) THEN 9 WHEN (h.current_copy IS NULL) THEN 1 WHEN (h.capture_time IS NULL) THEN 2 WHEN (cp.status = 6) THEN 3 WHEN (date_part('epoch'::text, (COALESCE(NULLIF(btrim(hold_wait_time.value, '"'::text), ''::text), '0 seconds'::text))::interval) = '0'::double precision) THEN 4 WHEN ((h.shelf_time + (COALESCE(NULLIF(btrim(hold_wait_time.value, '"'::text), ''::text), '0 seconds'::text))::interval) > now()) THEN 5 ELSE 4 END), (((h.shelf_expire_time < '2022-11-22 00:00:00-06'::timestamp with time zone) OR (h.cancel_time IS NOT NULL) OR ((h.current_shelf_lib IS NOT NULL) AND (h.current_shelf_lib <> h.pickup_lib)))), ((h.usr <> h.requestor)), cc.id, cc.label, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, (CASE WHEN (u.alias IS NOT NULL) THEN u.alias ELSE u.first_given_name END), (CASE WHEN (u.alias IS NOT NULL) THEN u.alias ELSE regexp_replace(array_to_string(ARRAY[COALESCE(u.family_name, ''::text), COALESCE(u.suffix, ''::text), ', '::text, COALESCE(u.prefix, ''::text), COALESCE(u.first_given_name, ''::text), COALESCE(u.second_given_name, ''::text)], ' '::text), 's+,'::text, ','::text) END), (regexp_replace(array_to_string(ARRAY[COALESCE(u.family_name, ''::text), COALESCE(u.suffix, ''::text), ', '::text, COALESCE(u.prefix, ''::text), COALESCE(u.first_given_name, ''::text), COALESCE(u.second_given_name, ''::text)], ' '::text), 's+,'::text, ','::text)), uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.status, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, siss.label, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, p.id, p.record, p.label, p.label_sortkey, p.deleted, acnp.label, acns.label, (btrim(((((acnp.label || ' '::text) || cn.label) || ' '::text) || acns.label))), r.bib_record, (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, (COALESCE((acplo."position")::bigint, acpl_ordered.fallback_position)), (row_number() OVER (?)), (date_part('epoch'::text, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)), (date_part('epoch'::text, (COALESCE(NULLIF(btrim(min_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)), (COALESCE((count(*)), '0'::bigint)), (COALESCE((count(DISTINCT m.hold)), '0'::bigint)), (COALESCE((sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)))), '0'::double precision)), (count(*)), (max(hold_notification.notify_time)) | |
Sort Key: h.shelf_expire_time | |
Sort Method: quicksort Memory: 964kB | |
Buffers: shared hit=1297291 | |
CTE t_field | |
-> Seq Scan on config.display_field_map (cost=0.00..1.32 rows=1 width=4) (actual time=0.002..0.004 rows=1 loops=1) | |
Output: display_field_map.field | |
Filter: (display_field_map.name = 'title'::text) | |
Rows Removed by Filter: 25 | |
Buffers: shared hit=1 | |
CTE a_field | |
-> Seq Scan on config.display_field_map display_field_map_1 (cost=0.00..1.32 rows=1 width=4) (actual time=0.005..0.006 rows=1 loops=1) | |
Output: display_field_map_1.field | |
Filter: (display_field_map_1.name = 'author'::text) | |
Rows Removed by Filter: 25 | |
Buffers: shared hit=1 | |
CTE s_field | |
-> Seq Scan on config.display_field_map display_field_map_2 (cost=0.00..1.32 rows=1 width=4) (actual time=0.001..0.005 rows=1 loops=1) | |
Output: display_field_map_2.field | |
Filter: (display_field_map_2.name = 'series_title'::text) | |
Rows Removed by Filter: 25 | |
Buffers: shared hit=1 | |
-> WindowAgg (cost=15936398.53..15936414.97 rows=8 width=1810) (actual time=55759.438..55765.990 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, (SubPlan 4), h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, CASE WHEN (h.cancel_time IS NOT NULL) THEN 6 WHEN (h.frozen AND (h.capture_time IS NULL)) THEN 7 WHEN ((h.current_shelf_lib IS NOT NULL) AND (h.current_shelf_lib <> h.pickup_lib)) THEN 8 WHEN (h.fulfillment_time IS NOT NULL) THEN 9 WHEN (h.current_copy IS NULL) THEN 1 WHEN (h.capture_time IS NULL) THEN 2 WHEN (cp.status = 6) THEN 3 WHEN (date_part('epoch'::text, (COALESCE(NULLIF(btrim(hold_wait_time.value, '"'::text), ''::text), '0 seconds'::text))::interval) = '0'::double precision) THEN 4 WHEN ((h.shelf_time + (COALESCE(NULLIF(btrim(hold_wait_time.value, '"'::text), ''::text), '0 seconds'::text))::interval) > now()) THEN 5 ELSE 4 END, ((h.shelf_expire_time < '2022-11-22 00:00:00-06'::timestamp with time zone) OR (h.cancel_time IS NOT NULL) OR ((h.current_shelf_lib IS NOT NULL) AND (h.current_shelf_lib <> h.pickup_lib))), (h.usr <> h.requestor), cc.id, cc.label, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, CASE WHEN (u.alias IS NOT NULL) THEN u.alias ELSE u.first_given_name END, CASE WHEN (u.alias IS NOT NULL) THEN u.alias ELSE regexp_replace(array_to_string(ARRAY[COALESCE(u.family_name, ''::text), COALESCE(u.suffix, ''::text), ', '::text, COALESCE(u.prefix, ''::text), COALESCE(u.first_given_name, ''::text), COALESCE(u.second_given_name, ''::text)], ' '::text), 's+,'::text, ','::text) END, regexp_replace(array_to_string(ARRAY[COALESCE(u.family_name, ''::text), COALESCE(u.suffix, ''::text), ', '::text, COALESCE(u.prefix, ''::text), COALESCE(u.first_given_name, ''::text), COALESCE(u.second_given_name, ''::text)], ' '::text), 's+,'::text, ','::text), uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.status, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, siss.label, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, p.id, p.record, p.label, p.label_sortkey, p.deleted, acnp.label, acns.label, btrim(((((acnp.label || ' '::text) || cn.label) || ' '::text) || acns.label)), r.bib_record, (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, COALESCE((acplo."position")::bigint, acpl_ordered.fallback_position), row_number() OVER (?), date_part('epoch'::text, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval), date_part('epoch'::text, (COALESCE(NULLIF(btrim(min_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval), COALESCE((count(*)), '0'::bigint), COALESCE((count(DISTINCT m.hold)), '0'::bigint), COALESCE((sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)))), '0'::double precision), (count(*)), (max(hold_notification.notify_time)) | |
Buffers: shared hit=1297288 | |
-> Sort (cost=15936398.53..15936398.55 rows=8 width=1724) (actual time=55759.346..55759.442 rows=466 loops=1) | |
Output: h.request_time, h.cut_in_line, r.bib_record, h.id, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, cp.status, hold_wait_time.value, cc.id, cc.label, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, siss.label, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, p.id, p.record, p.label, p.label_sortkey, p.deleted, acnp.label, acns.label, (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, default_estimated_wait_interval.value, min_estimated_wait_interval.value, (count(*)), (count(DISTINCT m.hold)), (sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)))), (count(*)), (max(hold_notification.notify_time)) | |
Sort Key: r.bib_record, h.cut_in_line DESC NULLS LAST, h.request_time | |
Sort Method: quicksort Memory: 963kB | |
Buffers: shared hit=1296822 | |
-> Nested Loop (cost=846.52..15936398.41 rows=8 width=1724) (actual time=75.007..55754.610 rows=466 loops=1) | |
Output: h.request_time, h.cut_in_line, r.bib_record, h.id, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, cp.status, hold_wait_time.value, cc.id, cc.label, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, siss.label, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, p.id, p.record, p.label, p.label_sortkey, p.deleted, acnp.label, acns.label, (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, default_estimated_wait_interval.value, min_estimated_wait_interval.value, (count(*)), (count(DISTINCT m.hold)), (sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval)))), (count(*)), (max(hold_notification.notify_time)) | |
Buffers: shared hit=1296814 | |
-> Nested Loop Left Join (cost=786.97..15935921.76 rows=8 width=1700) (actual time=74.860..55724.677 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), default_estimated_wait_interval.value, min_estimated_wait_interval.value, hold_wait_time.value | |
Buffers: shared hit=1281945 | |
-> Nested Loop Left Join (cost=786.72..15935921.35 rows=8 width=1668) (actual time=74.816..55706.091 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), default_estimated_wait_interval.value, min_estimated_wait_interval.value | |
Buffers: shared hit=1277751 | |
-> Nested Loop Left Join (cost=786.47..15935920.94 rows=8 width=1636) (actual time=74.634..55687.042 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)), default_estimated_wait_interval.value | |
Buffers: shared hit=1273557 | |
-> Nested Loop Left Join (cost=786.22..15935920.53 rows=8 width=1604) (actual time=73.942..55645.680 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)), (first(display_entry_2.value)) | |
Buffers: shared hit=1269286 | |
-> Nested Loop Left Join (cost=533.27..15933896.67 rows=8 width=1576) (actual time=73.912..55638.855 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)), (first(display_entry_1.value)) | |
Buffers: shared hit=1266943 | |
-> Nested Loop Left Join (cost=280.31..15931872.82 rows=8 width=1548) (actual time=73.881..55630.826 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)), (first(display_entry.value)) | |
Buffers: shared hit=1264600 | |
-> Nested Loop Left Join (cost=27.36..15929848.97 rows=8 width=1520) (actual time=73.790..55609.448 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)), (count(*)), (max(hold_notification.notify_time)) | |
Buffers: shared hit=1262257 | |
-> Nested Loop Left Join (cost=18.92..15929781.17 rows=8 width=1504) (actual time=73.774..55603.482 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time, (count(*)) | |
Buffers: shared hit=1260663 | |
-> Nested Loop Left Join (cost=17.89..15929772.71 rows=8 width=1496) (actual time=73.764..55596.158 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label, hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.hold, hold_transit_copy.cancel_time | |
Buffers: shared hit=1260197 | |
-> Nested Loop Left Join (cost=9.44..15929704.89 rows=8 width=1435) (actual time=73.710..55579.254 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label, acns.label | |
Inner Unique: true | |
Join Filter: (cn.suffix = acns.id) | |
Rows Removed by Join Filter: 3 | |
Buffers: shared hit=1258479 | |
-> Nested Loop Left Join (cost=9.44..15929703.67 rows=8 width=1428) (actual time=73.703..55577.784 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey, acnp.label | |
Inner Unique: true | |
Join Filter: (cn.prefix = acnp.id) | |
Rows Removed by Join Filter: 9972 | |
Buffers: shared hit=1258478 | |
-> Nested Loop Left Join (cost=9.44..15929691.80 rows=8 width=1418) (actual time=73.670..55574.261 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position, cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey | |
Join Filter: ((cp.call_number = cn.id) OR ((h.hold_type = 'V'::text) AND (cn.id = h.target))) | |
Rows Removed by Join Filter: 379024828 | |
Buffers: shared hit=1258477 | |
-> Nested Loop Left Join (cost=9.44..15777439.37 rows=8 width=1335) (actual time=6.596..2404.917 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position", acpl_ordered.fallback_position | |
Join Filter: (acpl_ordered.id = cp.location) | |
Rows Removed by Join Filter: 46134 | |
Buffers: shared hit=1246529 | |
-> Nested Loop Left Join (cost=4.12..15777418.80 rows=8 width=1327) (actual time=6.522..2396.134 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url, acplo."position" | |
Inner Unique: true | |
Join Filter: ((cp.location = acplo.location) AND (cp.circ_lib = acplo.org)) | |
Rows Removed by Join Filter: 46373 | |
Buffers: shared hit=1246525 | |
-> Nested Loop Left Join (cost=4.12..15777397.82 rows=8 width=1323) (actual time=6.478..2388.428 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field, acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url | |
Inner Unique: true | |
Join Filter: (cp.location = acpl.id) | |
Rows Removed by Join Filter: 623 | |
Buffers: shared hit=1246524 | |
-> Nested Loop (cost=4.12..15777383.57 rows=8 width=1301) (actual time=6.473..2386.611 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, a_field.field, s_field.field | |
Buffers: shared hit=1246523 | |
-> Nested Loop (cost=0.00..0.05 rows=1 width=8) (actual time=0.009..0.015 rows=1 loops=1) | |
Output: a_field.field, s_field.field | |
Buffers: shared hit=2 | |
-> CTE Scan on a_field (cost=0.00..0.02 rows=1 width=4) (actual time=0.007..0.008 rows=1 loops=1) | |
Output: a_field.field | |
Buffers: shared hit=1 | |
-> CTE Scan on s_field (cost=0.00..0.02 rows=1 width=4) (actual time=0.001..0.005 rows=1 loops=1) | |
Output: s_field.field | |
Buffers: shared hit=1 | |
-> Nested Loop (cost=4.12..15777383.44 rows=8 width=1293) (actual time=6.462..2385.496 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost, cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available | |
Buffers: shared hit=1246521 | |
-> Seq Scan on config.copy_status cs (cost=0.00..1.26 rows=1 width=20) (actual time=0.002..0.005 rows=1 loops=1) | |
Output: cs.id, cs.name, cs.holdable, cs.opac_visible, cs.copy_active, cs.restrict_copy_delete, cs.is_available, cs.hopeless_prone | |
Filter: (cs.id = 8) | |
Rows Removed by Filter: 20 | |
Buffers: shared hit=1 | |
-> Nested Loop Left Join (cost=4.12..15777382.10 rows=8 width=1273) (actual time=6.458..2384.458 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, siss.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Inner Unique: true | |
Join Filter: ((h.hold_type = 'I'::text) AND (siss.id = h.target)) | |
Buffers: shared hit=1246520 | |
-> Nested Loop Left Join (cost=4.12..15777300.43 rows=8 width=1241) (actual time=6.455..2383.205 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, p.id, p.record, p.label, p.label_sortkey, p.deleted, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Inner Unique: true | |
Join Filter: ((h.hold_type = 'P'::text) AND (p.id = h.target)) | |
Rows Removed by Join Filter: 8596302 | |
Buffers: shared hit=1246520 | |
-> Nested Loop Left Join (cost=4.12..15774270.26 rows=8 width=1183) (actual time=1.266..1323.530 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cc.id, cc.label, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Inner Unique: true | |
Join Filter: (h.cancel_cause = cc.id) | |
Rows Removed by Join Filter: 3676 | |
Buffers: shared hit=1246303 | |
-> Nested Loop (cost=4.12..15774268.20 rows=8 width=1161) (actual time=1.258..1321.661 rows=466 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field, cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Buffers: shared hit=1246302 | |
-> Nested Loop (cost=2.41..221713.63 rows=17811 width=975) (actual time=0.099..1185.306 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar, t_field.field | |
Buffers: shared hit=1108597 | |
-> Nested Loop (cost=2.41..221357.40 rows=17811 width=971) (actual time=0.096..1160.336 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active, pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar | |
Inner Unique: true | |
Buffers: shared hit=1108596 | |
-> Nested Loop (cost=2.27..218547.80 rows=17811 width=876) (actual time=0.082..1120.564 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, r.bib_record, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active | |
Inner Unique: true | |
Buffers: shared hit=1070134 | |
-> Nested Loop (cost=1.84..160572.22 rows=17811 width=868) (actual time=0.062..1023.419 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time, ruc.id, ruc.barcode, ruc.usr, ruc.active | |
Inner Unique: true | |
Buffers: shared hit=993151 | |
-> Nested Loop (cost=1.43..151935.49 rows=18064 width=845) (actual time=0.056..971.507 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active, ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time | |
Inner Unique: true | |
Buffers: shared hit=916189 | |
-> Nested Loop (cost=1.14..129770.41 rows=18064 width=578) (actual time=0.045..913.444 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time, uc.id, uc.barcode, uc.usr, uc.active | |
Inner Unique: true | |
Buffers: shared hit=858471 | |
-> Nested Loop (cost=0.72..121011.29 rows=18320 width=555) (actual time=0.033..840.845 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time | |
Inner Unique: true | |
Buffers: shared hit=781432 | |
-> Index Scan using hold_request_target_idx on action.hold_request h (cost=0.42..98532.09 rows=18320 width=288) (actual time=0.016..757.887 rows=19231 loops=1) | |
Output: h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, h.sms_carrier, h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.acq_request, h.hopeless_date | |
Filter: ((h.fulfillment_time IS NULL) AND (h.capture_time IS NOT NULL) AND (h.current_shelf_lib = 102)) | |
Rows Removed by Filter: 718564 | |
Buffers: shared hit=723711 | |
-> Index Scan using usr_pkey on actor.usr u (cost=0.29..1.23 rows=1 width=267) (actual time=0.003..0.003 rows=1 loops=19231) | |
Output: u.id, u.card, u.profile, u.usrname, u.email, u.standing, u.ident_type, u.ident_value, u.ident_type2, u.ident_value2, u.net_access_level, u.photo_url, u.prefix, u.first_given_name, u.second_given_name, u.family_name, u.suffix, u.alias, u.day_phone, u.evening_phone, u.other_phone, u.mailing_address, u.billing_address, u.home_ou, u.dob, u.active, u.master_account, u.super_user, u.barred, u.deleted, u.juvenile, u.usrgroup, u.claims_returned_count, u.credit_forward_balance, u.last_xact_id, u.create_date, u.expire_date, u.claims_never_checked_out_count, u.last_update_time | |
Index Cond: (u.id = h.usr) | |
Buffers: shared hit=57721 | |
-> Index Scan using card_pkey on actor.card uc (cost=0.42..0.48 rows=1 width=23) (actual time=0.003..0.003 rows=1 loops=19231) | |
Output: uc.id, uc.usr, uc.barcode, uc.active | |
Index Cond: (uc.id = u.card) | |
Buffers: shared hit=77039 | |
-> Index Scan using usr_pkey on actor.usr ru (cost=0.29..1.23 rows=1 width=267) (actual time=0.002..0.002 rows=1 loops=19231) | |
Output: ru.id, ru.card, ru.profile, ru.usrname, ru.email, ru.standing, ru.ident_type, ru.ident_value, ru.ident_type2, ru.ident_value2, ru.net_access_level, ru.photo_url, ru.prefix, ru.first_given_name, ru.second_given_name, ru.family_name, ru.suffix, ru.alias, ru.day_phone, ru.evening_phone, ru.other_phone, ru.mailing_address, ru.billing_address, ru.home_ou, ru.dob, ru.active, ru.master_account, ru.super_user, ru.barred, ru.deleted, ru.juvenile, ru.usrgroup, ru.claims_returned_count, ru.credit_forward_balance, ru.last_xact_id, ru.create_date, ru.expire_date, ru.claims_never_checked_out_count, ru.last_update_time | |
Index Cond: (ru.id = h.requestor) | |
Buffers: shared hit=57718 | |
-> Index Scan using card_pkey on actor.card ruc (cost=0.42..0.48 rows=1 width=23) (actual time=0.002..0.002 rows=1 loops=19231) | |
Output: ruc.id, ruc.usr, ruc.barcode, ruc.active | |
Index Cond: (ruc.id = ru.card) | |
Buffers: shared hit=76962 | |
-> Index Scan using reporter_hold_request_record_pkey_idx on reporter.hold_request_record r (cost=0.43..3.26 rows=1 width=12) (actual time=0.004..0.004 rows=1 loops=19231) | |
Output: r.id, r.target, r.hold_type, r.bib_record | |
Index Cond: (r.id = h.id) | |
Buffers: shared hit=76983 | |
-> Index Scan using org_unit_pkey on actor.org_unit pl (cost=0.14..0.16 rows=1 width=95) (actual time=0.001..0.001 rows=1 loops=19231) | |
Output: pl.id, pl.parent_ou, pl.ou_type, pl.ill_address, pl.holds_address, pl.mailing_address, pl.billing_address, pl.shortname, pl.name, pl.email, pl.phone, pl.opac_visible, pl.fiscal_calendar | |
Index Cond: (pl.id = h.pickup_lib) | |
Buffers: shared hit=38462 | |
-> CTE Scan on t_field (cost=0.00..0.02 rows=1 width=4) (actual time=0.000..0.000 rows=1 loops=19231) | |
Output: t_field.field | |
Buffers: shared hit=1 | |
-> Append (cost=1.70..873.18 rows=2 width=186) (actual time=0.006..0.007 rows=0 loops=19231) | |
Buffers: shared hit=137705 | |
-> Bitmap Heap Scan on asset.copy cp (cost=1.70..20.18 rows=1 width=186) (actual time=0.005..0.005 rows=0 loops=19231) | |
Output: cp.status, cp.id, cp.circ_lib, cp.creator, cp.call_number, cp.editor, cp.create_date, cp.edit_date, cp.copy_number, cp.location, cp.loan_duration, cp.fine_level, cp.age_protect, cp.circulate, cp.deposit, cp.ref, cp.holdable, cp.deposit_amount, cp.price, cp.barcode, cp.circ_modifier, cp.circ_as_type, cp.dummy_title, cp.dummy_author, cp.alert_message, cp.opac_visible, cp.deleted, cp.floating, cp.dummy_isbn, cp.status_changed_time, cp.active_date, cp.mint_condition, cp.cost | |
Recheck Cond: ((h.current_copy = cp.id) OR (cp.id = h.target)) | |
Filter: ((NOT cp.deleted) AND (cp.status = 8) AND ((h.current_copy = cp.id) OR ((h.hold_type = ANY ('{C,F,R}'::text[])) AND (cp.id = h.target))) AND ((h.capture_time IS NULL) OR (h.id = (SubPlan 5)))) | |
Rows Removed by Filter: 1 | |
Heap Blocks: exact=19231 | |
Buffers: shared hit=137705 | |
-> BitmapOr (cost=1.70..1.70 rows=2 width=0) (actual time=0.004..0.004 rows=0 loops=19231) | |
Buffers: shared hit=115490 | |
-> Bitmap Index Scan on copy_pkey (cost=0.00..0.85 rows=1 width=0) (actual time=0.002..0.002 rows=1 loops=19231) | |
Index Cond: (h.current_copy = cp.id) | |
Buffers: shared hit=57788 | |
-> Bitmap Index Scan on copy_pkey (cost=0.00..0.85 rows=1 width=0) (actual time=0.001..0.001 rows=0 loops=19231) | |
Index Cond: (cp.id = h.target) | |
Buffers: shared hit=57702 | |
SubPlan 5 | |
-> Limit (cost=0.42..5.24 rows=1 width=12) (actual time=0.007..0.007 rows=1 loops=746) | |
Output: recheck.id, recheck.capture_time | |
Buffers: shared hit=2984 | |
-> Index Scan Backward using hold_request_copy_capture_time_idx on action.hold_request recheck (cost=0.42..24.52 rows=5 width=12) (actual time=0.006..0.006 rows=1 loops=746) | |
Output: recheck.id, recheck.capture_time | |
Index Cond: ((recheck.current_copy = cp.id) AND (recheck.capture_time IS NOT NULL)) | |
Buffers: shared hit=2984 | |
-> Seq Scan on serial.unit cp_1 (cost=0.00..853.00 rows=1 width=369) (actual time=0.000..0.000 rows=0 loops=19231) | |
Output: cp_1.status, cp_1.id, cp_1.circ_lib, cp_1.creator, cp_1.call_number, cp_1.editor, cp_1.create_date, cp_1.edit_date, cp_1.copy_number, cp_1.location, cp_1.loan_duration, cp_1.fine_level, cp_1.age_protect, cp_1.circulate, cp_1.deposit, cp_1.ref, cp_1.holdable, cp_1.deposit_amount, cp_1.price, cp_1.barcode, cp_1.circ_modifier, cp_1.circ_as_type, cp_1.dummy_title, cp_1.dummy_author, cp_1.alert_message, cp_1.opac_visible, cp_1.deleted, cp_1.floating, cp_1.dummy_isbn, cp_1.status_changed_time, cp_1.active_date, cp_1.mint_condition, cp_1.cost | |
Filter: ((NOT cp_1.deleted) AND (cp_1.status = 8) AND ((h.current_copy = cp_1.id) OR ((h.hold_type = ANY ('{C,F,R}'::text[])) AND (cp_1.id = h.target))) AND ((h.capture_time IS NULL) OR (h.id = (SubPlan 5)))) | |
-> Materialize (cost=0.00..1.12 rows=8 width=22) (actual time=0.000..0.001 rows=8 loops=466) | |
Output: cc.id, cc.label | |
Buffers: shared hit=1 | |
-> Seq Scan on action.hold_request_cancel_cause cc (cost=0.00..1.08 rows=8 width=22) (actual time=0.001..0.002 rows=8 loops=1) | |
Output: cc.id, cc.label | |
Buffers: shared hit=1 | |
-> Materialize (cost=0.00..493.71 rows=18447 width=58) (actual time=0.000..0.732 rows=18447 loops=466) | |
Output: p.id, p.record, p.label, p.label_sortkey, p.deleted | |
Buffers: shared hit=217 | |
-> Seq Scan on biblio.monograph_part p (cost=0.00..401.47 rows=18447 width=58) (actual time=0.003..1.076 rows=18447 loops=1) | |
Output: p.id, p.record, p.label, p.label_sortkey, p.deleted | |
Buffers: shared hit=217 | |
-> Materialize (cost=0.00..17.05 rows=470 width=36) (actual time=0.000..0.000 rows=0 loops=466) | |
Output: siss.label, siss.id | |
-> Seq Scan on serial.issuance siss (cost=0.00..14.70 rows=470 width=36) (actual time=0.001..0.001 rows=0 loops=1) | |
Output: siss.label, siss.id | |
-> Materialize (cost=0.00..2.50 rows=100 width=22) (actual time=0.000..0.000 rows=2 loops=466) | |
Output: acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url | |
Buffers: shared hit=1 | |
-> Seq Scan on asset.copy_location acpl (cost=0.00..2.00 rows=100 width=22) (actual time=0.002..0.004 rows=5 loops=1) | |
Output: acpl.id, acpl.name, acpl.owning_lib, acpl.holdable, acpl.hold_verify, acpl.opac_visible, acpl.circulate, acpl.label_prefix, acpl.label_suffix, acpl.checkin_alert, acpl.deleted, acpl.url | |
Buffers: shared hit=1 | |
-> Materialize (cost=0.00..2.96 rows=131 width=12) (actual time=0.000..0.004 rows=100 loops=466) | |
Output: acplo."position", acplo.location, acplo.org | |
Buffers: shared hit=1 | |
-> Seq Scan on asset.copy_location_order acplo (cost=0.00..2.31 rows=131 width=12) (actual time=0.003..0.016 rows=131 loops=1) | |
Output: acplo."position", acplo.location, acplo.org | |
Buffers: shared hit=1 | |
-> Materialize (cost=5.32..8.82 rows=100 width=12) (actual time=0.000..0.007 rows=100 loops=466) | |
Output: acpl_ordered.fallback_position, acpl_ordered.id | |
Buffers: shared hit=4 | |
-> Subquery Scan on acpl_ordered (cost=5.32..8.32 rows=100 width=12) (actual time=0.050..0.126 rows=100 loops=1) | |
Output: acpl_ordered.fallback_position, acpl_ordered.id | |
Buffers: shared hit=4 | |
-> WindowAgg (cost=5.32..7.32 rows=100 width=123) (actual time=0.050..0.115 rows=100 loops=1) | |
Output: copy_location.id, copy_location.name, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::text, NULL::text, NULL::boolean, NULL::boolean, NULL::text, (row_number() OVER (?) + 1000000) | |
Buffers: shared hit=4 | |
-> Sort (cost=5.32..5.57 rows=100 width=9) (actual time=0.048..0.055 rows=100 loops=1) | |
Output: copy_location.name, copy_location.id | |
Sort Key: copy_location.name | |
Sort Method: quicksort Memory: 29kB | |
Buffers: shared hit=4 | |
-> Seq Scan on asset.copy_location (cost=0.00..2.00 rows=100 width=9) (actual time=0.002..0.012 rows=100 loops=1) | |
Output: copy_location.name, copy_location.id | |
Buffers: shared hit=1 | |
-> Materialize (cost=0.00..24148.39 rows=813359 width=83) (actual time=0.000..32.230 rows=813359 loops=466) | |
Output: cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey | |
Buffers: shared hit=11948 | |
-> Seq Scan on asset.call_number cn (cost=0.00..20081.59 rows=813359 width=83) (actual time=0.003..49.131 rows=813359 loops=1) | |
Output: cn.id, cn.creator, cn.create_date, cn.editor, cn.edit_date, cn.record, cn.owning_lib, cn.label, cn.deleted, cn.prefix, cn.suffix, cn.label_class, cn.label_sortkey | |
Buffers: shared hit=11948 | |
-> Materialize (cost=0.00..2.23 rows=82 width=14) (actual time=0.001..0.002 rows=22 loops=466) | |
Output: acnp.label, acnp.id | |
Buffers: shared hit=1 | |
-> Seq Scan on asset.call_number_prefix acnp (cost=0.00..1.82 rows=82 width=14) (actual time=0.009..0.021 rows=74 loops=1) | |
Output: acnp.label, acnp.id | |
Buffers: shared hit=1 | |
-> Materialize (cost=0.00..1.03 rows=2 width=11) (actual time=0.000..0.000 rows=1 loops=466) | |
Output: acns.label, acns.id | |
Buffers: shared hit=1 | |
-> Seq Scan on asset.call_number_suffix acns (cost=0.00..1.02 rows=2 width=11) (actual time=0.003..0.004 rows=2 loops=1) | |
Output: acns.label, acns.id | |
Buffers: shared hit=1 | |
-> Limit (cost=8.45..8.46 rows=1 width=61) (actual time=0.031..0.031 rows=1 loops=466) | |
Output: hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.cancel_time, hold_transit_copy.hold | |
Buffers: shared hit=1718 | |
-> Sort (cost=8.45..8.46 rows=1 width=61) (actual time=0.028..0.028 rows=1 loops=466) | |
Output: hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.cancel_time, hold_transit_copy.hold | |
Sort Key: hold_transit_copy.id DESC | |
Sort Method: quicksort Memory: 25kB | |
Buffers: shared hit=1718 | |
-> Index Scan using hold_transit_copy_hold_idx on action.hold_transit_copy (cost=0.42..8.44 rows=1 width=61) (actual time=0.015..0.016 rows=1 loops=466) | |
Output: hold_transit_copy.id, hold_transit_copy.source_send_time, hold_transit_copy.dest_recv_time, hold_transit_copy.target_copy, hold_transit_copy.source, hold_transit_copy.dest, hold_transit_copy.prev_hop, hold_transit_copy.copy_status, hold_transit_copy.persistant_transfer, hold_transit_copy.prev_dest, hold_transit_copy.cancel_time, hold_transit_copy.hold | |
Index Cond: (h.id = hold_transit_copy.hold) | |
Buffers: shared hit=1715 | |
-> Aggregate (cost=1.03..1.04 rows=1 width=8) (actual time=0.011..0.011 rows=1 loops=466) | |
Output: count(*) | |
Buffers: shared hit=466 | |
-> Seq Scan on action.hold_request_note (cost=0.00..1.02 rows=1 width=0) (actual time=0.004..0.004 rows=0 loops=466) | |
Output: hold_request_note.id, hold_request_note.hold, hold_request_note.title, hold_request_note.body, hold_request_note.slip, hold_request_note.pub, hold_request_note.staff | |
Filter: ((hold_request_note.pub OR hold_request_note.staff) AND (h.id = hold_request_note.hold)) | |
Rows Removed by Filter: 2 | |
Buffers: shared hit=466 | |
-> Aggregate (cost=8.45..8.46 rows=1 width=16) (actual time=0.009..0.009 rows=1 loops=466) | |
Output: count(*), max(hold_notification.notify_time) | |
Buffers: shared hit=1594 | |
-> Index Scan using ahn_hold_idx on action.hold_notification (cost=0.42..8.44 rows=1 width=8) (actual time=0.006..0.007 rows=0 loops=466) | |
Output: hold_notification.id, hold_notification.hold, hold_notification.notify_staff, hold_notification.notify_time, hold_notification.method, hold_notification.note | |
Index Cond: (h.id = hold_notification.hold) | |
Buffers: shared hit=1594 | |
-> Aggregate (cost=252.95..252.96 rows=1 width=32) (actual time=0.041..0.041 rows=1 loops=466) | |
Output: first(display_entry.value) | |
Buffers: shared hit=2343 | |
-> Bitmap Heap Scan on metabib.display_entry (cost=4.91..252.45 rows=2 width=32) (actual time=0.019..0.021 rows=1 loops=466) | |
Output: display_entry.id, display_entry.source, display_entry.field, display_entry.value | |
Recheck Cond: (display_entry.source = r.bib_record) | |
Filter: (display_entry.field = t_field.field) | |
Rows Removed by Filter: 30 | |
Heap Blocks: exact=904 | |
Buffers: shared hit=2343 | |
-> Bitmap Index Scan on metabib_display_entry_source_idx (cost=0.00..4.91 rows=63 width=0) (actual time=0.010..0.010 rows=31 loops=466) | |
Index Cond: (display_entry.source = r.bib_record) | |
Buffers: shared hit=1439 | |
-> Aggregate (cost=252.95..252.96 rows=1 width=32) (actual time=0.013..0.013 rows=1 loops=466) | |
Output: first(display_entry_1.value) | |
Buffers: shared hit=2343 | |
-> Bitmap Heap Scan on metabib.display_entry display_entry_1 (cost=4.91..252.45 rows=2 width=32) (actual time=0.006..0.008 rows=1 loops=466) | |
Output: display_entry_1.id, display_entry_1.source, display_entry_1.field, display_entry_1.value | |
Recheck Cond: (display_entry_1.source = r.bib_record) | |
Filter: (display_entry_1.field = a_field.field) | |
Rows Removed by Filter: 30 | |
Heap Blocks: exact=904 | |
Buffers: shared hit=2343 | |
-> Bitmap Index Scan on metabib_display_entry_source_idx (cost=0.00..4.91 rows=63 width=0) (actual time=0.003..0.003 rows=31 loops=466) | |
Index Cond: (display_entry_1.source = r.bib_record) | |
Buffers: shared hit=1439 | |
-> Aggregate (cost=252.95..252.96 rows=1 width=32) (actual time=0.010..0.011 rows=1 loops=466) | |
Output: first(display_entry_2.value) | |
Buffers: shared hit=2343 | |
-> Bitmap Heap Scan on metabib.display_entry display_entry_2 (cost=4.91..252.45 rows=2 width=32) (actual time=0.007..0.007 rows=0 loops=466) | |
Output: display_entry_2.id, display_entry_2.source, display_entry_2.field, display_entry_2.value | |
Recheck Cond: (display_entry_2.source = r.bib_record) | |
Filter: (display_entry_2.field = s_field.field) | |
Rows Removed by Filter: 31 | |
Heap Blocks: exact=904 | |
Buffers: shared hit=2343 | |
-> Bitmap Index Scan on metabib_display_entry_source_idx (cost=0.00..4.91 rows=63 width=0) (actual time=0.003..0.003 rows=31 loops=466) | |
Index Cond: (display_entry_2.source = r.bib_record) | |
Buffers: shared hit=1439 | |
-> Function Scan on actor.org_unit_ancestor_setting default_estimated_wait_interval (cost=0.25..0.26 rows=1 width=32) (actual time=0.085..0.085 rows=0 loops=466) | |
Output: default_estimated_wait_interval.id, default_estimated_wait_interval.org_unit, default_estimated_wait_interval.name, default_estimated_wait_interval.value | |
Function Call: actor.org_unit_ancestor_setting('circ.holds.default_estimated_wait_interval'::text, u.home_ou) | |
Buffers: shared hit=4271 | |
-> Function Scan on actor.org_unit_ancestor_setting min_estimated_wait_interval (cost=0.25..0.26 rows=1 width=32) (actual time=0.037..0.037 rows=0 loops=466) | |
Output: min_estimated_wait_interval.id, min_estimated_wait_interval.org_unit, min_estimated_wait_interval.name, min_estimated_wait_interval.value | |
Function Call: actor.org_unit_ancestor_setting('circ.holds.min_estimated_wait_interval'::text, u.home_ou) | |
Buffers: shared hit=4194 | |
-> Function Scan on actor.org_unit_ancestor_setting hold_wait_time (cost=0.25..0.26 rows=1 width=32) (actual time=0.036..0.036 rows=1 loops=466) | |
Output: hold_wait_time.id, hold_wait_time.org_unit, hold_wait_time.name, hold_wait_time.value | |
Function Call: actor.org_unit_ancestor_setting('circ.hold_shelf_status_delay'::text, h.pickup_lib) | |
Buffers: shared hit=4194 | |
-> Aggregate (cost=59.55..59.56 rows=1 width=24) (actual time=0.060..0.060 rows=1 loops=466) | |
Output: count(*), count(DISTINCT m.hold), sum(date_part('epoch'::text, COALESCE(cm.avg_wait_time, (COALESCE(NULLIF(btrim(default_estimated_wait_interval.value, '"'::text), ''::text), '0 seconds'::text))::interval))) | |
Buffers: shared hit=14869 | |
-> Nested Loop Left Join (cost=0.85..59.47 rows=4 width=20) (actual time=0.025..0.048 rows=4 loops=466) | |
Output: m.hold, cm.avg_wait_time | |
Inner Unique: true | |
Buffers: shared hit=14865 | |
-> Nested Loop (cost=0.71..58.86 rows=4 width=9) (actual time=0.018..0.036 rows=4 loops=466) | |
Output: m.hold, cp_2.circ_modifier | |
Buffers: shared hit=10893 | |
-> Index Only Scan using copy_once_per_hold on action.hold_copy_map m (cost=0.29..4.36 rows=4 width=12) (actual time=0.006..0.006 rows=4 loops=466) | |
Output: m.hold, m.target_copy | |
Index Cond: (m.hold = h.id) | |
Heap Fetches: 0 | |
Buffers: shared hit=944 | |
-> Append (cost=0.42..13.61 rows=2 width=13) (actual time=0.005..0.006 rows=1 loops=1986) | |
Buffers: shared hit=9949 | |
-> Index Scan using copy_pkey on asset.copy cp_2 (cost=0.42..8.44 rows=1 width=13) (actual time=0.004..0.005 rows=1 loops=1986) | |
Output: cp_2.id, cp_2.circ_modifier | |
Index Cond: (cp_2.id = m.target_copy) | |
Buffers: shared hit=7963 | |
-> Index Scan using unit_pkey on serial.unit cp_3 (cost=0.14..5.16 rows=1 width=40) (actual time=0.001..0.001 rows=0 loops=1986) | |
Output: cp_3.id, cp_3.circ_modifier | |
Index Cond: (cp_3.id = m.target_copy) | |
Buffers: shared hit=1986 | |
-> Index Scan using circ_modifier_pkey on config.circ_modifier cm (cost=0.14..0.15 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=1986) | |
Output: cm.code, cm.name, cm.description, cm.sip2_media_type, cm.magnetic_media, cm.avg_wait_time | |
Index Cond: (cp_2.circ_modifier = cm.code) | |
Buffers: shared hit=3972 | |
SubPlan 4 | |
-> Seq Scan on config.sms_carrier (cost=0.00..1.94 rows=1 width=16) (actual time=0.004..0.005 rows=0 loops=466) | |
Output: sms_carrier.name | |
Filter: (sms_carrier.id = h.sms_carrier) | |
Rows Removed by Filter: 75 | |
Buffers: shared hit=466 | |
Planning time: 11.796 ms | |
Execution time: 55787.143 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- EXPLAIN --(ANALYZE, COSTS, VERBOSE, BUFFERS) | |
WITH | |
t_field AS (SELECT field FROM config.display_field_map WHERE name = 'title'), | |
a_field AS (SELECT field FROM config.display_field_map WHERE name = 'author'), | |
s_field AS (SELECT field FROM config.display_field_map WHERE name = 'series_title') | |
SELECT h.id, h.request_time, h.capture_time, h.fulfillment_time, h.checkin_time, | |
h.return_time, h.prev_check_time, h.expire_time, h.cancel_time, h.cancel_cause, | |
h.cancel_note, h.target, h.current_copy, h.fulfillment_staff, h.fulfillment_lib, | |
h.request_lib, h.requestor, h.usr, h.selection_ou, h.selection_depth, h.pickup_lib, | |
h.hold_type, h.holdable_formats, h.phone_notify, h.email_notify, h.sms_notify, | |
(SELECT name FROM config.sms_carrier WHERE id = h.sms_carrier) AS "sms_carrier", | |
h.frozen, h.thaw_date, h.shelf_time, h.cut_in_line, h.mint_condition, | |
h.shelf_expire_time, h.current_shelf_lib, h.behind_desk, h.hopeless_date, | |
CASE WHEN h.cancel_time IS NOT NULL THEN 6 | |
WHEN h.frozen AND h.capture_time IS NULL THEN 7 | |
WHEN h.current_shelf_lib IS NOT NULL AND h.current_shelf_lib <> h.pickup_lib THEN 8 | |
WHEN h.fulfillment_time IS NOT NULL THEN 9 | |
WHEN h.current_copy IS NULL THEN 1 | |
WHEN h.capture_time IS NULL THEN 2 | |
WHEN cp.status = 6 THEN 3 | |
WHEN EXTRACT(EPOCH FROM COALESCE(NULLIF(BTRIM(hold_wait_time.value,'"'),''),'0 seconds')::INTERVAL) = 0 THEN 4 | |
WHEN h.shelf_time + COALESCE(NULLIF(BTRIM(hold_wait_time.value,'"'),''),'0 seconds')::INTERVAL > NOW() THEN 5 | |
ELSE 4 | |
END AS hold_status, | |
(h.shelf_expire_time < 'today'::timestamptz OR h.cancel_time IS NOT NULL OR (h.current_shelf_lib IS NOT NULL AND h.current_shelf_lib <> h.pickup_lib)) AS clear_me, | |
(h.usr <> h.requestor) AS is_staff_hold, | |
cc.id AS cc_id, cc.label AS cc_label, | |
pl.id AS pl_id, pl.parent_ou AS pl_parent_ou, pl.ou_type AS pl_ou_type, | |
pl.ill_address AS pl_ill_address, pl.holds_address AS pl_holds_address, | |
pl.mailing_address AS pl_mailing_address, pl.billing_address AS pl_billing_address, | |
pl.shortname AS pl_shortname, pl.name AS pl_name, pl.email AS pl_email, | |
pl.phone AS pl_phone, pl.opac_visible AS pl_opac_visible, pl.fiscal_calendar AS pl_fiscal_calendar, | |
tr.id AS tr_id, tr.source_send_time AS tr_source_send_time, tr.dest_recv_time AS tr_dest_recv_time, | |
tr.target_copy AS tr_target_copy, tr.source AS tr_source, tr.dest AS tr_dest, tr.prev_hop AS tr_prev_hop, | |
tr.copy_status AS tr_copy_status, tr.persistant_transfer AS tr_persistant_transfer, | |
tr.prev_dest AS tr_prev_dest, tr.hold AS tr_hold, tr.cancel_time AS tr_cancel_time, | |
notes.count AS note_count, | |
u.id AS usr_id, u.card AS usr_card, u.profile AS usr_profile, u.usrname AS usr_usrname, | |
u.email AS usr_email, u.standing AS usr_standing, u.ident_type AS usr_ident_type, | |
u.ident_value AS usr_ident_value, u.ident_type2 AS usr_ident_type2, | |
u.ident_value2 AS usr_ident_value2, u.net_access_level AS usr_net_access_level, | |
u.photo_url AS usr_photo_url, u.prefix AS usr_prefix, u.first_given_name AS usr_first_given_name, | |
u.second_given_name AS usr_second_given_name, u.family_name AS usr_family_name, | |
u.suffix AS usr_suffix, u.alias AS usr_alias, u.day_phone AS usr_day_phone, | |
u.evening_phone AS usr_evening_phone, u.other_phone AS usr_other_phone, | |
u.mailing_address AS usr_mailing_address, u.billing_address AS usr_billing_address, | |
u.home_ou AS usr_home_ou, u.dob AS usr_dob, u.active AS usr_active, | |
u.master_account AS usr_master_account, u.super_user AS usr_super_user, | |
u.barred AS usr_barred, u.deleted AS usr_deleted, u.juvenile AS usr_juvenile, | |
u.usrgroup AS usr_usrgroup, u.claims_returned_count AS usr_claims_returned_count, | |
u.credit_forward_balance AS usr_credit_forward_balance, u.last_xact_id AS usr_last_xact_id, | |
u.create_date AS usr_create_date, | |
u.expire_date AS usr_expire_date, u.claims_never_checked_out_count AS usr_claims_never_checked_out_count, | |
u.last_update_time AS usr_last_update_time, | |
CASE WHEN u.alias IS NOT NULL THEN | |
u.alias | |
ELSE | |
u.first_given_name | |
END AS usr_alias_or_first_given_name, | |
CASE WHEN u.alias IS NOT NULL THEN | |
u.alias | |
ELSE | |
REGEXP_REPLACE(ARRAY_TO_STRING(ARRAY[ | |
COALESCE(u.family_name, ''), | |
COALESCE(u.suffix, ''), | |
', ', | |
COALESCE(u.prefix, ''), | |
COALESCE(u.first_given_name, ''), | |
COALESCE(u.second_given_name, '') | |
], ' '), E'\s+,', ',') | |
END AS usr_alias_or_display_name, | |
REGEXP_REPLACE(ARRAY_TO_STRING(ARRAY[ | |
COALESCE(u.family_name, ''), | |
COALESCE(u.suffix, ''), | |
', ', | |
COALESCE(u.prefix, ''), | |
COALESCE(u.first_given_name, ''), | |
COALESCE(u.second_given_name, '') | |
], ' '), E'\s+,', ',') AS usr_display_name, | |
uc.id AS ucard_id, uc.barcode AS ucard_barcode, uc.usr AS ucard_usr, uc.active AS ucard_active, | |
ru.id AS rusr_id, ru.card AS rusr_card, ru.profile AS rusr_profile, ru.usrname AS rusr_usrname, | |
ru.email AS rusr_email, ru.standing AS rusr_standing, ru.ident_type AS rusr_ident_type, | |
ru.ident_value AS rusr_ident_value, ru.ident_type2 AS rusr_ident_type2, | |
ru.ident_value2 AS rusr_ident_value2, ru.net_access_level AS rusr_net_access_level, | |
ru.photo_url AS rusr_photo_url, ru.prefix AS rusr_prefix, ru.first_given_name AS rusr_first_given_name, | |
ru.second_given_name AS rusr_second_given_name, ru.family_name AS rusr_family_name, | |
ru.suffix AS rusr_suffix, ru.alias AS rusr_alias, ru.day_phone AS rusr_day_phone, | |
ru.evening_phone AS rusr_evening_phone, ru.other_phone AS rusr_other_phone, | |
ru.mailing_address AS rusr_mailing_address, ru.billing_address AS rusr_billing_address, | |
ru.home_ou AS rusr_home_ou, ru.dob AS rusr_dob, ru.active AS rusr_active, | |
ru.master_account AS rusr_master_account, ru.super_user AS rusr_super_user, | |
ru.barred AS rusr_barred, ru.deleted AS rusr_deleted, ru.juvenile AS rusr_juvenile, | |
ru.usrgroup AS rusr_usrgroup, ru.claims_returned_count AS rusr_claims_returned_count, | |
ru.credit_forward_balance AS rusr_credit_forward_balance, ru.last_xact_id AS rusr_last_xact_id, | |
ru.create_date AS rusr_create_date, | |
ru.expire_date AS rusr_expire_date, ru.claims_never_checked_out_count AS rusr_claims_never_checked_out_count, | |
ru.last_update_time AS rusr_last_update_time, | |
ruc.id AS rucard_id, ruc.barcode AS rucard_barcode, ruc.usr AS rucard_usr, ruc.active AS rucard_active, | |
cp.id AS cp_id, cp.circ_lib AS cp_circ_lib, cp.creator AS cp_creator, cp.call_number AS cp_call_number, | |
cp.editor AS cp_editor, cp.create_date AS cp_create_date, cp.edit_date AS cp_edit_date, | |
cp.copy_number AS cp_copy_number, cp.status AS cp_status, cp.location AS cp_location, | |
cp.loan_duration AS cp_loan_duration, cp.fine_level AS cp_fine_level, cp.age_protect AS cp_age_protect, | |
cp.circulate AS cp_circulate, cp.deposit AS cp_deposit, cp.ref AS cp_ref, cp.holdable AS cp_holdable, | |
cp.deposit_amount AS cp_deposit_amount, cp.price AS cp_price, cp.barcode AS cp_barcode, | |
cp.circ_modifier AS cp_circ_modifier, cp.circ_as_type AS cp_circ_as_type, cp.dummy_title AS cp_dummy_title, | |
cp.dummy_author AS cp_dummy_author, cp.alert_message AS cp_alert_message, cp.opac_visible AS cp_opac_visible, | |
cp.deleted AS cp_deleted, cp.floating AS cp_floating, cp.dummy_isbn AS cp_dummy_isbn, | |
cp.status_changed_time AS cp_status_change_time, cp.active_date AS cp_active_date, | |
cp.mint_condition AS cp_mint_condition, cp.cost AS cp_cost, | |
cs.id AS cs_id, cs.name AS cs_name, cs.holdable AS cs_holdable, cs.opac_visible AS cs_opac_visible, | |
cs.copy_active AS cs_copy_active, cs.restrict_copy_delete AS cs_restrict_copy_delete, | |
cs.is_available AS cs_is_available, | |
siss.label AS issuance_label, | |
cn.id AS cn_id, cn.creator AS cn_creator, cn.create_date AS cn_create_date, cn.editor AS cn_editor, | |
cn.edit_date AS cn_edit_date, cn.record AS cn_record, cn.owning_lib AS cn_owning_lib, cn.label AS cn_label, | |
cn.deleted AS cn_deleted, cn.prefix AS cn_prefix, cn.suffix AS cn_suffix, cn.label_class AS cn_label_class, | |
cn.label_sortkey AS cn_label_sortkey, | |
p.id AS p_id, p.record AS p_record, p.label AS p_label, p.label_sortkey AS p_label_sortkey, p.deleted AS p_deleted, | |
acnp.label AS ancp_label, acns.label AS ancs_label, | |
TRIM(acnp.label || ' ' || cn.label || ' ' || acns.label) AS cn_full_label, | |
r.bib_record AS record_id, | |
t.value AS title, | |
a.value AS author, | |
s.value AS series_title, | |
acpl.id AS acpl_id, acpl.name AS acpl_name, acpl.owning_lib AS acpl_owning_lib, acpl.holdable AS acpl_holdable, | |
acpl.hold_verify AS acpl_hold_verify, acpl.opac_visible AS acpl_opac_visible, acpl.circulate AS acpl_circulate, | |
acpl.label_prefix AS acpl_label_prefix, acpl.label_suffix AS acpl_label_suffix, | |
acpl.checkin_alert AS acpl_checkin_alert, acpl.deleted AS acpl_deleted, acpl.url AS acpl_url, | |
COALESCE(acplo.position, acpl_ordered.fallback_position) AS copy_location_order_position, | |
ROW_NUMBER() OVER ( | |
PARTITION BY r.bib_record | |
ORDER BY h.cut_in_line DESC NULLS LAST, h.request_time ASC | |
) AS relative_queue_position, | |
EXTRACT(EPOCH FROM COALESCE( | |
NULLIF(BTRIM(default_estimated_wait_interval.value,'"'),''), | |
'0 seconds' | |
)::INTERVAL) AS default_estimated_wait, | |
EXTRACT(EPOCH FROM COALESCE( | |
NULLIF(BTRIM(min_estimated_wait_interval.value,'"'),''), | |
'0 seconds' | |
)::INTERVAL) AS min_estimated_wait, | |
COALESCE(hold_wait.potenials,0) AS potentials, | |
COALESCE(hold_wait.other_holds,0) AS other_holds, | |
COALESCE(hold_wait.total_wait_time,0) AS total_wait_time, | |
n.count AS notification_count, | |
n.max AS last_notification_time | |
FROM action.hold_request h | |
JOIN reporter.hold_request_record r ON (r.id = h.id) | |
JOIN actor.usr u ON (u.id = h.usr) | |
JOIN actor.card uc ON (uc.id = u.card) | |
JOIN actor.usr ru ON (ru.id = h.requestor) | |
JOIN actor.card ruc ON (ruc.id = ru.card) | |
JOIN actor.org_unit pl ON (h.pickup_lib = pl.id) | |
JOIN t_field ON TRUE | |
JOIN a_field ON TRUE | |
JOIN s_field ON TRUE | |
LEFT JOIN action.hold_request_cancel_cause cc ON (h.cancel_cause = cc.id) | |
LEFT JOIN biblio.monograph_part p ON (h.hold_type = 'P' AND p.id = h.target) | |
LEFT JOIN serial.issuance siss ON (h.hold_type = 'I' AND siss.id = h.target) | |
LEFT JOIN asset.copy cp ON (h.current_copy = cp.id OR (h.hold_type IN ('C','F','R') AND cp.id = h.target)) | |
LEFT JOIN config.copy_status cs ON (cp.status = cs.id) | |
LEFT JOIN asset.copy_location acpl ON (cp.location = acpl.id) | |
LEFT JOIN asset.copy_location_order acplo ON (cp.location = acplo.location AND cp.circ_lib = acplo.org) | |
LEFT JOIN ( | |
SELECT *, (ROW_NUMBER() OVER (ORDER BY name) + 1000000) AS fallback_position | |
FROM asset.copy_location | |
) acpl_ordered ON (acpl_ordered.id = cp.location) | |
left JOIN asset.call_number cn ON ((cn.id = cp.call_number AND h.hold_type != 'V') OR (h.hold_type = 'V' AND cn.id = h.target)) | |
left JOIN asset.call_number_prefix acnp ON (cn.prefix = acnp.id) | |
left JOIN asset.call_number_suffix acns ON (cn.suffix = acns.id) | |
LEFT JOIN LATERAL (SELECT * FROM action.hold_transit_copy WHERE h.id = hold ORDER BY id DESC LIMIT 1) tr ON TRUE | |
LEFT JOIN LATERAL (SELECT COUNT(*) FROM action.hold_request_note WHERE h.id = hold AND (pub = TRUE OR staff = true)) notes ON TRUE | |
LEFT JOIN LATERAL (SELECT COUNT(*), MAX(notify_time) FROM action.hold_notification WHERE h.id = hold) n ON TRUE | |
LEFT JOIN LATERAL (SELECT FIRST(value) AS value FROM metabib.display_entry WHERE source = r.bib_record AND field = t_field.field) t ON TRUE | |
LEFT JOIN LATERAL (SELECT FIRST(value) AS value FROM metabib.display_entry WHERE source = r.bib_record AND field = a_field.field) a ON TRUE | |
LEFT JOIN LATERAL (SELECT FIRST(value) AS value FROM metabib.display_entry WHERE source = r.bib_record AND field = s_field.field) s ON TRUE | |
LEFT JOIN LATERAL actor.org_unit_ancestor_setting('circ.holds.default_estimated_wait_interval',u.home_ou) AS default_estimated_wait_interval ON TRUE | |
LEFT JOIN LATERAL actor.org_unit_ancestor_setting('circ.holds.min_estimated_wait_interval',u.home_ou) AS min_estimated_wait_interval ON TRUE | |
LEFT JOIN LATERAL actor.org_unit_ancestor_setting('circ.hold_shelf_status_delay',h.pickup_lib) AS hold_wait_time ON TRUE, | |
LATERAL ( | |
SELECT COUNT(*) AS potenials, | |
COUNT(DISTINCT hold) AS other_holds, | |
SUM( | |
EXTRACT(EPOCH FROM | |
COALESCE( | |
cm.avg_wait_time, | |
COALESCE(NULLIF(BTRIM(default_estimated_wait_interval.value,'"'),''),'0 seconds')::INTERVAL | |
) | |
) | |
) AS total_wait_time | |
FROM action.hold_copy_map m | |
JOIN asset.copy cp ON (cp.id = m.target_copy) | |
LEFT JOIN config.circ_modifier cm ON (cp.circ_modifier = cm.code) | |
WHERE m.hold = h.id | |
) AS hold_wait | |
WHERE (h.capture_time IS NULL OR (h.id = ( | |
SELECT id | |
FROM action.hold_request recheck | |
WHERE recheck.current_copy = cp.id | |
AND recheck.capture_time IS NOT NULL | |
ORDER BY capture_time DESC | |
LIMIT 1 | |
))) | |
AND cs.id = $_6019$8$_6019$ AND fulfillment_time IS NULL AND cp.deleted = $_6019$f$_6019$ AND capture_time IS NOT NULL AND current_shelf_lib = $_6019$102$_6019$ ORDER BY shelf_expire_time | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment