Post by Demon5 » Mon Apr 25, 2011 12:58 am

Sadly that isn't even close to all the products.. that just my asi csv file. the csv import extension on the shop here was able to import it. Not quite sure how xsecrets pulling off the 2 million product thing... After working some of my other issues I'll be pasting in his speed boost tweaks.

That 30 dollar csv importer def worth it btw. I have about 80-90 prods on my live store and those added one by one horrible..

I'd like to go from regular site to newegg overnight..

https://www.lotnllc.com is your one stop shop for all your computer needs!


User avatar
Active Member

Posts

Joined
Sat Jun 19, 2010 4:12 am
Location - Sacramento, CA

Post by Xsecrets » Mon Apr 25, 2011 1:03 am

well my 2million products were not imported through csv it was a direct db to db import, and Like I said it still takes 10-15 sec for a page to load, but before the optimizations it would simply timeout every time.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by Demon5 » Mon Apr 25, 2011 1:07 am

Qphoria wrote:Hmm the "WHERE AND" to "WHERE" bit in the last block of vqmod doesn't seem to be matching for some reason. Let me try it again

If you are trying to load 47000 in google base that will never work unless your host timeout is set really high. RSS feeds weren't ever meant to be that large and even with this db optimization, it won't change the fact that trying to load data for 47000 products on one page will still run out of memory. Perhaps an export to googlebase xml file on the server is an option, but still loading that much data from database will cause most hosts to timeout
My friend made suggestion on trying to make it call like 3-5k at a time until it has the entire thing instead of yanking 50k products at once and having mysql go WTF? sitemap does about the same thing lol.

Btw thanks for the help you guys do some nice work.

https://www.lotnllc.com is your one stop shop for all your computer needs!


User avatar
Active Member

Posts

Joined
Sat Jun 19, 2010 4:12 am
Location - Sacramento, CA

Post by Qphoria » Mon Apr 25, 2011 2:08 am

Demon5 wrote:
Qphoria wrote:Hmm the "WHERE AND" to "WHERE" bit in the last block of vqmod doesn't seem to be matching for some reason. Let me try it again

If you are trying to load 47000 in google base that will never work unless your host timeout is set really high. RSS feeds weren't ever meant to be that large and even with this db optimization, it won't change the fact that trying to load data for 47000 products on one page will still run out of memory. Perhaps an export to googlebase xml file on the server is an option, but still loading that much data from database will cause most hosts to timeout
My friend made suggestion on trying to make it call like 3-5k at a time until it has the entire thing instead of yanking 50k products at once and having mysql go WTF? sitemap does about the same thing lol.

Btw thanks for the help you guys do some nice work.
Yea.. it would need some sort of smaller batch grouping... kinda like how bigdump works

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Demon5 » Mon Apr 25, 2011 9:16 am

on your vqmod.xml commenting out

Code: Select all

   <operation error="skip"><!-- 1 places-->
            <search position="replace"><![CDATA[
            WHERE AND
            ]]></search>
            <add trim="true"><![CDATA[
           WHERE
            ]]></add>
        </operation>
seems to make it work. Not sure if that will cause problem or defeat purpose though :)

https://www.lotnllc.com is your one stop shop for all your computer needs!


User avatar
Active Member

Posts

Joined
Sat Jun 19, 2010 4:12 am
Location - Sacramento, CA

Post by Qphoria » Tue Apr 26, 2011 2:13 am

Demon5 wrote:on your vqmod.xml commenting out

Code: Select all

   <operation error="skip"><!-- 1 places-->
            <search position="replace"><![CDATA[
            WHERE AND
            ]]></search>
            <add trim="true"><![CDATA[
           WHERE
            ]]></add>
        </operation>
seems to make it work. Not sure if that will cause problem or defeat purpose though :)
Oddly, that is the reverse.. you should only get the error if you DONT have this block of code... but anyway ..if it works your way ... great. That won't affect the test. It was just there to prevent the error it apparently causes for you. Weird.

Anyway, is it any faster for you using this ? Been waiting to hear more results to figure if this should go into the core or not.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Johnathan » Tue Apr 26, 2011 6:01 am

Qphoria wrote:

Code: Select all

   <operation error="skip"><!-- 1 places-->
            <search position="replace"><![CDATA[
            WHERE AND
            ]]></search>
            <add trim="true"><![CDATA[
           WHERE
            ]]></add>
        </operation>
Oddly, that is the reverse.. you should only get the error if you DONT have this block of code... but anyway ..if it works your way ... great. That won't affect the test. It was just there to prevent the error it apparently causes for you. Weird.

Anyway, is it any faster for you using this ? Been waiting to hear more results to figure if this should go into the core or not.
I thought you couldn't do a vQmod search-and-replace without using whole lines. Wouldn't the <add> data need to be the complete database query string?

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Qphoria » Tue Apr 26, 2011 7:38 am

Johnathan wrote:
Qphoria wrote:

Code: Select all

   <operation error="skip"><!-- 1 places-->
            <search position="replace"><![CDATA[
            WHERE AND
            ]]></search>
            <add trim="true"><![CDATA[
           WHERE
            ]]></add>
        </operation>
Oddly, that is the reverse.. you should only get the error if you DONT have this block of code... but anyway ..if it works your way ... great. That won't affect the test. It was just there to prevent the error it apparently causes for you. Weird.

Anyway, is it any faster for you using this ? Been waiting to hear more results to figure if this should go into the core or not.
I thought you couldn't do a vQmod search-and-replace without using whole lines. Wouldn't the <add> data need to be the complete database query string?

replace can be inline.. everything else must be whole line simply because I can use str_replace for replace but use the line number +/- 1 for the rest

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Johnathan » Tue Apr 26, 2011 8:57 pm

Qphoria wrote:replace can be inline.. everything else must be whole line simply because I can use str_replace for replace but use the line number +/- 1 for the rest
Didn't know that...thanks for the info.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Demon5 » Tue Apr 26, 2011 9:44 pm

with the xml file as you have it it gives

Code: Select all

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 'AND (LCASE(pd.name) LIKE '%test%') AND p.status = '1' AND p.date_available <= NO' at line 1
Error No: 1064
SELECT COUNT(*) AS total FROM product p LEFT JOIN product_description pd ON (p.product_id = pd.product_id AND pd.language_id = '1') LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id AND p2s.store_id = '0') WHERE AND (LCASE(pd.name) LIKE '%test%') AND p.status = '1' AND p.date_available <= NOW()
when you do a search. actually I just removed that section now and get error either way with or without removing bottom part..

https://www.lotnllc.com is your one stop shop for all your computer needs!


User avatar
Active Member

Posts

Joined
Sat Jun 19, 2010 4:12 am
Location - Sacramento, CA

Post by Qphoria » Wed Apr 27, 2011 9:26 am

Well the file was made a while back and maybe updates have changed.. regardless of search.. just load the homepage. load a category is it faster?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Demon5 » Wed Apr 27, 2011 9:44 am


https://www.lotnllc.com is your one stop shop for all your computer needs!


User avatar
Active Member

Posts

Joined
Sat Jun 19, 2010 4:12 am
Location - Sacramento, CA

Post by Xsecrets » Wed Apr 27, 2011 9:53 am

that's not really a fair comparison. Those are two completely different pages, besides neither of them shows anything like the 4 second product queries you were seeing earlier.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by Demon5 » Wed Apr 27, 2011 10:07 am

Well I made some changes to csv. with my current csv from vendor with current products compared against the one with all current and past products and made new file that just combined prices and stock with descriptions (which was the big one had prob with) so now only like 9k products.

https://www.lotnllc.com is your one stop shop for all your computer needs!


User avatar
Active Member

Posts

Joined
Sat Jun 19, 2010 4:12 am
Location - Sacramento, CA

Post by Amrit » Tue May 03, 2011 11:40 pm

Just tested the file from Qphoria, and while it throws me no error on the site, it gives this error when using search:

Code: Select all

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 'AND (LCASE(pd.name) LIKE '%vga%') AND p.status = '1' AND p.date_available <= NOW' at line 1
Error No: 1064
SELECT COUNT(*) AS total FROM midastore_product p LEFT JOIN midastore_product_description pd ON (p.product_id = pd.product_id AND pd.language_id = '2') LEFT JOIN midastore_product_to_store p2s ON (p.product_id = p2s.product_id AND p2s.store_id = '0') WHERE AND (LCASE(pd.name) LIKE '%vga%') AND p.status = '1' AND p.date_available <= NOW()
Tried commenting out this:

Code: Select all

<operation error="skip"><!-- 1 places-->
            <search position="replace"><![CDATA[
            WHERE AND
            ]]></search>
            <add trim="true"><![CDATA[
           WHERE
            ]]></add>
        </operation>
to no use. Same error.

Not really shure I need this thoug, I got the site down from a 29 second page load to under 5 seconds first try, and under 2 seconds try.

Cheers
Amrit

Newbie

Posts

Joined
Fri Apr 01, 2011 11:33 pm

Post by Demon5 » Fri May 06, 2011 3:33 am

I manually edited the files and also changed the non admin part of cart to use memcache.

https://www.lotnllc.com is your one stop shop for all your computer needs!


User avatar
Active Member

Posts

Joined
Sat Jun 19, 2010 4:12 am
Location - Sacramento, CA

Post by sebastianf » Mon Aug 29, 2011 4:13 am

Should that vQmod xml work also with OC version 1.5.x? The tweak is great! I am getting few seconds queries load with few thousands of products and 1.5.1 OC version so it would be nice to use this mod.



Best regards,
Sebastian

Newbie

Posts

Joined
Mon Aug 29, 2011 4:06 am

Post by Ozfarmer » Tue Sep 13, 2011 10:02 am

I had a customer using a slow line and XP OPSYS complaining about load speed today, so I gave this a try he said the load is signifacantly faster. ;D I am using 1.5.1.2 although I am getting this error in Vqmod:

----------------------20110913-011641-------------------------
SOURCEFILE: /home/ozfarmer/public_html/store/catalog/model/catalog/product.php
MODFILE: /home/ozfarmer/public_html/store/vqmod/xml/db_speed_clause_shift.xml
SEARCH: (f.product_id = pd.product_id)
OPERATION FAILED (ABORTED): NO MATCH FOR SEARCH!
--------------------------------------------------------------

But it doesnt seem to affect the site at all.

Paul

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by Xsecrets » Tue Sep 13, 2011 11:30 am

Ozfarmer wrote:I had a customer using a slow line and XP OPSYS complaining about load speed today, so I gave this a try he said the load is signifacantly faster. ;D I am using 1.5.1.2 although I am getting this error in Vqmod:

----------------------20110913-011641-------------------------
SOURCEFILE: /home/ozfarmer/public_html/store/catalog/model/catalog/product.php
MODFILE: /home/ozfarmer/public_html/store/vqmod/xml/db_speed_clause_shift.xml
SEARCH: (f.product_id = pd.product_id)
OPERATION FAILED (ABORTED): NO MATCH FOR SEARCH!
--------------------------------------------------------------

But it doesnt seem to affect the site at all.

Paul
well that would make sense. you see the last part of that error ABORTED that means it didn't make any changes, so no it wouldn't affect the site at all.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by Ozfarmer » Tue Sep 13, 2011 1:25 pm

Is there any way to stop the error occurring?

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia
Who is online

Users browsing this forum: No registered users and 8 guests