I exported this file and used my suppliers list to create the new file.
I made a .xls file of 18mb with just under 40,000 products.
However it would fail to import every time. No errors, just looks like its uploading then the browser says done.
But no new prods in my store. I have checked my php config and it's only got 64M memory_limit so I am suspecting this may be the issue here. My file works fine when I chop it down to 100 prods ( so its not my file)
Anyway I decided to restore my original file (400 prods) but upon import I kept getting an error.
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Sweetie.jpg',1,39.99,'2010-08-12 18:20:26','0000-00-00 00:00:00','2010-08-11',' at line 1
Error No: 1064
SO I guessed that it has a problem importing image names with a ' (apostrophe) in them. I had to delete every image name with a ' in it and I got it back up.
Please is there a fix for both of these?? or do I have to resort to asking my host for an increase in memory limit and not using image names with ' in them??
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
It would be possible to write up an Import tool which uses CSV files, much lilke Zencart, but in that case we might as well use PHPMyAdmin which, as far as I know, allows the import of individual DB tables from CSV files, too.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
RLimitMem 128000000
Hope it helps.
Now everything is working

if you figure out a way to optimize the queries better let us know. Also the categories query is already cached if you are on 1.4.9 or later.biz0wn wrote: Now everything is workingWhen I open main page or category first time, it is quite slow. So I am going to optimize queries, then make 3 different product_description tables for each language and then make cashing for main and category pages with about 2 hours of live time.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Surely there are some performance issue when you load lot of products in OC. I see that five times slower with my 11,000+ products compared to the demo content.
Extensions: Multi-vendor extension
Shipping Modules: SuperShip Pro
Multi-Vendor Marketplace:Opencartmarketplace.com
IceCat to Opencart: Import millions of IceCat products to Opencart
well concidering you have 1000 times more products I don't think a five times decrease is unreasonable.cartpro wrote: Surely there are some performance issue when you load lot of products in OC. I see that five times slower with my 11,000+ products compared to the demo content.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I see many places OC uses distinct which should be removed. Also, I think the caching should be moved to the controller level and cache the rendered html output rather than db query result. Isn't it reading from the disk is slower than reading from DB?
Extensions: Multi-vendor extension
Shipping Modules: SuperShip Pro
Multi-Vendor Marketplace:Opencartmarketplace.com
IceCat to Opencart: Import millions of IceCat products to Opencart
I don't think you understand what DISTINCT does it's there for a reason. unless you want your products to show up multiple times for no reason. No reading from the db is not faster than reading from the hard drive. That's the whole point of caching. Yes of course you can cache in ram which is the fastest, but not really feasible particularly on very large sites.cartpro wrote:Well, if it performs same as other carts, then what is the real differentiator other than MVC model?
I see many places OC uses distinct which should be removed. Also, I think the caching should be moved to the controller level and cache the rendered html output rather than db query result. Isn't it reading from the disk is slower than reading from DB?
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Hey, I am no expect in MySQL but in Micrsoft SQL this is the worst performing query that too when you use DISTINCT *.
Also, I saw increase in speed when I remove the DISTINCT in Zencart.
Code: Select all
public function getProduct($product_id) {
$query = $this->db->query("SELECT DISTINCT *, pd.name AS name, p.image, m.name AS manufacturer, ss.name AS stock FROM " . DB_PREFIX . "product p LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) LEFT JOIN " . DB_PREFIX . "product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN " . DB_PREFIX . "manufacturer m ON (p.manufacturer_id = m.manufacturer_id) LEFT JOIN " . DB_PREFIX . "stock_status ss ON (p.stock_status_id = ss.stock_status_id) WHERE p.product_id = '" . (int)$product_id . "' AND pd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND ss.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p.date_available <= NOW() AND p.status = '1'");
return $query->row;
}
Extensions: Multi-vendor extension
Shipping Modules: SuperShip Pro
Multi-Vendor Marketplace:Opencartmarketplace.com
IceCat to Opencart: Import millions of IceCat products to Opencart
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Users browsing this forum: No registered users and 14 guests