Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#6654 closed defect (bug) (fixed)

get_available_post_statuses() query is slow

Reported by: ryan's profile 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)

#1 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [7637]) Use wp_count_posts() to determine availabel statuses for get_available_post_statuses(). fixes #6654 for 2.5

#2 @ryan
16 years ago

(In [7638]) Use wp_count_posts() to determine availabel statuses for get_available_post_statuses(). fixes #6654 for trunk

Note: See TracTickets for help on using tickets.