Reputation: 329
Will the next command work faster if I uncomment the third line?
UPDATE "Users"
SET "Type"=0
-- WHERE "Type"<>0
Upvotes: 0
Views: 49
Reputation: 247205
The command will be faster (at least not slower) for the following reasons:
It has to modify fewer rows.
It has to add fewer index entries.
Any ON UPDATE
trigger will fire fewer times.
Upvotes: 1