Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow Query: pre_update_option_wpi_options #256

Open
andypotanin opened this issue Sep 10, 2017 · 0 comments
Open

Slow Query: pre_update_option_wpi_options #256

andypotanin opened this issue Sep 10, 2017 · 0 comments

Comments

@andypotanin
Copy link
Contributor

andypotanin commented Sep 10, 2017

Slow WP-Invoice MySQL Query happens on the dashboard page.

Query:

SELECT DISTINCT `wp_postmeta`.meta_value
  FROM `wp_posts` JOIN `wp_postmeta`
  ON ( `wp_posts`.id = `wp_postmeta`.post_id ) 
  WHERE `wp_posts`.post_type = 'wpi_object' 
    AND `wp_postmeta`.meta_key = 'default_currency_code' 

Caller:

WPI_Functions::pre_update_option_wpi_options()
wp-content/plugins/wp-invoice/lib/class_functions.php:1559
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants