DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Update performance

  1. #1
    Join Date
    Sep 2000
    Posts
    103
    My developer has a query doing an update on a table of maximum of 1500 records.
    Is there anyway the developer can speed up the update performance ?

    The statement is simialr to this, a very simple update stmt.

    UPDATE table set col2=:xa, col4=:xb, col5=xc
    where col1=:x1 and col3=:x3;

    I have an index on col1 and col3.

    IS there also any performance benefits if update is done for one column individually?

    update table set col2=:xa
    where col1=:x1 and col3=:x3;

    Many thanks

    pst.

  2. #2
    Join Date
    Oct 2000
    Posts
    467
    Hi,
    If the columns updated are a part of index then it will take some time..since it has to update both the table and the index.
    I don't think there will be much difference in updating 1 col at a time , especially when u have only 1500 rows to be updated.

    Cheers,
    Vinit

  3. #3
    Join Date
    Sep 2000
    Posts
    103
    Thanks a lot, Vini. But we are not updating an indexed column.

    pst.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width