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

  • SEARCH
  • Home
  • 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 8460275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:33:42+00:00 2026-06-10T13:33:42+00:00

Q: Is it okay to set cronjob run script every minute or will it

  • 0

Q: Is it okay to set cronjob run script every minute or will it cause overload?
Reason why i want to run it every minute is:

Public script:
* Client adds (for example:) advertisment
* Script inserts data in mysql database (when = time + 2hrs, activated = 0, …)

Cronjob runs:

* Script checks mysql database, WHERE time is lower than "NOW", activated = 0 and takes that info, inserts it to another table, sets activated = 1 when it is inserted.. (activated = 1 happens in the first table (where Public script puts info))

So if this script runs every minute will is cause overload?

If Yes:
Q2 Is there other options you could suggest (about chaning how the script works)?

Thank you!

  • 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-10T13:33:43+00:00Added an answer on June 10, 2026 at 1:33 pm

    Every minute might be excessive, but it won’t overload the computer. All you’re performing is 1 SELECT and a few INSERTs. That should take a few seconds max.

    One design change you could make, though, is that generally it doesn’t make sense to copy data between tables in a relational database. You probably want to just reference the data with a foreign key, and use JOIN statements to access it with other information. In this case you wouldn’t copy anything in your cron job; you’d just insert a foreign key.

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

Sidebar

Related Questions

Okay so I've set up and tested a nice little WCF service. The client
Okay, so here's the idea; I want to create a set of icons that
Okay, so I have this form that is set to preload a DB record
Okay, I've been working through a set of string replacments for bbcode style tags
okay, so I'm trying to set up a webpage with a div wrapping two
Okay - I have a dilemma. So far my script converts page titles into
Okay maybe i just need another set of eyes on this, but I have
Okay, so I have a MySQL database set up. Most of the tables are
Okay, often I'll have a method that returns a Set of some sort. The
Okay so I'm using Javascript to set the onload attribute of a page. It

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.