Make WordPress Core

Opened 17 years ago

Closed 16 years ago

Last modified 2 years ago

#12798 closed enhancement (wontfix)

Splitting posts+pages and attachments into separate tables

Reported by: dtorbert Owned by: ryan
Priority: normal Milestone:
Component: Database Version: 2.9.2
Severity: normal Keywords: wp_posts attachments partition
Cc: Focuses:

Description

Right now, every post, page, or attachment is stored in the wp_posts table. This means that if you have 10,000 images and 50 posts+pages, every time you go to view a post or a page, it's querying a 10,000-row table instead of a 50-row table.

The table could be split into wp_posts and wp_attachments, then if a query needed to be run that really did require searching both, you would use a view instead.

Written correctly, the schema could be written to allow other kinds of logical partitioning (eg, partitioning post tables by year).

Change History (4)

#1 @jane
17 years ago

  • Milestone 3.0 → Future Release

Taking off 3.0 milestone because we are past feature freeze.

#2 @nacin
16 years ago

  • Milestone Future Release
  • Resolution → wontfix
  • Status new → closed

No plans to do this.

#3 @Denis-de-Bernardy
16 years ago

And yet, frankly, this'll be so necessary in the long term.

#4 @archon810
2 years ago

Sad to see this closed as it's something that totally makes sense for large websites.

Note: See TracTickets for help on using tickets.