1
I have a code that accesses the database every second and returns me the number of rows of a table, the problem is that an abusive number of requests and queries are made in the database to monitor changes in the lines, I need something that monitors changes in the database and returns only the result when there are changes in the number of lines, how can I do this ?