Hi guys, i am currently stuck at live update the data fetched from mysql. The problem now is, if the table has thousand of data, the webpage will hang/lag because of the setInterval() are fetching the data over and over again.
My question is, what is the best solution for this?
Any example to makes me clear?

Why would you read everything? You just need to fetch the items that have changed. How depends on what you are doing and how you are doing it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.