[Plugin: WordPress Navigation List Plugin NAVT] NAVT does a lot of queries
-
To display a small menu on my homepage NAVT needs to make 8(!!!) queries!
- SELECT option_value FROM wp_options WHERE option_name = ‘wpnavt_installed’ LIMIT 1
[wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php(946): get_option()] - SELECT * FROM wp_posts WHERE ID = 15 OR ID = 1 OR ID = 9 OR ID = 3 OR ID = 10
[wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt_fe.php(205): wpdb->get_results()] - SELECT option_value FROM wp_options WHERE option_name = ‘wpnavt_gconfig’ LIMIT 1
[wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php(946): get_option()] - SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = ‘category’ AND t.term_id = ’10’ LIMIT 1
[wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt_fe.php(1103): get_category()] - SELECT option_value FROM wp_options WHERE option_name = ‘wpnavt_iconfig’ LIMIT 1
[wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php(946): get_option()] - SELECT * FROM wp_posts WHERE ID = 0 OR ID = 30000 OR ID = 42 OR ID = 3 OR ID = 5 OR ID = 2 OR ID = 7
[wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt_fe.php(205): wpdb->get_results()] - SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = ‘category’ AND t.term_id = ’15’ LIMIT 1
[wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt_fe.php(1103): get_category()] - SELECT option_value FROM wp_options WHERE option_name = ‘wpnavt_version’ LIMIT 1
[wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php(946): get_option()]
I’m using this plugin for a very long time, and i’ve always been thinking wtf is with wordpress, why it is so slow and now when i’ve got some free time and made a debug, i was shoked man! NAVt does 8 queries, wheareas whole WordPress CMS does 10 queries!
WTF?? I can’t understand why the author didn’t do some optimization??
For example why didn’t you set “autoload” to the options that are stored in database in order to extract them all together by using only one query? If this is caused by some certain resons, could you specify them?Sorry for my bad english and no offence to author cause in general the plugin is great ??
- SELECT option_value FROM wp_options WHERE option_name = ‘wpnavt_installed’ LIMIT 1
- The topic ‘[Plugin: WordPress Navigation List Plugin NAVT] NAVT does a lot of queries’ is closed to new replies.