VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Studio 42 on December 07, 2021, 20:57:59 PM

Title: PROBLEM: Slow query to verify orphaned files > 60 seconds and solution
Post by: Studio 42 on December 07, 2021, 20:57:59 PM

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 !
Title: Re: PROBLEM: Slow query to verify orphaned files > 60 seconds and solution
Post by: Studio 42 on December 07, 2021, 20:59:45 PM
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 !