Jump to content

PHP and mysql performance question


daydreamer

Recommended Posts

I am building a website which deals with sending messages.

 

At the moment my database has a table which stores these messages:

 

ID(pk), member_id, number, message, date.

 

On one of the pages my site allows the users to see the messages they have sent, and also delete them.

 

When they are deleted, I want to keep them in the database, but not show them on the users 'message page'.

 

 

Which way would be faster/best? To have a table identical to the one above, but when the user deletes them, just delete them from one table.

 

Or put in another column, "deleted", 0=show message, and 1=do not show message.

Link to comment
https://forums.phpfreaks.com/topic/122296-php-and-mysql-performance-question/
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.