Skip to content

Commit

Permalink
Improved sql query performance via adding extra index. (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mavlyan authored and luckyraul committed Dec 27, 2019
1 parent 58479ad commit ce0f839
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .jeeves.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ Mygento:
columns: ['status']
IX_ORDER_ID:
columns: ['order_id']
IX_IS_SCHEDULED_SCHEDULED_AT:
columns: ['is_scheduled', 'scheduled_at']
IX_SALES_ENTITY_U:
type: 'unique'
columns: ['operation', 'sales_entity_increment_id', 'sales_entity_id']
Expand Down
2 changes: 1 addition & 1 deletion Plugin/ExtraSalesViewToolbarButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function isProperPageForKkmButtons($block)
strpos($block->getType(), 'Adminhtml\Order\Invoice\View')
||
strpos($block->getType(), 'Adminhtml\Order\Creditmemo\View')
)
)
);
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mygento/module-kkm",
"type": "magento2-module",
"version": "2.3.6",
"version": "2.3.7",
"license": "OSL-3.0",
"description": "Модуль интеграции фискальных кассовых аппаратов для Magento в соответствии с 54-ФЗ",
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<index referenceId="IX_ORDER_ID" indexType="btree">
<column name="order_id"/>
</index>
<index referenceId="IX_IS_SCHEDULED_SCHEDULED_AT" indexType="btree">
<column name="is_scheduled"/>
<column name="scheduled_at"/>
</index>
<constraint xsi:type="unique" referenceId="IX_SALES_ENTITY_U">
<column name="operation"/>
<column name="sales_entity_increment_id"/>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Mygento_Kkm" setup_version="2.3.6">
<module name="Mygento_Kkm" setup_version="2.3.7">
<sequence>
<module name="Mygento_Base"/>
</sequence>
Expand Down

0 comments on commit ce0f839

Please sign in to comment.