Jump to content
  • 0

Triggered action to delete records older than 10 minutes


johnv
 Share

Question

4 answers to this question

Recommended Posts

  • 0

Tasks can only run Hourly, Daily, Monthly. For better performance, it is advised that you have a leeway of 15 minutes for every task. in this case, you can only run 4 tasks per hour. So for the task to run every minute, you have to create 4 tasks, just what Maymusic has mentioned. So I think, it's not possible for you to run it every 10minutes. Unless, maybe if you set different timezones, which I have not yet tried. 

Link to comment
Share on other sites

  • 0

Running a Task every 1 hour might not be your best bet since it will frequently have to run through tables. It could affect the performance of your Application.

 

Why not create a View that filters out the record created 10 minutes prior to current timestamp?

To do so, just add 10 minutes to your timestamp field so we can identify which fields we can show (more on this below).

image.png.04757fff7bee8997f9a5bbb131743e98.png

 

Create a view to return the records that are created 10 minutes offset advanced of the current time

 

After then, just use this as your DataSource instead of the actual table.

image.png.1916264d3e39936221f30c8f7df8e242.png

 

You may use tasks to clean-up your actual table. Maybe once a day, or perhaps every three hours at most.

 

Hope this solution helps.

-DN31337!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...