Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9231905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:11:08+00:00 2026-06-18T06:11:08+00:00

Currently i am using cron for this. I thought perhaps it is possible to

  • 0

Currently i am using cron for this. I thought perhaps it is possible to implement some procedure that will remove all data from database that is older than one month, but i am not sure that this is the best way.

Problem is that we have many servers with many cron processes, that are controlled by very small amount of stuff, and we need to make it clear and easy-to-manage, that’s why i don’t want to have such cron process.

Data in table i want to delete – statistics, huge amount of this data is inserted every day, and if it will not be deleted – database will be unbeliaveable huge (about ~500M every day, for us it’s quite big amount, 500M * 365 days is 182,5G per year)

Is it possible to delete data using some procedure in mysql (perhaps after new row is added) / and is that a good idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:11:09+00:00Added an answer on June 18, 2026 at 6:11 am

    If you’re intending on moving away from cron jobs, you could always create an event that runs at a scheduled frequency.

    Whatever you do, it’s a very bad idea to delete data every time a new row is added, as it’ll slow down your insert and it’s more likely to fragment your tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using a cron job to have a perl script that tells my
Currently using MySQL version 5.1.6 This is my first real world build and so
I currently using android NDK to write some native code in C. I have
I currently have a client website on the Grid server on MediaTemple that will
I am currently using CURL via a php script running as daily cron to
I am currently reading this documentation here where I want to use CRON. Now
I am having trouble making this work and am looking for some help. Currently
I have an app that currently that i have to cron to run that
Currently we are using cron strings for setting Quartz jobs in our project. But
I have a cron task that runs once a day, using Heroku's Daily Cron

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.