Jump to content
UBot Underground

Multithreading And Saving...just Wondering...


Recommended Posts

So i am wondering imagine this scenario:

 

I am scraping data from 3 different sites into a same table 

every site is on its own thread

 

Now when you save data i usually use variable to increment row position what i want to know is what logic do you guys use to save data into the same table when multithreading there can be issues like:

 

What if the data is re-written by other variable from other Thread?

 

i mean what if data from site 1 is in the table and then it gets re-written over by data from site 2??

 

I am just exploring possibilities here to learn what is the best way!

 

 

Any help is appreciated!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...