What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Bug Query is too intensive

Clement

Freaky Coder
Staff member
The Awarded slider media widget queries xf_mg_media_item where xfa_motm_winnner = 1.
As there is no usable index this query scans the whole table which is very slow when there are many records.

Suggested Fix
Create an appropriate index
or
Store media item IDs for winners somewhere else

The Current contest slider media Widget seems to have similar issues (I didn't specifically test this, just looked at the code).
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart