

There are around 500 000 products so I'm a bit worried about performances.
#Best database software python update
Then compare and update the product if the new hash is different from the old one. I will store all hashes in a single table ( item code, current_hash, old_hash ) for performances purpose.

A new hash based on the same data will be created on a daily basis from the source database.
#Best database software python code
I think about creating a hash for each product, based on the fields to update in the target database: md5( code + description + supplier + around 10 other fields). So the whole process needs to be done in a single Python (ideally) script. There are no "updated time" fields anywhere.Target database uses a MySQL server - source may be DB2.Target and source db have completely different structures, tables are not the same at all, therefore data really have to be rearranged - comparing tables won't work.

