Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart 4.1.7 released

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #51  
Old 05-18-2007, 03:41 PM
 
somekindahate somekindahate is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 84
 

Default Re: X-Cart 4.1.7 released

Quote:
Originally Posted by jagorny
SELECT xcart_orders.orderid FROM xcart_orders, xcart_order_details, xcart_giftcerts WHERE xcart_orders.orderid<'2380' AND (xcart_order_details.orderid=xcart_orders.orderid OR xcart_orders.orderid=xcart_giftcerts.orderid) ORDER BY xcart_orders.orderid DESC LIMIT 1

Correct me if I'm wrong, but that join syntax looks like it's making a cartesian product of all 3 tables which is horribly inefficient. With the number of orders you have, no wonder it is timing out.

The following should be quicker and equivalent:

Code:
SELECT xcart_orders.orderid FROM xcart_orders LEFT JOIN xcart_order_details USING ( orderid ) LEFT JOIN xcart_giftcerts USING ( orderid ) WHERE xcart_orders.orderid < '2380' AND (xcart_order_details.orderid IS NOT NULL OR xcart_giftcerts.orderid IS NOT NULL) ORDER BY xcart_orders.orderid DESC LIMIT 1
__________________
X-Cart Gold v. 4.1.10
Reply With Quote
  #52  
Old 05-18-2007, 07:56 PM
 
Alexander Alexander is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 7
 

Default Re: X-Cart 4.1.7 released

2 jagorny

I have this problem too.
I commented this line from history_order.php :
$giftcert_condition = " OR $sql_tbl[orders].orderid=$sql_tbl[giftcerts].orderid";
__________________
Service Manuals Shop
Reply With Quote
  #53  
Old 05-20-2007, 12:39 PM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: X-Cart 4.1.7 released

So you're saying that if your store has had loads of Orders, the History times out?
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
  #54  
Old 05-20-2007, 02:22 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default Re: X-Cart 4.1.7 released

Any idea when the 4.1 branch will go stable?

I am still on 4.0 and my host is getting close to migrating all servers to PHP 5.

From the posts in this thread it sounds like there are still some query issues. My site has about 3000 customers and about 8000 orders. Are any of the timeouts on the customers side or only on the admin side?
Reply With Quote
  #55  
Old 05-20-2007, 04:06 PM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: X-Cart 4.1.7 released

Quote:
Originally Posted by Light Speed
Any idea when the 4.1 branch will go stable?

I am still on 4.0 and my host is getting close to migrating all servers to PHP 5.


I would set up 4.1.7 in it's own directory and work on getting it set up the way you want it. So far I like it much better than 4.0.18. There were changes we made to the 4.0 branch 6-9 months ago that we had forgot about. Once we upgrade we remembered real quick. Our Host changed on us on a Saturday night without warning. If you have some time then it would be smart to set up and get familiar with 4.1 We have had no problems with stability, just upgrade stupidity. Our db only has 1000 product/customers/orders I can query any of these from day one with no problem. On an all dates order search 1022 orders page load time was just over 2 seconds, products took just over 3 seconds and users was just over 2 seconds (both over 1000). None of these searches had any restrictins so it brought them all up.

I would not worry too much about stability in the 4.1 branch from this point.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #56  
Old 05-20-2007, 04:22 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default Re: X-Cart 4.1.7 released

Quote:
Originally Posted by hoosierglass
I would set up 4.1.7 in it's own directory and work on getting it set up the way you want it. So far I like it much better than 4.0.18. There were changes we made to the 4.0 branch 6-9 months ago that we had forgot about. Once we upgrade we remembered real quick. Our Host changed on us on a Saturday night without warning. If you have some time then it would be smart to set up and get familiar with 4.1 We have had no problems with stability, just upgrade stupidity. Our db only has 1000 product/customers/orders I can query any of these from day one with no problem. On an all dates order search 1022 orders page load time was just over 2 seconds, products took just over 3 seconds and users was just over 2 seconds (both over 1000). None of these searches had any restrictins so it brought them all up.

I would not worry too much about stability in the 4.1 branch from this point.

Thanks!

Did you have any issues with your customers passwords when you upgraded from 4.0 to 4.1?
Reply With Quote
  #57  
Old 05-20-2007, 05:14 PM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: X-Cart 4.1.7 released

Yes that was due to my hosting company doing the upgrade for me, and not knowing what they were doing.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #58  
Old 05-22-2007, 11:11 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: X-Cart 4.1.7 released

Quote:
Originally Posted by Alexander
2 jagorny

I have this problem too.
I commented this line from history_order.php :
$giftcert_condition = " OR $sql_tbl[orders].orderid=$sql_tbl[giftcerts].orderid";


Thanks for the fix!
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #59  
Old 05-22-2007, 11:39 AM
 
jagorny jagorny is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 98
 

Default Re: X-Cart 4.1.7 released

Quote:
Originally Posted by somekindahate
Correct me if I'm wrong, but that join syntax looks like it's making a cartesian product of all 3 tables which is horribly inefficient. With the number of orders you have, no wonder it is timing out.

The following should be quicker and equivalent:

Code:
SELECT xcart_orders.orderid FROM xcart_orders LEFT JOIN xcart_order_details USING ( orderid ) LEFT JOIN xcart_giftcerts USING ( orderid ) WHERE xcart_orders.orderid < '2380' AND (xcart_order_details.orderid IS NOT NULL OR xcart_giftcerts.orderid IS NOT NULL) ORDER BY xcart_orders.orderid DESC LIMIT 1

Yes... if I had a dollar for all the catersian product selects that are still there... I mean there are less common than before, but yes you are right. I have not spent a lot of time going through the queries to optimize - I was more interested in a quick fix so I simply commented out the previous order and next order links code.
__________________
Jacob Gorny
E-commerce Lead, Applications Developer
Greek Orthodox Archdiocese

Running X-Cart Pro 4.1.10
RHEL5 | Apache 2.2.8 | PHP 5.2.6
Reply With Quote
  #60  
Old 05-30-2007, 07:57 PM
 
lp1844 lp1844 is offline
 

Newbie
  
Join Date: Nov 2006
Posts: 2
 

Default Re: X-Cart 4.1.7 released

Quote:
Originally Posted by marcelox7
Sorry but you are wrong! The google analytics works 100%. I have setup in my web site.

Read the instruction and you will be fine

Thanks
Where is the manual for Google Analytic. Thanks!
__________________
lp1844
Reply With Quote
Reply
   X-Cart forums > News and Announcements



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:25 PM.

   

 
X-Cart forums © 2001-2020