New keys and indexes
Posted: Mon Oct 31, 2005 10:58 am
You should make a new set of keys in your cms to make it clean and faster.
Now the sets are not the best and with wrong performance.
I have tested this with the best result:
Table content
PRIMARY KEY (`content_id`),
KEY `content_alias` (`content_alias`),
KEY `hierarchy` (`hierarchy`),
KEY `owner_id` (`owner_id`)
Table module_news_categories
PRIMARY KEY (`news_category_id`),
KEY `hierarchy` (`hierarchy`)
Table modules
PRIMARY KEY (`module_name`)
Table adminlog
PRIMARY KEY (`timestamp`)
Table htmlblobs
PRIMARY KEY (`htmlblob_id`),
KEY `htmlblob_name` (`htmlblob_name`)
Table users
PRIMARY KEY (`user_id`),
KEY `username` (`username`)
Table module_deps
PRIMARY KEY (`parent_module`)
----------------------------------------------------------------
In your initial.sql are some inserts ('headtags') with duplicated keys in table content_props
Now the sets are not the best and with wrong performance.
I have tested this with the best result:
Table content
PRIMARY KEY (`content_id`),
KEY `content_alias` (`content_alias`),
KEY `hierarchy` (`hierarchy`),
KEY `owner_id` (`owner_id`)
Table module_news_categories
PRIMARY KEY (`news_category_id`),
KEY `hierarchy` (`hierarchy`)
Table modules
PRIMARY KEY (`module_name`)
Table adminlog
PRIMARY KEY (`timestamp`)
Table htmlblobs
PRIMARY KEY (`htmlblob_id`),
KEY `htmlblob_name` (`htmlblob_name`)
Table users
PRIMARY KEY (`user_id`),
KEY `username` (`username`)
Table module_deps
PRIMARY KEY (`parent_module`)
----------------------------------------------------------------
In your initial.sql are some inserts ('headtags') with duplicated keys in table content_props