#6654 closed defect (bug) (fixed)
get_available_post_statuses() query is slow
Reported by: | ryan | Owned by: | |
---|---|---|---|
Milestone: | 2.5.1 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | Optimization | Keywords: | |
Focuses: | Cc: |
Description
The query in get_available_post_statuses() uses DISTINCT, which is slow. The query in wp_count_posts() is much faster and can be used to derive the same information.
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [7637]) Use wp_count_posts() to determine availabel statuses for get_available_post_statuses(). fixes #6654 for 2.5