I am using Class::DBI for working with my mysql database. I have a program that gets listings of products from a web service, and I am trying to keep a copy of some of the aspects of the product. When I use "find_or_create" to create a record unless one already exists, it will instead add the products despite an exact copy already exists. I have the find_or_create call in a for loop that makes a hash every cycle and passes that to the database with find_or_create. 16 out of 21 times it duplicates an existing entry (that is my test data for now). I have compared the hash being sent with Data::Dumper and it is exact in all cases. I am wondering if something else is interfering.
Any ideas would be helped!