Very slow queries (download count entries)

Viewing 4 posts - 1 through 4 (of 4 total)
#189231

Ben Mrtnwpdm
Participant

Query monitor is showing many slow queries that look to be counting a download item’s count. It looks like it might be related to some type of sorting (which is not needed for our purposes).

Is there a filter/way to disable these queries?

Thanks,

Example query —

SELECT wp_posts.*, wp_dlm_downloads.download_count, ( IFNULL( wp_dlm_downloads.download_count, 0 ) + IFNULL( meta_downloads.meta_value, 0 ) ) total_downloads, wp_dlm_downloads.download_versions as download_versions
FROM wp_posts
LEFT JOIN wp_dlm_downloads
ON (wp_posts.ID = wp_dlm_downloads.download_id)
LEFT JOIN (
SELECT wp_postmeta.meta_value, wp_postmeta.post_id
FROM wp_postmeta
WHERE wp_postmeta.meta_key = ‘_download_count’
GROUP BY wp_postmeta.post_id ) as meta_downloads
ON ( meta_downloads.post_id = wp_posts.ID )
WHERE 1=1
AND wp_posts.ID = 83497
AND wp_posts.post_type = ‘dlm_download’
ORDER BY wp_posts.post_date DESC

#189237

Humayon
Spectator

Hello,

Thank you for writing to us.

It appears the table you have referred to is not from WPDM and seems like they are from another plugin most probably from Download Monitor.

Regards

#189252

Ben Mrtnwpdm
Participant

My apologies. Thanks Humayon.

#189399

Humayon
Spectator

You are welcome.

However, If you get some free moments, please give us a 5* here and add your valuable review about our plugin, it will inspire us a lot.

Reards

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Very slow queries (download count entries)’ is closed to new replies.