Site Slowness? Too many Queries Maybe?

Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /opt/edoceo.com/www/vendor/erusev/parsedown-extra/ParsedownExtra.php on line 480

We are currently migrating a clients site to a new platform. One of the original complaints with regard to the existing site was slowness. Think I found the answer today.

It takes 119 queries to display a product page. There was one query (exactly the same, no updates in between) executed 16 times! And another one run 30+ time because the author of the code didn’t want to use the SQL operator IN or do a JOIN.

When you’re writing a store front, ask your self. How often do you need to run

SELECT COUNT(*) FROM product_option where product_id = 345

We think 20 is too many.

Come on guys, trace your code and monitor SQL query logs when you’re developing. These kinds of things are easy to catch and fix. Computer are fast but, lets not waste resources.

http://blog.edoceo.com/
Warning: Undefined array key "show-social" in /opt/edoceo.com/www/view/html.php on line 114 Warning: Undefined array key "show-ad-b" in /opt/edoceo.com/www/view/html.php on line 127 Warning: Undefined array key "script" in /opt/edoceo.com/www/view/html.php on line 147