Solved

in mysql database 5.14 even select causes locks, is there any mitigation?

Posted on 2010-09-21
3
403 Views
Last Modified: 2012-05-10
in mysql database 5.14 even select causes locks, is there any mitigation?
0
Comment
Question by:AGAFFAR
3 Comments
 
LVL 11

Expert Comment

by:mattibutt
Comment Utility
Does it get locked when you try to execute a query is it some third party application database
0
 
LVL 1

Author Comment

by:AGAFFAR
Comment Utility
<Does it get locked when you try to execute a query >
yes, if it is complex query

< is it some third party application database >
no, it is main database

0
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
Comment Utility
Yes, it most systems, there will be a lock of some sort on read.  For SQL server you can get around this using WITH(NOLOCK) or setting transaction isolation level.  For MySQL, you don't have WITH(NOLOCK), so you just use the isolation level READ UNCOMMITTED.

Here is a good writeup on the topic:
http://articles.itecsoftware.com/mysql/with-nolock-table-hint-equivalent-for-mysql
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

772 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

11 Experts available now in Live!

Get 1:1 Help Now