Mysql-read records of announcement information to determine whether or not users are reading and recording

Source: Internet
Author: User
Website announcements or Insite emails determine whether the user can view the message. how can this problem be solved? Method A: Message ID: 5662 record table: xxx_logUID: 335 the user adds an information 5662 + 335 + time to enter the XXX -- log table. However, in this way, the pressure on xxx_log is relatively high, if 100,000 users send dozens of messages in a month, there will be a lot of resources. if you delete the record table, when the user enters the mailbox, all the messages are not read.

Website announcements or Insite emails determine whether the user can view the message. how can this problem be solved?

Method:

Message ID: 5662
Record table: xxx_log

UID: 335 add a message when the user views it.
5662 + 335 + time entering XXX -- log table

However, in this way, the pressure on xxx_log is relatively high,
If 100,000 users send dozens of messages in a month, there will be a lot of resource occupation,
If you delete the record table, you can see in the mailbox that all the messages are not read.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.