Seems to me that the easiest way to control this would be for a store procedure to grab only a subset of data say 20 records and mark those records as in use. I would setup a separate column with a value of 0, then as the data is being processed by the store proc, change it to 1. The next instance would then not grab any rows that are marked 1.
Leon
Main Topics
Browse All Topics





by: Raynard7Posted on 2007-07-24 at 17:02:31ID: 19561176
Hi,
What table types are you using? And what version of mysql?
Depending on these the stored procedures may / may not work and there may not be row level locking enabled.
However if you are using ado then you can execute sql strings directly so should be able to do anything you would do with a stored procedure if you are using the correct versions.
can you have one program (server side) that returns the next row, then you will nto get any contenion issues.