qt - Qt5: How to do a cleanup manager (1 or more tasks) that run periodically to do cleaning-job? -
i using qt5 under windows7.
need implement kind of cleanup manager application.
"activated" let's once per hour, in order perform cleanup job(s): trim history if it's > 1000 lines, delete records form database if older 30 days , other things this...
how should in order flexible (to allow future cleaning tasks added later) , have minimal/reasonable impact on application performance, i.e.: application kinda multitasking server doing tcp connections , database connections, etc , don't want cleanup manager/task(s) have negative impact on overall application speed/performance.
ok, let's short time drop in performance acceptable long user/client won't complain such aspects :)
novice in qt programming... thinking using qtimer periodically triggers qtask/qthread or something...?
regards, stanley.
you on right track can use qtimer trigger cleanup slot in cleanup manager. can keep adding different slots different cleanup activity. looking @ query seems better have cleanup task in threads cleanup done async , have less impact on performance.
Comments
Post a Comment