News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

PROBLEM: Slow query to verify orphaned files > 60 seconds and solution

Started by Studio 42, December 07, 2021, 20:57:59 PM

Previous topic - Next topic

Studio 42


The key is missing in category_media and manufacturer_media table even in last release candidate
  KEY `virtuemart_media_id` (`virtuemart_media_id`),
So if you check for orphan files the query need more then 60 secondes for 1500 images in categories
I added directly this key and now the query need never more then 1 seconde.
Now checking for orphan medias is 100 X faster !

Studio 42

Damn bug on editing a post.
Again :
The key is missing in category_media and manufacturer_media table even in last release candidate
  KEY `virtuemart_media_id` (`virtuemart_media_id`),
So if you check for orphan files the query need more then 60 secondes for 1500 images in categories
I added directly this key and now the query need never more then 1 seconde.
Now checking for orphan medias is 100 X faster !