rails-sqlserver / tiny_tds

TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
Other
607 stars 189 forks source link

Bulk Insert performs multiplied insert #364

Closed sithara closed 7 years ago

sithara commented 7 years ago

Have been noticing this issue for long - it does not happen regularly though only when I add the script to the cron - the bulk insert performs itself n times

Meaning if 7k records were to be saved to the database, I get 7k * n records saved

Not sure whats going around. I'm using azure sql server I also tried using bulk_insert , still I get the issue. I'm trying to save 60k records in a stretch

Kindly help

metaskills commented 7 years ago

I need your help to reproduce this. Would you be able to provide example SQL and or Ruby to reproduce the issue.

metaskills commented 7 years ago

Closing this issue. But please do respond with more info if it becomes present.