Skip to content

Commit b45ef30

Browse files
committed
MAGETWO-90808: [Performance] Customer Import check data does not complete
1 parent 38cabd3 commit b45ef30

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

app/code/Magento/CustomerImportExport/Model/Import/Address.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,6 @@ class Address extends AbstractCustomer
168168
*/
169169
protected $_attributeCollection;
170170

171-
/**
172-
* Collection of existent addresses
173-
*
174-
* @var \Magento\Customer\Model\ResourceModel\Address\Collection
175-
* @deprecated
176-
*/
177-
protected $_addressCollection;
178-
179171
/**
180172
* Store imported row primary keys
181173
*

app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer/Storage.php

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515

1616
class Storage
1717
{
18-
/**
19-
* Flag to not load collection more than one time
20-
*
21-
* @var bool
22-
* @deprecated
23-
*/
24-
protected $_isCollectionLoaded = false;
25-
26-
/**
27-
* Customer collection
28-
*
29-
* @var \Magento\Customer\Model\ResourceModel\Customer\Collection
30-
* @deprecated
31-
*/
32-
protected $_customerCollection;
33-
3418
/**
3519
* Existing customers information. In form of:
3620
*
@@ -84,28 +68,6 @@ public function __construct(
8468
$this->customerCollectionFactory = $collectionFactory;
8569
}
8670

87-
/**
88-
* Load needed data from customer collection
89-
*
90-
* @return void
91-
* @deprecated
92-
* @see prepareCustomers
93-
*/
94-
public function load()
95-
{
96-
if ($this->_isCollectionLoaded == false) {
97-
$connection = $this->_customerCollection->getConnection();
98-
$select = $connection->select();
99-
$select->from($this->_customerCollection->getMainTable(), ['entity_id', 'website_id', 'email']);
100-
$results = $connection->fetchAll($select);
101-
foreach ($results as $customer) {
102-
$this->addCustomerByArray($customer);
103-
}
104-
105-
$this->_isCollectionLoaded = true;
106-
}
107-
}
108-
10971
/**
11072
* Create new collection to load customer data with proper filters.
11173
*

0 commit comments

Comments
 (0)