sql - Update statement taking too long to execute -
I'm running a simple update statement that takes a lot of time to execute it. Here are the updates and index details.
The default value of the exported column is 0
UPDATE PAR_ITM SET has been exported -1 = WHERE was exported & lt; 1 [/ code> Index:
Nonclassed index [IX_PAR_ITM_Exported_1] ON [dbo]. [PAR_ITM] on [primary] at [PAR_ITM] ([Export] ASC (PAD_INX = closed, STATISTICS_NORECOMPUTE = ON, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80)
Then you are exporting 1 where the export is already equal to -1 . Maybe you used to change, where exported from = 0 will hit the lower rows?
Comments
Post a Comment