Adding indexes for performance?


July 4th, 2009

  • I spotted a post here about adding indexes to improve performance. Thing is, the post was about a year old, so I don't know if it applies to vB 2.2.0 and MySQL 3.23.37.

    Here's what was suggested:
    alter table forum add index (displayorder);

    alter table forumpermission add index (forumid);
    alter table forumpermission add index (usergroupid);
    alter table forumpermission add index (canadminedit);

    alter table post add index (threadid);
    alter table post add index (username);
    alter table post add index (userid);
    alter table post add index (dateline);

    alter table session add index (userid);
    alter table session add index (location);

    alter table thread add index (lastpost);
    alter table thread add index (forumid);
    alter table thread add index (lastpost);

    If this is still a good idea, what're the pros and cons of it?


  • those are out dated and do not apply to 2.x since i belive those indexes were added to 1.1.4/5 and above


  • Sound's good.....


  • I would not recommend messing with indexes. Whatever indexes are necessary for vbulleting have already been added by Vbulletin developres.

    You should not have more indexes than necessary as it will actually slow down your database and increase the chances of database corruption, not to mention will grow the size of the database.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Adding indexes for performance? , Please add it free.
    date