SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Private Messaging with ability to delete and reply

    I've set up a few PM systems in the past and I always make it so each user has their own message table. This allows them to perform edits (such as deletion) on their messages. However this seems like it could be a problem if there are alot of users. What mysql configuration would I need, or is there a better solution just using just a few tables to handle all of the users messages.

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,276
    Mentioned
    60 Post(s)
    Tagged
    3 Thread(s)
    put all the messages into a single table, and make sure it's innodb, so that inserts and deletes will not lock the entire table
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •