Quote:
i could alternatively only commit at the end of the thread, however having 1 million or so uncommitted commands in the one transaction seems like a bad idea. is there a rough guide to how many commands a single transaction can handle? is it db specific?
If there is a limit it is db-specific. We are using MySQL with InnoDb and have had transactions that inserted 100+ million rows. The whole operation involved a lot of number crunching as well and took several hours. We had to turn off the binary log because it has a limit of 4GB/transaction and we hit the limit in one of the tests.
We are using PostgreSQL also a little, but have never tried it with that large data sets.