Solved

MySQL priority

Posted on 2009-05-19
2
780 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

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

Assisted Solution

by:Umesh
Umesh 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

717 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