To achieve an interface, constantly take data from the database, can be controlled to start and stop, the language java, framework ssm, would like to ask if there are any components available?

piecemeal idea:
can you write a method in the interface at the beginning to receive the request, and then cycle through the database data? But what should I do when I stop? Have thought about in the timer, but there is no mature train of thought, hope to point out. Thank you
data about tens of thousands of items, I do not know whether there will be a performance impact.

Mar.04,2021

pagination, return to the current page after each reading, and take the current page as a parameter the next time you read it.
are you doing data Synchronize?


Recursive, start to stop listening to yourself.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3eb17-2c42e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3eb17-2c42e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?