Changeset 32

Show
Ignore:
Timestamp:
2007-11-25 21:38:20 (4 years ago)
Author:
hannes
Message:

creating table indexes for better performance

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/db/mysql.sql

    r14 r32  
    99ALTER TABLE %prefix%members MODIFY memberid INTEGER AUTO_INCREMENT; 
    1010ALTER TABLE %prefix%mails MODIFY id INTEGER AUTO_INCREMENT; 
     11 
     12CREATE INDEX idx_forums ON %prefix%forums (forum_category ASC); 
     13CREATE INDEX idx_topics ON %prefix%topics (forum ASC); 
     14CREATE INDEX idx_posts ON %prefix%posts (topic DESC, posttime ASC); 
  • trunk/db/spamboard.sql

    r19 r32  
    11CREATE TABLE %prefix%categories ( 
    2   category_id INTEGER NOT NULL, 
     2  category_id INTEGER NOT NULL, 
    33  category_name VARCHAR(255) NOT NULL, 
    44  category_order INTEGER NOT NULL,