Solved

MySQL priority

Posted on 2009-05-19
2
767 Views
Last Modified: 2012-05-07
Dear Experts,

Is it possible to prioritize MySQL jobs in order or importance, so if 2 people, 1 person does a select and the other does an insert, the select gets priority.  If someone has already started an insert, then later someone starts a select, can the select take priority by reducing the CPU usage of the insert?  Also, the same with full text indexing, when a table is being index, is it possible to reduce its priority to allow select to take over?
0
Comment
Question by:narmi2
2 Comments
 
LVL 4

Accepted Solution

by:
manavsi earned 300 total points
ID: 24423650
0
 
LVL 26

Assisted Solution

by:ushastry
ushastry earned 200 total points
ID: 24431954
In order to happen this (SELECT gets higher priority then READ) You need to convert all your INSERT statements to INSERT DELAYED statements... but make sure you table don't have much holes(DELETES).. and make sure concurrent_insert is set to 1
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now