MySQL Forums
Forum List  »  Newbie

Re: Corruptions like crazy
Posted by: John Bowles
Date: May 01, 2015 04:18AM

Thanks Andrew.
I was thinking about it last night. I think you are correct. Some parts of the database may at times need rollbacks and crashes sure don't help speed things up so InnoDB is good. The part that does the matching record processing involves two many-to-many link files and only one of them has the loop-within-loop and only at two levels. I came from a background of Assembler and Cobol originally where there were no indexes. As a result we always sorted in optimal order before processing. I know exactly the order this should be done in these matching record loops. I am assuming at this point that new insertions are putting data at the end of the table and the index is a temporary way to get the data processed in order and the optimize puts the data in a better order (as we use to do in the past) for the processing. If this assumption is correct then the question at this point is "How to I get the data in the order of the index I have set up for these high intensity loops which can process several hundred records to get my common song counts". In other words, can I optimize to a specific index rather than the primary key or do I need to change this index to the primary key.
Lots to read and learn. I have your post with the optimize parameter which is a great help. I also by accident stumbled on this there they resolved a speed issue. I haven’t studied it yet but I assume they are using the optimize parameter in the context of a bigger process.
http://www.laurencegellert.com/2011/07/mysql-maintenance-tasks-for-innodb-with-mysql-5-1/
Google: “Manage Optimize MySql” is typically how I would find my learning material. At times “tutorial” or “Beginners guide” is added to the search if the material is 100% new to me.

Options: ReplyQuote


Subject
Written By
Posted
April 29, 2015 11:33AM
April 29, 2015 11:49AM
April 29, 2015 12:20PM
April 29, 2015 12:40PM
April 29, 2015 01:04PM
April 29, 2015 01:36PM
April 29, 2015 01:48PM
April 29, 2015 02:00PM
April 29, 2015 02:59PM
April 29, 2015 03:30PM
April 29, 2015 04:24PM
April 30, 2015 07:44AM
April 30, 2015 07:48AM
April 30, 2015 08:44AM
April 30, 2015 08:57AM
April 30, 2015 08:59AM
April 30, 2015 09:40AM
April 30, 2015 10:19AM
April 30, 2015 01:45PM
April 30, 2015 02:42PM
April 30, 2015 03:36PM
April 30, 2015 07:36PM
April 30, 2015 10:50PM
Re: Corruptions like crazy
May 01, 2015 04:18AM


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.