You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The system administrators of my hosting say that this plugin generates a slow query. Every night at the same time the mysql server crashes. They also indicate the slow query which I paste below.
Actually, by disabling the plugin, mysql doesn't crash. Has anyone had similar problems?
Thank you
SELECT wp_posts.ID
FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = '_wc_gla_visibility' ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id AND mt2.meta_key = '_wc_gla_errors' ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id ) LEFT JOIN wp_postmeta AS mt5 ON ( wp_posts.ID = mt5.post_id AND mt5.meta_key = '_wc_gla_visibility' ) LEFT JOIN wp_postmeta AS mt6 ON ( wp_posts.ID = mt6.post_id ) LEFT JOIN wp_postmeta AS mt7 ON ( wp_posts.ID = mt7.post_id AND mt7.meta_key = '_wc_gla_errors' ) LEFT JOIN wp_postmeta AS mt8 ON ( wp_posts.ID = mt8.post_id ) LEFT JOIN wp_postmeta AS mt9 ON ( wp_posts.ID = mt9.post_id )
WHERE 1=1 AND (
(
wp_term_relationships.term_taxonomy_id IN (2,4)
OR
NOT EXISTS (
SELECT 1
FROM wp_term_relationships
INNER JOIN wp_term_taxonomy
ON wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id
WHERE wp_term_taxonomy.taxonomy = 'product_type'
AND wp_term_relationships.object_id = wp_posts.ID
)
)
) AND (
(
wp_postmeta.post_id IS NULL
OR
( mt1.meta_key = '_wc_gla_visibility' AND mt1.meta_value != 'dont-sync-and-show' )
)
AND
(
mt2.post_id IS NULL
OR
( mt3.meta_key = '_wc_gla_errors' AND mt3.meta_value = '' )
)
AND
(
( mt4.meta_key = '_wc_gla_synced_at' AND mt4.meta_value < '1719543627' )
)
AND
(
mt5.post_id IS NULL
OR
( mt6.meta_key = '_wc_gla_visibility' AND mt6.meta_value != 'dont-sync-and-show' )
)
AND
(
mt7.post_id IS NULL
OR
( mt8.meta_key = '_wc_gla_errors' AND mt8.meta_value = '' )
)
AND
(
( mt9.meta_key = '_wc_gla_synced_at' AND mt9.meta_value < '1719543627' )
)
) AND wp_posts.post_type IN ('product_variation', 'product') AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'private'))
GROUP BY wp_posts.ID
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The system administrators of my hosting say that this plugin generates a slow query. Every night at the same time the mysql server crashes. They also indicate the slow query which I paste below.
Actually, by disabling the plugin, mysql doesn't crash. Has anyone had similar problems?
Thank you
SELECT wp_posts.ID
FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = '_wc_gla_visibility' ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id AND mt2.meta_key = '_wc_gla_errors' ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id ) LEFT JOIN wp_postmeta AS mt5 ON ( wp_posts.ID = mt5.post_id AND mt5.meta_key = '_wc_gla_visibility' ) LEFT JOIN wp_postmeta AS mt6 ON ( wp_posts.ID = mt6.post_id ) LEFT JOIN wp_postmeta AS mt7 ON ( wp_posts.ID = mt7.post_id AND mt7.meta_key = '_wc_gla_errors' ) LEFT JOIN wp_postmeta AS mt8 ON ( wp_posts.ID = mt8.post_id ) LEFT JOIN wp_postmeta AS mt9 ON ( wp_posts.ID = mt9.post_id )
WHERE 1=1 AND (
(
wp_term_relationships.term_taxonomy_id IN (2,4)
OR
NOT EXISTS (
SELECT 1
FROM wp_term_relationships
INNER JOIN wp_term_taxonomy
ON wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id
WHERE wp_term_taxonomy.taxonomy = 'product_type'
AND wp_term_relationships.object_id = wp_posts.ID
)
)
) AND (
(
wp_postmeta.post_id IS NULL
OR
( mt1.meta_key = '_wc_gla_visibility' AND mt1.meta_value != 'dont-sync-and-show' )
)
AND
(
mt2.post_id IS NULL
OR
( mt3.meta_key = '_wc_gla_errors' AND mt3.meta_value = '' )
)
AND
(
( mt4.meta_key = '_wc_gla_synced_at' AND mt4.meta_value < '1719543627' )
)
AND
(
mt5.post_id IS NULL
OR
( mt6.meta_key = '_wc_gla_visibility' AND mt6.meta_value != 'dont-sync-and-show' )
)
AND
(
mt7.post_id IS NULL
OR
( mt8.meta_key = '_wc_gla_errors' AND mt8.meta_value = '' )
)
AND
(
( mt9.meta_key = '_wc_gla_synced_at' AND mt9.meta_value < '1719543627' )
)
) AND wp_posts.post_type IN ('product_variation', 'product') AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'private'))
GROUP BY wp_posts.ID
Beta Was this translation helpful? Give feedback.
All reactions