Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#5699 closed enhancement (fixed)

get_col() instead of get_results() for increased performance

Reported by: fitztrev Owned by:
Priority: low Milestone: 2.5
Component: General Version:
Severity: minor Keywords:
Cc: Focuses:

Description

Using get_results() is overkill for what's being selected in this query.

get_col() should have faster parsing times.

Attachments (2)

get_col.diff (566 bytes ) - added by fitztrev 19 years ago.
get_col2.diff (691 bytes ) - added by fitztrev 19 years ago.

Download all attachments as: .zip

Change History (5)

@fitztrev
19 years ago

#1 @ryan
19 years ago

I think do_trackbacks($trackback->ID) would need to become do_trackbacks($trackback).

@fitztrev
19 years ago

#2 @fitztrev
19 years ago

That's absolutely correct. Here is the updated patch. Tested, this time.

#3 @ryan
19 years ago

  • Resolutionfixed
  • Status newclosed

(In [6640]) get_col() instead of get_results(). Props fitzrev. fixes #5699

Note: See TracTickets for help on using tickets.