且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有关数据库更改的实时更新通知MYSQL PHP

更新时间:2023-12-04 17:23:22

最简单的方法可能是每隔几秒钟轮询一次数据库,看看是否插入了新记录.由于数据库中存在查询缓存,因此这不会显着影响数据库性能.

The simplest thing is probably to poll the DB every few seconds and see if new records have been inserted. Due to query caching in the DB this shouldn't effect DB performance substantially.