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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:39:44+00:00 2026-06-07T03:39:44+00:00

I have a database that around 8 fields in various tables are dates and

  • 0

I have a database that around 8 fields in various tables are dates and these need to be checked everyday for if they are about to or have already expired.

I want to use a CRON Job to achieve this, but baring in mind that the database will eventually have 50,000 rows possibly more. Running a script that checks all of the dates would most likely time out.

I was thinking of segmenting the search script into chunks. So it will run for a few thousand rows then stop. Then five minutes later pick up from where it left of, by querying a field in the database that stores where it last finished. And once it has iterated through all rows stop.

But I don’t know if this is wise or even possible for a script to set itself to run again in 5 minutes.

Any advice would be appreciated.

  • 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-07T03:39:45+00:00Added an answer on June 7, 2026 at 3:39 am

    You wouldn’t have to run over the complete table. You could just run a query for that right?

    SELECT something FROM tbl_name WHERE NOW() >= date_col;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an Oracle database here that's been around for about 10 years. It's
I have a database that has around 10k records and some of them contain
I have a database that has 16 tables, but only four are relevant to
I have a database that which contains two tables, links and tour. Tour is
I have a Database that contains data about articles , structures and manufacturers .
I have a huge form that has around 110 fields columns (single row) that
I have a legacy database with a pretty evil design that I need to
I have a database object called manor_stats , with around 30 fields. For most
I have a page that has around 30 different entry fields, one of the
i have DataBase function that calculate distance by coordinates CREATE OR REPLACE FUNCTION distance(lat1

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.