Long polling - Message system

前端 未结 4 866
夕颜
夕颜 2021-02-02 01:06

I\'m looking into doing some long polling with jQuery and PHP for a message system. I\'m curious to know the best/most efficient way to achieve this. I\'m basing is off this Sim

4条回答
  •  悲哀的现实
    2021-02-02 01:33

    Instead of adding new column as last_checked you can add as last_checked_time. So that you can get the data from last_checked_time to the current_time.

    (i.e) DATA BETWEEN  `last_checked_time` AND `current_time`
    

提交回复
热议问题