Duplicate Indexes
These indexes exist, but aren’t needed. Remove them for faster writes.
rails generate migration remove_unneeded_indexes
And paste
remove_index :connexx_shipment_packages, name: "idx_csp_shipment_id", column: :shipment_id remove_index :connexx_shipment_packages, name: "idx_tracking_code_trgm", column: :"tracking_code gin_trgm_ops" remove_index :connexx_shipments, name: "connexx_shipments_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2022_10, name: "connexx_shipments_new_2022_10_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2022_10, name: "connexx_shipments_new_2022_10_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2022_10, name: "connexx_shipments_new_2022_10_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2022_11, name: "connexx_shipments_new_2022_11_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2022_11, name: "connexx_shipments_new_2022_11_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2022_11, name: "connexx_shipments_new_2022_11_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2022_12, name: "connexx_shipments_new_2022_12_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2022_12, name: "connexx_shipments_new_2022_12_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2022_12, name: "connexx_shipments_new_2022_12_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_01, name: "connexx_shipments_new_2023_01_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_01, name: "connexx_shipments_new_2023_01_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_01, name: "connexx_shipments_new_2023_01_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_02, name: "connexx_shipments_new_2023_02_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_02, name: "connexx_shipments_new_2023_02_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_02, name: "connexx_shipments_new_2023_02_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_03, name: "connexx_shipments_new_2023_03_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_03, name: "connexx_shipments_new_2023_03_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_03, name: "connexx_shipments_new_2023_03_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_04, name: "connexx_shipments_new_2023_04_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_04, name: "connexx_shipments_new_2023_04_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_04, name: "connexx_shipments_new_2023_04_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_05, name: "connexx_shipments_new_2023_05_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_05, name: "connexx_shipments_new_2023_05_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_05, name: "connexx_shipments_new_2023_05_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_06, name: "connexx_shipments_new_2023_06_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_06, name: "connexx_shipments_new_2023_06_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_06, name: "connexx_shipments_new_2023_06_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_07, name: "connexx_shipments_new_2023_07_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_07, name: "connexx_shipments_new_2023_07_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_07, name: "connexx_shipments_new_2023_07_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_08, name: "connexx_shipments_new_2023_08_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_08, name: "connexx_shipments_new_2023_08_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_08, name: "connexx_shipments_new_2023_08_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_09, name: "connexx_shipments_new_2023_09_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_09, name: "connexx_shipments_new_2023_09_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_09, name: "connexx_shipments_new_2023_09_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_10, name: "connexx_shipments_new_2023_10_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_10, name: "connexx_shipments_new_2023_10_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_10, name: "connexx_shipments_new_2023_10_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_11, name: "connexx_shipments_new_2023_11_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_11, name: "connexx_shipments_new_2023_11_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_11, name: "connexx_shipments_new_2023_11_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2023_12, name: "connexx_shipments_new_2023_12_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2023_12, name: "connexx_shipments_new_2023_12_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2023_12, name: "connexx_shipments_new_2023_12_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_01, name: "connexx_shipments_new_2024_01_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_01, name: "connexx_shipments_new_2024_01_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_01, name: "connexx_shipments_new_2024_01_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_02, name: "connexx_shipments_new_2024_02_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_02, name: "connexx_shipments_new_2024_02_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_02, name: "connexx_shipments_new_2024_02_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_03, name: "connexx_shipments_new_2024_03_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_03, name: "connexx_shipments_new_2024_03_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_03, name: "connexx_shipments_new_2024_03_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_04, name: "connexx_shipments_new_2024_04_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_04, name: "connexx_shipments_new_2024_04_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_04, name: "connexx_shipments_new_2024_04_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_05, name: "connexx_shipments_new_2024_05_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_05, name: "connexx_shipments_new_2024_05_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_05, name: "connexx_shipments_new_2024_05_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_06, name: "connexx_shipments_new_2024_06_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_06, name: "connexx_shipments_new_2024_06_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_06, name: "connexx_shipments_new_2024_06_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_07, name: "connexx_shipments_new_2024_07_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_07, name: "connexx_shipments_new_2024_07_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_07, name: "connexx_shipments_new_2024_07_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_08, name: "connexx_shipments_new_2024_08_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_08, name: "connexx_shipments_new_2024_08_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_08, name: "connexx_shipments_new_2024_08_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_09, name: "connexx_shipments_new_2024_09_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_09, name: "connexx_shipments_new_2024_09_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_09, name: "connexx_shipments_new_2024_09_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_10, name: "connexx_shipments_new_2024_10_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_10, name: "connexx_shipments_new_2024_10_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_10, name: "connexx_shipments_new_2024_10_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_11, name: "connexx_shipments_new_2024_11_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_11, name: "connexx_shipments_new_2024_11_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_11, name: "connexx_shipments_new_2024_11_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2024_12, name: "connexx_shipments_new_2024_12_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2024_12, name: "connexx_shipments_new_2024_12_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2024_12, name: "connexx_shipments_new_2024_12_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :connexx_shipments_new_2025_01, name: "connexx_shipments_new_2025_01_id_idx1", column: [:"id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text", :"'ERROR'::text])"] remove_index :connexx_shipments_new_2025_01, name: "connexx_shipments_new_2025_01_lower_idx", column: :"lower((order_number)::text)" remove_index :connexx_shipments_new_2025_01, name: "connexx_shipments_new_2025_01_sales_account_id_created_date_idx", column: [:sales_account_id, :created_date] remove_index :consignment_imports, name: "ci_sales_account_id_idx", column: :sales_account_id remove_index :currency, name: "idx_currency_id", column: :id remove_index :currency, name: "idx_currency", column: :id remove_index :financial_company, name: "idx_financial_company_id", column: :id remove_index :flattened_shipments, name: "idx_flattened_created_day", column: :created_date_day remove_index :flattened_shipments, name: "idx_flattened_created_month", column: :created_date_month remove_index :flattened_shipments, name: "idx_flattened_created_week", column: :created_date_week remove_index :intl_consignments_surcharges_transactions, name: "icst_supplier_linked_invoice_id_index", column: :supplier_linked_invoice_id remove_index :purchase_account_transactions, name: "index_pth_transaction_date", column: :transaction_date remove_index :sales_account, name: "idx_sa_manager_structure", column: :account_manager_structure_id remove_index :sales_account_shipping_whitelist, name: "sales_account_shipping_whitelist_sales_account_id_index", column: :sales_account_id remove_index :sales_account_transactions, name: "slt_sales_acc_ind", column: :sales_account_id remove_index :surcharge_types, name: "idx_surcharge_types_code", column: :code remove_index :system_user, name: "idx_system_user_id", column: :id remove_index :uk_ecommerce_consignment_surcharges, name: "ukecs_supplier_invoice_id_index", column: :supplier_linked_invoice_id remove_index :uk_ecommerce_consignments, name: "dom_con_sa_id_idx", column: :sales_account_id remove_index :uk_ecommerce_consignments, name: "dom_con_supplier_invoice_id_idx", column: :supplier_linked_invoice_id remove_index :uk_ecommerce_supplier_invoice, name: "idx_ukesi_supplier_account_id", column: :supplier_account_id remove_index :uk_postcodes_april_2025, name: "idx_postcodes_latlng_group", column: [:lat_group, :lng_group]
| Details |
|---|
On connexx_shipment_packages
idx_csp_shipment_id (shipment_id)is covered by idx_on_packages_shipment_id_created_date (shipment_id, created_date DESC) |
On connexx_shipment_packages
idx_tracking_code_trgm (tracking_code gin_trgm_ops)is covered by idx_tracking_code_partial (tracking_code gin_trgm_ops) |
On connexx_shipments
connexx_shipments_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by idx_connexx_shipments_filter (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2022_10
connexx_shipments_new_2022_10_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2022_10_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2022_10
connexx_shipments_new_2022_10_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2022_10_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2022_10
connexx_shipments_new_2022_10_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2022_10_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2022_11
connexx_shipments_new_2022_11_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2022_11_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2022_11
connexx_shipments_new_2022_11_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2022_11_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2022_11
connexx_shipments_new_2022_11_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2022_11_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2022_12
connexx_shipments_new_2022_12_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2022_12_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2022_12
connexx_shipments_new_2022_12_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2022_12_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2022_12
connexx_shipments_new_2022_12_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2022_12_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_01
connexx_shipments_new_2023_01_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_01_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_01
connexx_shipments_new_2023_01_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_01_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_01
connexx_shipments_new_2023_01_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_01_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_02
connexx_shipments_new_2023_02_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_02_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_02
connexx_shipments_new_2023_02_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_02_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_02
connexx_shipments_new_2023_02_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_02_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_03
connexx_shipments_new_2023_03_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_03_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_03
connexx_shipments_new_2023_03_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_03_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_03
connexx_shipments_new_2023_03_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_03_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_04
connexx_shipments_new_2023_04_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_04_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_04
connexx_shipments_new_2023_04_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_04_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_04
connexx_shipments_new_2023_04_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_04_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_05
connexx_shipments_new_2023_05_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_05_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_05
connexx_shipments_new_2023_05_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_05_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_05
connexx_shipments_new_2023_05_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_05_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_06
connexx_shipments_new_2023_06_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_06_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_06
connexx_shipments_new_2023_06_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_06_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_06
connexx_shipments_new_2023_06_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_06_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_07
connexx_shipments_new_2023_07_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_07_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_07
connexx_shipments_new_2023_07_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_07_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_07
connexx_shipments_new_2023_07_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_07_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_08
connexx_shipments_new_2023_08_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_08_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_08
connexx_shipments_new_2023_08_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_08_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_08
connexx_shipments_new_2023_08_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_08_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_09
connexx_shipments_new_2023_09_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_09_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_09
connexx_shipments_new_2023_09_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_09_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_09
connexx_shipments_new_2023_09_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_09_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_10
connexx_shipments_new_2023_10_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_10_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_10
connexx_shipments_new_2023_10_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_10_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_10
connexx_shipments_new_2023_10_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_10_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_11
connexx_shipments_new_2023_11_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_11_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_11
connexx_shipments_new_2023_11_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_11_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_11
connexx_shipments_new_2023_11_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_11_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2023_12
connexx_shipments_new_2023_12_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2023_12_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2023_12
connexx_shipments_new_2023_12_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2023_12_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2023_12
connexx_shipments_new_2023_12_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2023_12_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_01
connexx_shipments_new_2024_01_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_01_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_01
connexx_shipments_new_2024_01_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_01_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_01
connexx_shipments_new_2024_01_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_01_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_02
connexx_shipments_new_2024_02_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_02_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_02
connexx_shipments_new_2024_02_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_02_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_02
connexx_shipments_new_2024_02_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_02_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_03
connexx_shipments_new_2024_03_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_03_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_03
connexx_shipments_new_2024_03_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_03_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_03
connexx_shipments_new_2024_03_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_03_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_04
connexx_shipments_new_2024_04_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_04_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_04
connexx_shipments_new_2024_04_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_04_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_04
connexx_shipments_new_2024_04_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_04_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_05
connexx_shipments_new_2024_05_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_05_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_05
connexx_shipments_new_2024_05_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_05_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_05
connexx_shipments_new_2024_05_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_05_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_06
connexx_shipments_new_2024_06_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_06_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_06
connexx_shipments_new_2024_06_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_06_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_06
connexx_shipments_new_2024_06_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_06_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_07
connexx_shipments_new_2024_07_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_07_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_07
connexx_shipments_new_2024_07_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_07_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_07
connexx_shipments_new_2024_07_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_07_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_08
connexx_shipments_new_2024_08_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_08_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_08
connexx_shipments_new_2024_08_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_08_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_08
connexx_shipments_new_2024_08_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_08_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_09
connexx_shipments_new_2024_09_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_09_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_09
connexx_shipments_new_2024_09_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_09_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_09
connexx_shipments_new_2024_09_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_09_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_10
connexx_shipments_new_2024_10_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_10_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_10
connexx_shipments_new_2024_10_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_10_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_10
connexx_shipments_new_2024_10_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_10_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_11
connexx_shipments_new_2024_11_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_11_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_11
connexx_shipments_new_2024_11_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_11_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_11
connexx_shipments_new_2024_11_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_11_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2024_12
connexx_shipments_new_2024_12_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2024_12_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2024_12
connexx_shipments_new_2024_12_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2024_12_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2024_12
connexx_shipments_new_2024_12_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2024_12_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On connexx_shipments_new_2025_01
connexx_shipments_new_2025_01_id_idx1 (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text]))is covered by connexx_shipments_new_2025_01_id_idx (id WHERE upper((status)::text) <> ALL (ARRAY['CANCELLED'::text, 'ERROR'::text])) |
On connexx_shipments_new_2025_01
connexx_shipments_new_2025_01_lower_idx (lower((order_number)::text))is covered by connexx_shipments_new_2025_01_lower_shipment_source_name_sa_idx (lower((order_number)::text), shipment_source_name, sales_account_id, status) |
On connexx_shipments_new_2025_01
connexx_shipments_new_2025_01_sales_account_id_created_date_idx (sales_account_id, created_date)is covered by connexx_shipments_new_2025_01_sales_account_id_created_dat_idx1 (sales_account_id, created_date, shipment_type, status) |
On consignment_imports
ci_sales_account_id_idx (sales_account_id)is covered by idx_ci_sa_created_date (sales_account_id, created_date_date) |
On currency
idx_currency_id (id)is covered by currency_pk (id) |
On currency
idx_currency (id)is covered by currency_pk (id) |
On financial_company
idx_financial_company_id (id)is covered by fin_comp_pk (id) |
On flattened_shipments
idx_flattened_created_day (created_date_day)is covered by idx_flattened_day_account_status (created_date_day, sales_account_id, status) |
On flattened_shipments
idx_flattened_created_month (created_date_month)is covered by idx_created_month_status_customer (created_date_month, status, customer_name) |
On flattened_shipments
idx_flattened_created_week (created_date_week)is covered by idx_created_week_status_customer (created_date_week, status, customer_name) |
On intl_consignments_surcharges_transactions
icst_supplier_linked_invoice_id_index (supplier_linked_invoice_id)is covered by idx_icst_siid_cons_surch (supplier_linked_invoice_id, consignment_id, consignment_surcharge_id) |
On purchase_account_transactions
index_pth_transaction_date (transaction_date)is covered by idx_pat_txdate_flags (transaction_date, reversal_user, status, financial_company) |
On sales_account
idx_sa_manager_structure (account_manager_structure_id)is covered by idx_sales_account_structure (account_manager_structure_id, sales_person_structure_id) |
On sales_account_shipping_whitelist
sales_account_shipping_whitelist_sales_account_id_index (sales_account_id)is covered by idx_sales_account_whitelist_multi (sales_account_id, status, from_weight, to_weight, carrier_id, supplier_id, tariff_id, service_id) |
On sales_account_transactions
slt_sales_acc_ind (sales_account_id)is covered by active_sat_index (sales_account_id, financial_company, status, reversal_user, reversed_by, original_id, transaction_category) |
On surcharge_types
idx_surcharge_types_code (code)is covered by surcharge_types_code_key (code) |
On system_user
idx_system_user_id (id)is covered by system_users_pk (id) |
On uk_ecommerce_consignment_surcharges
ukecs_supplier_invoice_id_index (supplier_linked_invoice_id)is covered by idx_ukecs_siid_charge_client_tariff (supplier_linked_invoice_id, charge_type, client, tariff_id) |
On uk_ecommerce_consignments
dom_con_sa_id_idx (sales_account_id)is covered by idx_ukec_sa_svc_created_desc (sales_account_id, service_id, created_date DESC) INCLUDE (sales_price) |
On uk_ecommerce_consignments
dom_con_supplier_invoice_id_idx (supplier_linked_invoice_id)is covered by idx_ukec_siid_client (supplier_linked_invoice_id, client) |
On uk_ecommerce_supplier_invoice
idx_ukesi_supplier_account_id (supplier_account_id)is covered by idx_ukesi_supplier_account_purchase_tx (supplier_account_id, purchase_transaction_id) |
On uk_postcodes_april_2025
idx_postcodes_latlng_group (lat_group, lng_group)is covered by idx_uk_postcodes_grouping (lat_group, lng_group, postcode_prefix) |