hikashop email log table

  • Posts: 1119
  • Thank you received: 114
6 years 3 months ago #286159

Hi,

1. We have some slow performance when we change order status from back-end order management. As example. We change order status to confirmed and choose to notify buyer with email, then click save and pages hangs sometimes for more then 15 seconds (Same applies for front-end until this happens).Then pop up close and all fine. This happens not always but maybe 1 of 10.

2. Another issue is when we copy FIRST product to create new one. It also takes around 15 seconds to process. All other product copy is instant. After few days when we add new products we have same issue...

I thought this has something to do with server side but host provider as usual says bad coding...
What we did we deleted old product which we had no stock and performance is now better but still with those 2 issues above. We have only about 1200 products including variants... Can the issue be with sql tables?

We see some overhead in hikashop_email_log table which is 12,4 Mib and table size is 14,8 Mib. We used to save email log for 2 months but now we do save only for 1 week. Can this be the issue for first question? We also see some other hikashop tables which has small overhead. I think this needs some optimizations? Before taking any actions i would like to have those questions above answered.

Kind Regards

Last edit: 6 years 3 months ago by kyratn.

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
6 years 3 months ago #286161

Hi,

1. If you don't send the notification is it fast ?
If so, then it's probably that the communication with the email server is slow. It's the same at the end of the checkout when you click finish and HikaShop sends the notification emails. HikaShop's processing there is really fast. What's slow is the sending of the emails and then the redirection to the payment gateway (done by the payment gateway).
If you disable the emails and use a "collect on delivery" payment method where there is no redirect, you can see the real speed of the finish process of HikaShop ( + the processing of the thank you page by Joomla and the template of course).

If it's not fast even without the notification, then it means that it probably comes from another plugin, which does things when the order is being modified or a mass action.

2. You mean that you copy once a product and it's slow, and then you copy the same product again and it's fast ? In that case, it means that your hosting has some MySQL query caching system which allows the process to go faster the second time.
It also means that your product has a lot of variants or that there are a lot of elements.
A variant is stored like a product.
So if you have 100 variants for each product and you have 1000 products, that means that you actually have 100 000 entries in the hikashop_product table. So with variants the tables can easily grow big leading to the MySQL queries getting slow.
To check that, go in your PHPMyAdmin and open the table hikashop_product. You'll see there how many entries you have.
With a few 10s of thousands of entries it should be fine on any server. We've seen HikaShop working with a few millions entries in that table on a powerfull server.

Please Log in or Create an account to join the conversation.

  • Posts: 1119
  • Thank you received: 114
6 years 3 months ago #286188

Hi,

Thank you Nicolas for explanation. That really helped.

One last question. Does sql table overhead impact performances?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
6 years 3 months ago #286195

Please Log in or Create an account to join the conversation.

  • Posts: 1119
  • Thank you received: 114
6 years 3 months ago #286230

Hi,

So I have done some sql optimization and now everything works much better. Seems later for more products we should switch to dedicated server...
Thanks for support Nicolas.

Have a great weekend!

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum