The fastest I've ever found a race condition for a UUID in a database
I'm putting together a class on web scraping and was being lazy when developing a multi-threaded scraping application. I figured there was no way that two threads would scrape two different web pages, return, and attempt to write to the database with a millisecond-level timestamp as a unique, primary key at the exact same time. What you're seeing is the first time I ran the code after implementing the timestamp.
I was IMMEDIATELY proven wrong. Software development has a way of humbling you.
Interested in the course? It will be out by November 11th! Subscribe to the channel for updates on the course as well as web scraping and development content!
--
Twitter:
https://twitter.com/viking_sec
Newsletter:
https://www.vikingsecblog.com/viking-sec-weekly-newsletter/
Blog:
https://vikingsecblog.com/
You can subscribe to my newsletter (or, obviously, to my channel) if you want updates about the course I'm developing or any of my videos. The course is sitting at about 9 hours of raw footage right now all about web scraping with Python: how to design it, how to design it ethically, how to develop it, how to maintain it and how to level it up. Gonna be honest, I'm super proud of it thus far!
--
#Coding #WebScrapers #Python