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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:56:46+00:00 2026-05-16T23:56:46+00:00

I have a software system that performs OCR on Multiple machine simultaneously. Current system

  • 0

I have a software system that performs OCR on Multiple machine simultaneously. Current system works as follows:

  1. All documents which needs to be ocred are inserted into a table in db.
  2. Each client ocr machine pools that table and whenever data is found for ocr, it locks table and pick n no. of files for ocr. Locking is used for atomicity.
  3. After each document is ocred, status of the document is updated as complete.

I know this is a serious mistakes to set a database as a synchronization place. It is running fine but sometimes I can see dead lock on database..

So my question is, What is the better way to design such system, I want database as a storage device only not a synchronizing place. I want to hear your thoughts.

  • 1 1 Answer
  • 5 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-16T23:56:47+00:00Added an answer on May 16, 2026 at 11:56 pm

    Well, you could have a column in the table which says whether the record is currently being processed. Within a transaction, fetch the data for a record which isn’t currently being processed, and update the record to say that it’s now being processed. The details of how contention will be handled there will depend on the kind of transactions you create and the database you use, but I suspect that transactions should be at the heart of it.

    That’s assuming you really want to use a database rather than a message queue of some description. You might consider using a message queue in conjunction with the database… and some databases have queues built into them, which could be useful too. Even if you wanted the record in the database as well, you could have a queue just of the IDs – clients could just pull the next item from the queue, then fetch the data. You may still want to record the time at which the item was pulled from the queue, so that if the client crashes or something like that, a batch job can put any failed jobs (e.g. ones which were picked up a day ago but don’t have results yet) back in the queue.

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

Sidebar

Related Questions

I have some software written in VB.NET that performs a lot of calculations, mostly
We have a large SQL driven software system which has been around since Delphi
I've been working on a comprehensive build system that performs distributed builds on multiple
We currently have an inventory management system that was built in-house. It works great,
We have an embedded device that needs to interact with an enterprise software system.
We have software that runs fine under a normal Windows installation but when we
I have a software that is tracking an NTFS volume changes on a Windows
We have this software that has a webservices component. Now, the administrator of this
I have a software that runs on mac (using terminal program) the program is
I have a software renderer that I am porting from PC to the iPhone.

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.