Flipkart Indexes Modification:
proxy_flipkart_v3line_item:
drop index orderId on proxy_flipkart_v3line_item;
(Not used)
proxy_flipkart_v3manifest:
drop index ManifestId on proxy_flipkart_v3manifest;
(Duplicate)
order_notifications:
create INDEX INDEX_VENDOR_ID_ORDER_TYPE_IS_SYNCED_VERSION_CREATED_AT_LAST_SYNC_TRY_TIME on order_notifications(vendor_id, order_type, is_synced, version, created_at, last_sync_try_time);
drop index INDEX_VENDOR_ID_ORDER_TYPE_IS_SYNCED_VERSION_CREATED_AT on order_notifications;
proxy_flipkart_v3order:
create INDEX statusProcessingTimeClientLocationLastTriedTime on proxy_flipkart_v3order(status, start_processing_time, client_id, location_code, last_tried_time);
drop index statusProcessingTimeClientLocation on proxy_flipkart_v3order;
proxy_push_order:
ALTER TABLE proxy_push_order ADD CONSTRAINT UK_SHIPMENT_ID_VENDOR_ID UNIQUE(shipment_id, vendor_id
);ALTER TABLE proxy_push_order DROP CONSTRAINT UKoi5t2v25wjrvoexx8i1bqdne4;
drop INDEX getOrders from proxy_push_order;
return_notifications:
create INDEX INDEX_VENDOR_ID_IS_SYNCED_VERSION_CREATED_AT_LAST_SYNC_TRY_TIME on return_notifications(vendor_id,is_synced,version,created_at,last_sync_try_time);
drop INDEX INDEX_VENDOR_ID_IS_SYNCED_VERSION_CREATED_AT on return_notifications;
proxy_return_order:
create INDEX INDEX_ORDER_ITEM_ID_VENDOR_ID_RETURN_ID_PROXY_RETURN_ORDER_ID on proxy_return_order(order_item_id,vendor_id,return_id,proxy_return_order_id);
drop INDEX fetchReturnOrders on proxy_return_order;