Commit 79137490 authored by Erick Hitter's avatar Erick Hitter
Browse files

Update count-by-status query to leverage index

parent 8f9b27dc
...@@ -578,7 +578,7 @@ class Events_Store extends Singleton { ...@@ -578,7 +578,7 @@ class Events_Store extends Singleton {
return false; return false;
} }
return (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(action) FROM {$this->get_table_name()} WHERE status = %s", $status ) ); return (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM {$this->get_table_name()} WHERE status = %s", $status ) );
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment