I am writing a simple Ajax script to check a MySQL database very 5 seconds for any new records and to add them to a table using jquery.
The page may be open for several hours without reload. The server it will be polling is internal, small, and network has very little traffic so the poll speeds will be instant.
Is their anything I need to be careful of or anything I need to do to keep the 5seconds going?
The system runs a messaging system that isn't operated, so it needs to work and cannot rely on people manually refreshing.
Any guidance would be great!