开发者

Most efficient way of displaying latest user activity in your site? PHP/MySQL

开发者 https://www.devze.com 2023-04-10 03:15 出处:网络
I\'d think to make a new table (logs_table) and track the activity there. So the onl开发者_Python百科y query I\'d have to run is something like:

I'd think to make a new table (logs_table) and track the activity there. So the onl开发者_Python百科y query I'd have to run is something like:

SELECT * FROM logs_table

and I'll be ok. Is there a more efficient way of doing this?

Thanks in advance :)


Not really, best shot is to save data in DB, however I'd be careful with the structure and the age of records before you delete them, so you don't overload the DB and slow down the site.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号