Some optimization of the post query. #2604

git-svn-id: http://svn.automattic.com/wordpress/trunk@3678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2006-04-02 00:33:10 +00:00
parent cebb0a3a15
commit 6123ea7eb7
5 changed files with 11 additions and 20 deletions

View File

@@ -166,7 +166,7 @@ function upgrade_all() {
if ( $wp_current_db_version < 3308 )
upgrade_160();
if ( $wp_current_db_version < 3582 )
if ( $wp_current_db_version < 3672 )
upgrade_210();
$wp_rewrite->flush_rules();

View File

@@ -113,11 +113,12 @@ CREATE TABLE $wpdb->posts (
post_parent bigint(20) NOT NULL default '0',
guid varchar(255) NOT NULL default '',
menu_order int(11) NOT NULL default '0',
post_type varchar(100) NOT NULL default 'post',
post_type varchar(20) NOT NULL default 'post',
post_mime_type varchar(100) NOT NULL default '',
comment_count bigint(20) NOT NULL default '0',
PRIMARY KEY (ID),
KEY post_name (post_name)
KEY post_name (post_name),
KEY type_status_date (post_type, post_status, post_date)
);
CREATE TABLE $wpdb->users (
ID bigint(20) unsigned NOT NULL auto_increment,