troubleshooting Question

How to garantee that different client threads work on different subsets of data

Avatar of CarlosScheidecker
CarlosScheidecker asked on
DatabasesMySQL Server
6 Comments1 Solution350 ViewsLast Modified:
Hello,

I have a table of 1.000 Urls. I also have 4 clients that need to work on those URLs at the same time. I would like to garantee that each client works on unique URLs. Meaning, I want to divide that by four so that each one has 250 URLs to work with. Those URLs change. What I would like to do is to do some sort of locking on a subset of URLs so that only that client can read those 250 URLs with a select * form tbl_URL while the others can only do the same within their set.

I need to make sure that no 2 clients process the same URLs.

Once the URL is processed, it can be relased back to the pool.

How can I do that?

Thanks.
ASKER CERTIFIED SOLUTION
CarlosScheidecker

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros