Custom search query not showing
-
Hi, great plugin, thanks.
I have a custom table with about 350.000 rows.
I did modify the search
– add_filter(‘posts_join’, ‘mysearch_join’ );
– function mysearch_join{
if( is_search() ) {
$join .= ” INNER JOIN mytable ON $wpdb->posts.mycolumn = mytable.mycolumn }
}Database query time: 0.0648s
But page takes about 5secs to load.Unfortunately this query (that makes the difference in time) doesn’t show up in Query-monitor.
Am I forgetting something?
[PS I did run the query in phpMyAdmin and it took about 3.5 sec. According to your experience is it a reasonable time for the size of my custom table?]
Thanks for your support!
- The topic ‘Custom search query not showing’ is closed to new replies.