如何在 Magento 中上传批量产品(不是来自 import/export 选项)

How to upload bulk products in Magento (not from import/export option)

我想将大量产品上传到我的 magento 商店。 例如 - 超过 200 000 - 300 000。

我已经搜索了很多选项,比如 MAGMI,也从 magento 后端搜索了 import/export 选项。

但在这种情况下这不是一个好的解决方案..

我研究了一些 sql 可以提供相当快的操作。

参考。

http://www.extensionhut.com/blog/magento-direct-sql-queries/

http://fishpig.co.uk/magento/tutorials/direct-sql-queries/

因为我是这个 magento 环境的新手。我不知道如何以及在哪里放置这段代码和磁电机以及执行这段代码。我需要为此创建一个模块吗?我怎样才能 运行 这个代码?

对于来自 CSV 文件的大量数据 - 遵循此 article

BULK INSERT dbo.TableForBulkData
FROM 'C:\BulkDataFile.csv'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)

嗨下面是根据我的要求和新的 magento 开发人员在外部或没有磁模块的情况下编写 mysql 查询的脚本。

<?php

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require_once("app/Mage.php");
//umask(0);

Mage::app('default');
$connection = Mage::getSingleton('core/resource')->getConnection('core_write'); 
$sql="select * from catalog_product_entity WHERE sku='demoproduct001'";
$value=$connection->query($sql); 
while ($row = $value->fetch())
 { 
print_r($row); 

echo "entity_id : ".$entity_id=$row['entity_id'];
 };

$sql1 = "UPDATE `catalog_product_entity_varchar` SET value='Demo Product1 New Content here ' WHERE attribute_id ='82' AND entity_id = ".$entity_id; 
$connection->query($sql1);

$sql3="select * from catalog_product_entity_varchar WHERE attribute_id ='82' AND entity_id = ".$entity_id;
$value=$connection->query($sql3); 
while ($row = $value->fetch())
 { 
print_r($row); 
 };

?>