» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2007, 04:01 AM
Macspeed Macspeed is offline
Junior Member
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Macspeed is on a distinguished road
Default locking problems......

Hi everyone,
One of my table will be receiving inserts 24/7/365, every few seconds.
This table needs will be used to generate reports. But when inserts are running and I run a long query, I start to get timeout errors on the client and others locking problems.

In SQL Server, READPAST allows to perform a query skipping anything that's locked. What equivalent solution can offer MySQL? Any idea?
Thank you. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 05-07-2007, 06:38 AM
Renne Renne is offline
OSP Addicts
 
Join Date: Aug 2006
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 15
Renne is on a distinguished road
Default Re: locking problems......

If using MyISAM tables and never delete anything from them, INSERTS will automatically run in parallel to queries.

If you need to delete something from time to time, try to do it in big bunches and run OPTIMIZE afterwards.

MyISAM always locks the whole table. If you want to have row locks, ALTER the table to an InnoDB table. Also, tune your application by using the optimal isolation level then. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems With Updating DNS longhornfreak Web Hosting Industry 0 02-16-2007 11:17 PM
update locking behavior Joiyce MySQL Forums 1 12-12-2006 03:56 AM
problems with Google Toolbar recently? hunter Google 3 09-18-2006 02:19 PM
problems with damlogs???? Katlyn Web Hosting Industry 1 08-07-2006 04:56 AM
deadlock problems....??? Marie MySQL Forums 1 08-05-2006 06:45 AM


All times are GMT. The time now is 03:17 AM.