wp_mailpoet_subscriber_segment
-
Hello!
I’m Dani?l, a 3rd-line technical support representative of the Dutch webhosting company mijndomein.nl
I’m getting in contact from my employers perspective, being a Webhosting company, providing shared-hosting.
We are experiencing issues with customers using the MailPoet plugin, which is excessively using resources of database servers doing the following query:
INSERT IGNORE INTO wp_mailpoet_subscriber_segment(subscriber_id, segment_id, created_at) SELECT mps.id, "1", CURRENT_TIMESTAMP() FROM wp_mailpoet_subscribers mps WHERE mps.wp_user_id > 0
Which comes from:
mailpoet/lib/Segments/WooCommerce.php:372:private function insertUsersToSegment(): void { mailpoet/lib/Segments/WP.php:302:private function insertUsersToSegment() {
We see that the following versions:
COUNT | PERCENTAGE | LINE ----------------------------------------------------- 12 | 80.00 % | 3.75.1 1 | 6.67 % | 3.74.3 1 | 6.67 % | 3.75.0 1 | 6.67 % | 3.76.0 ----------------------------------------------------- 15 | TOTAL LINES
Run this query multiple times a minute, which seems rather much.
Has anyone experienced this, and can you help diagnose the root-cause of this problem to help resolve the resource intensive usage of MailPoet on our database servers?
Could this be a bug on / in MailPoet, or is it caused / triggered elsewhere?
Kind regards, Dani?l
- The topic ‘wp_mailpoet_subscriber_segment’ is closed to new replies.