Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#17745 closed defect (bug) (fixed)

Twenty Eleven SQL optimization

Reported by: pavelevap Owned by: ryan
Priority: normal Milestone: 3.2
Component: Bundled Theme Version: 3.2
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Twenty Eleven will be used by many users, so we should avoid some queries with no_found_rows argument? Patch attached.

Related: ​http://core.trac.wordpress.org/ticket/17203

Attachments (1)

sql_optimization.patch​ (981 bytes ) - added by pavelevap 15 years ago.

Download all attachments as: .zip

Change History (6)

#1 @dd32
15 years ago

  • Component Performance → Bundled Theme
  • Milestone Awaiting Review → 3.2

#2 @dd32
15 years ago

'nopaging' can be removed from the args as well, the default in this case will be false.

I see no harm in adding no_found_rows to these Queries

#3 @aaroncampbell
15 years ago

+1 - It's a good idea and the patch looks good.

#4 @ocean90
15 years ago

  • Keywords has-patch added

#5 @ryan
15 years ago

  • Owner set to ryan
  • Resolution → fixed
  • Status new → closed

In [18239]:

Use no_found_rows for some queries. Props pavelevap. fixes #17745

Note: See TracTickets for help on using tickets.