Skip to content

Commit a1f7583

Browse files
author
Anna Bukatar
committed
ACP2E-963: setup:upgrade is changing indexer mode to save from schedule slowing it down immensely
1 parent 1607e87 commit a1f7583

File tree

4 files changed

+56
-2
lines changed

4 files changed

+56
-2
lines changed

lib/internal/Magento/Framework/Mview/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2525
*/
26-
class View extends DataObject implements ViewInterface
26+
class View extends DataObject implements ViewExtendedInterface
2727
{
2828
/**
2929
* Default batch size for partial reindex

lib/internal/Magento/Framework/Mview/View/Subscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2222
*/
23-
class Subscription implements SubscriptionInterface
23+
class Subscription implements SubscriptionExtendedInterface
2424
{
2525
/**
2626
* Database connection
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Framework\Mview\View;
9+
10+
use Magento\Framework\DB\Ddl\Trigger;
11+
12+
/**
13+
* Extended Interface of \Magento\Framework\Mview\View\SubscriptionInterface
14+
*/
15+
interface SubscriptionExtendedInterface extends SubscriptionInterface
16+
{
17+
/**
18+
* Get all triggers for the subscription
19+
*
20+
* @return Trigger[]
21+
*/
22+
public function getTriggers();
23+
24+
/**
25+
* Save a trigger to the DB
26+
*
27+
* @param Trigger $trigger
28+
* @return void
29+
* @throws \Zend_Db_Exception
30+
*/
31+
public function saveTrigger(Trigger $trigger);
32+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Framework\Mview;
9+
10+
/**
11+
* Extended Interface of \Magento\Framework\Mview\ViewInterface
12+
*/
13+
interface ViewExtendedInterface extends ViewInterface
14+
{
15+
/**
16+
* Initializes Subscription instance
17+
*
18+
* @param array $subscriptionConfig
19+
* @return \Magento\Framework\Mview\View\SubscriptionInterface
20+
*/
21+
public function initSubscriptionInstance(array $subscriptionConfig);
22+
}

0 commit comments

Comments
 (0)