Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Which tables are supposed to have two primary keys?

fmimosofmimoso
edited February 2009 in Vanilla 1.0 Help
After reading Mark's Lussumo downtime post, I checked my database and, besides what he diagnosed, I have five other tables that have two primary keys:

LUM_UserDiscussionWatch as pictured:

Image and video hosting by TinyPic

And (LUM_Comment,) LUM_CategoryBlock, LUM_DiscussionUserWhisperFrom, LUM_DiscussionUserWhisperTo, LUM_ThankfulPeople and LUM_UserBookmark.

My question: is this supposed to be like it is now? Or, is there a misconfiguration with these settings?
I'm asking this because my shared server's CPU load is always at +10... and I was wondering if I'm not the culprit...

TIA :)

Comments

  • edited February 2009
    It is one primary key made from 2 fields. In the case of the comment, it is unnecessary. It is normal for the other ones.
  • edited February 2009
    In the case of the comment table it was not necessary to add the discussion_id to the primary index because the comment_id is already unique. But what made the queries on the comment table slow was the absence of an index on the discussion_id field.
  • Following your comment, here's my LUM_Comment table:

    Image and video hosting by TinyPic

    Can I ask you kindly if you suggest any changes?
    As you can see it's getting big... and I wouldn't want it to begin crashing...
Sign In or Register to comment.