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 6355393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:45:23+00:00 2026-05-24T22:45:23+00:00

I run a game statistics site. Its MySQL database is small potatoes compared to

  • 0

I run a game statistics site. Its MySQL database is small potatoes compared to most of the things people work on around here, but shared hosting does necessitate an eye on query optimization, particularly when performing lots of joins and sub-queries.

Earlier this week I moved a rather slow (~0.5s) query that grouped, counted, averaged, and sorted the ratings of members to a nightly cron job. Results are stored in a table.

Because we average about one new rating per day, the change does not cause any perceptible data inaccuracy to my users, AND the new query which just grabs rows from the table runs in the ~0.000X range, so all pages pulling that data are noticeably faster.

Clearly this is a good thing!

And as I sat there basking in the glow of my cron job, my mind started running through other aspects of the site and mentally tagging those that could be cron’d… (many)

Which leads me to wonder – is it possible to use cron too much?

Because my site’s database changes about once a day, I could conceivably run ALL complex queries (there are many) through nightly cron jobs and store the results in tables.

Is there ever a downside? (apart from data occasionally not being up-to-the-second accurate?)

  • 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-05-24T22:45:24+00:00Added an answer on May 24, 2026 at 10:45 pm

    Cron is great; it’s usually a good thing to refrain from reinventing wheels. Some applications have more precise needs than cron can accommodate, so that’s one reason not to use it. Also, distributing and managing cronjobs that are to form an integral part of your app can be difficult and error-prone, especially absent a competent package manager from the OS. Troubleshooting can be a little bit of a pain, particularly when there’s one server missing one of its 100 cronjobs or something, but that can be managed with an OS package manager or with something like puppet.

    But my opinion is to use cron whenever you can and makes sense, rather than rolling your own.

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

Sidebar

Related Questions

I am creating a small Yahtzee game and i have run into some regex
I work on a game project. Recently, we run into a problem which we
I'm trying to make a small android Jump and Run game but my problem
I run a game and the running is done by hand, I have a
How could I run a game made with XNA on the iPhone/iTouch? Which steps/tools
Which one performs better to run a game main loop?
I run a browser based game at www.darknovagames.com. Recently, I've been working on reformatting
I've run into another problem while fixing up my game to use this library.
I'm working on writing a Pong game and I've run across a problem. I'm
I'm having problems getting my game engine to run on my brother's machine, which

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.