MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 14th, 2012, 02:38 AM
er.ajaysmittal er.ajaysmittal is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 er.ajaysmittal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 14 sec
Reputation Power: 0
Mysql Inconsistency Issue Faced In Production Server

Hi All,

Yesterday, i came across a problem which let me to scratch every hair of mine.

My application got stuck due to a query :

select * from tbl_name where fld_name ='xyz';

While executing this query even in db it use to wait for around 10 seconds though the table contains only 10 entries and then results with mysql connection disconnected.

But when i execute select * from tbl_name; it provides rapid results wit no issues.

Even if i try with some other value like select * from tbl_name where fld_name ='pqr'; then also it executes but it fails only for a specific value 'xyz'.

This issue was faced in production server. Initially i created a new database and connected my application to it.

Can someone let me know what is wrong?

Regards,
Ajay Mittal

Reply With Quote
  #2  
Old December 14th, 2012, 11:06 AM
joeflinthiggins joeflinthiggins is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 14 joeflinthiggins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 20 m 33 sec
Reputation Power: 0
Was there an index on the table for column fld_name? If so, it may have gone bad and been causing negative things to happen when accessed.

There's no reason to have an index on a table with only 10 records, as a full table scan will not take any longer than an index scan.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Mysql Inconsistency Issue Faced In Production Server

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap