Skip to content

Commit c6f281b

Browse files
committed
ACP2E-1792: sales_clean_quotes cron job is not optimized for large amount of quotes
1 parent c31925f commit c6f281b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/code/Magento/Quote/etc/db_schema.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@
9797
<column name="store_id"/>
9898
<column name="is_active"/>
9999
</index>
100-
<index referenceId="QUOTE_STORE_ID" indexType="btree">
100+
<index referenceId="QUOTE_STORE_ID_UPDATED_AT" indexType="btree">
101101
<column name="store_id"/>
102+
<column name="updated_at"/>
102103
</index>
103104
</table>
104105
<table name="quote_address" resource="checkout" engine="innodb" comment="Sales Flat Quote Address">

app/code/Magento/Quote/etc/db_schema_whitelist.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
},
5454
"index": {
5555
"QUOTE_CUSTOMER_ID_STORE_ID_IS_ACTIVE": true,
56-
"QUOTE_STORE_ID": true
56+
"QUOTE_STORE_ID": true,
57+
"QUOTE_STORE_ID_UPDATED_AT": true
5758
},
5859
"constraint": {
5960
"PRIMARY": true,
@@ -121,7 +122,9 @@
121122
"vat_is_valid": true,
122123
"vat_request_id": true,
123124
"vat_request_date": true,
124-
"vat_request_success": true
125+
"vat_request_success": true,
126+
"validated_country_code": true,
127+
"validated_vat_number": true
125128
},
126129
"index": {
127130
"QUOTE_ADDRESS_QUOTE_ID": true

0 commit comments

Comments
 (0)