I m 提出申请
- stores an e-mail address (to a user) in a table.
- stores the number of days the user would like to stay in the table.
- takes the user off the table when the number of days is up.
我并不真正知道如何处理这一问题,因此我的问题是:
- Each second, do I have the application check through every table entry for the time that s currently stored in, let s say, the
time_left
column? - Wouldn t (1) be inefficient if I m expecting a significant number (10,000+) users?
- If not (2), what s the best algorithm to implement for such a task?
- What s the name of what I m trying to do here? I d like to do some more research on it before and while I m writing the script, so I need a good search query to start with.
我计划用Perl语撰写这一文字,尽管我愿意接受有关语言选择、框架等的建议。 我实际上对网络发展(后端和前端)来说是新的,因此,如果你能够向我提供准确的咨询意见,我会不胜感激。
谢谢!
* 在张贴之后,。 询问一个有效问题:
Why would you store users if they won t get requested?
用户刚刚在数据库中开庭。
从用户输入数据库后每5分钟使用用户电子邮件地址说一米(如果用户条目在2:00PM-10月18日出生,用户可在2:05、2:10等查询)。
如果用户在10天内决定希望从数据库中删除,这意味着其输入通常(每5分钟从2:00PM-October 18)到2:00PM-October 28。
So to clarify, based on this situation:
www.un.org/Depts/DGACM/index_spanish.htm 该系统必须不断将目前的时间与用户的到期日期进行比较?