GNU Info

Info Node: (mysql.info)Update speed

(mysql.info)Update speed


Next: Delete speed Prev: Insert speed Up: Query Speed
Enter node , (file) or (file)node

Speed of `UPDATE' Queries
-------------------------

Update queries are optimized as a `SELECT' query with the additional
overhead of a write. The speed of the write is dependent on the size of
the data that is being updated and the number of indexes that are
updated.  Indexes that are not changed will not be updated.

Also, another way to get fast updates is to delay updates and then do
many updates in a row later. Doing many updates in a row is much quicker
than doing one at a time if you lock the table.

Note that, with dynamic record format, updating a record to a longer
total length may split the record.  So if you do this often, it is very
important to `OPTIMIZE TABLE' sometimes.  *Note `OPTIMIZE TABLE':
OPTIMIZE TABLE.


automatically generated by info2www version 1.2.2.9