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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:21:27+00:00 2026-05-23T21:21:27+00:00

I am writing a cron script that will routinely go through rows in a

  • 0

I am writing a cron script that will routinely go through rows in a specific table, parse the text, and then generate system-based tags for use in other operations.

This table is the life-blood of our site, and is quite large – and I am wondering if it is better to have the cron script work directly with this table, or syphon the text to be parsed off to another table, with which my cron script can safely work.

Here’s a diagram of my thoughts:

Option 1:

Table 1: "blogs"
Table 2: "blog tags"

** cron script 'scrapes' the blogs table, marks each scraped blog to prevent duplicate scrapes, and then puts tags in the blog tags table

Option 2

Table 1: "blogs"
Table 2: "blogs to be parsed"
Table 3: "blog tags"

** when blogs are posted, some of their text and metadata is also inserted into "blogs to be parsed", which is the only table the cron script will have to then deal with.

Is there a performance / safety benefit for adding a layer of abstraction like this?

  • 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-23T21:21:27+00:00Added an answer on May 23, 2026 at 9:21 pm

    I don’t see any benefit to the extra table unless you are worried your script will accidentally mess up data in the blogs table. Since this is a read only operation, you’d have serious bug for that to happen. Using the original table also means you are using the indexes defined there, so it should be fast.

    You are just reading rows and setting a flag. Your blog engine is doing way more with the same table.

    Edit

    If you are worrying about the flag when updating the table, address that. Create a table with a foreign key to blogs, and a bit that says updated. Now you don’t do any writes to the blog table in the cron job. Reads don’t require any locks whatsoever.

    However, unless the blog table is being hit hundreds of times per second, the update is so fast it will be imperceptible. As long as you are using innodb or a storage engine that supports row level locking, you are good.

    Also make sure you do your updates at midnight when there is low traffic

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

Sidebar

Related Questions

I am writing a bash script that I plan to execute via cron. In
I am writing a cron job that will need to pull out the current
I am attempting to build a script that will log data that changes every
I'm writing a Python script that may or may not (depending on a bunch
I am writing a script to capture disk usage on a system (yes, I
I'm writing some scripts for my boss that reads a specific user's tweets over
I'm writing a script in Perl that needs to run at the same time
I am problem scheduling and running a script through cron job. I am on
Writing a JSP page, what exactly does the <c:out> do? I've noticed that the
I writing a report in Visual Studio that takes a user input parameter and

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.