MySQL Forums
Forum List  »  Performance

Update speed
Posted by: Mark Modrall
Date: October 19, 2005 09:03AM

Hi...

I've got a process that selects rows from a MyISAM table for update. The updates are really small - updating 2 1-byte flag fields. It's written in C# using the .Net connector to a remote server.

I have one connection executing the select/Read() and another connection executing the update command (i had trouble using a connection with an active reader for other purposes). Anyway, as it stands, updating 1.4M rows is taking about 40 minutes, which seems like a long time given that it's only flipping a couple of bits. Neither of the changed bytes are part of an index that would need updating.

I've tried using UPDATE LOW_PRIORITY but that doesn't seem to improve performance appreciably.

I'm figuring a big chunk of the update time is due to it having no context and it having to go look up the record again on the primary index.

Is there any way to improve the performance of a select/update operation since you know every record selected needs an update?

Thanks
_mark

Options: ReplyQuote


Subject
Views
Written By
Posted
Update speed
2542
October 19, 2005 09:03AM
1255
October 19, 2005 10:34AM
1231
October 19, 2005 11:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.