views:

363

answers:

1

Hi Guys,

UPDATE table1 SET col1='True'     

This query takes more than 30 secs for about 6000 records. Why is it so slow?

+4  A: 

Do you have a trigger?

And see my answers here too: Why does an UPDATE take much longer than a SELECT?

gbn
I had trigger, temporarily turning off the trigger did the magic.ALTER TABLE table1 DISABLE TRIGGER ALL UPDATE table1 SET Col1='True' ALTER TABLE table1 ENABLE TRIGGER ALL
Rajesh