Jump to content

Optimized mass PM


Norsk.Firefox

Recommended Posts

Hello,

I'm working on a private messages (PM from now) system. I's able for the admins to send a PM to everybody, but which case is the best?

One table with one PM for each user, (id, to_id, title, msg, time and read)

Or two tables, one with the PM, and one witch control the read/deleted info.

 

The First one will have a message pr user, for every mass PM. (If I send 3 PMs to 10000 users, it will create 30 000 rows.)

The second one will have one row for each mass PM, and when the user read the PM it creates a row in the second table witch tell my function that the user has read the PM. This is cleaned after the mail has been in the inbox for a month or something.

 

Witch is the most effective?

 

 

Link to comment
https://forums.phpfreaks.com/topic/74370-optimized-mass-pm/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.