fixing a problem with long keys in utf-8 encoded database tables
This commit is contained in:
parent
53538d366f
commit
1f0b19a609
2 changed files with 6 additions and 10 deletions
|
|
@ -23,7 +23,8 @@ finish();
|
|||
#-------------------------------------------------
|
||||
sub makeQueriesFaster {
|
||||
print "\tMaking queries a little faster.\n" unless ($quiet);
|
||||
WebGUI::SQL->write("alter table assetData add index assetId_url_revisionDate_status_tagId (assetId,url,revisionDate,status,tagId)");
|
||||
WebGUI::SQL->write("alter table assetData add index assetId_url (assetId,url)");
|
||||
WebGUI::SQL->write("alter table assetData add index assetId_revisionDate_status_tagId (assetId,revisionDate,status,tagId)");
|
||||
WebGUI::SQL->write("alter table asset add index className_assetId_state (className,assetId,state)");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue