Unix Technical Forum

Query is slowest, why it works always with the index

This is a discussion on Query is slowest, why it works always with the index within the MySQL forums, part of the Database Server Software category; --> I have a query that it orders to me for date, and is fastest. Then in an other query ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:30 AM
andrea.zac@libero.it
 
Posts: n/a
Default Query is slowest, why it works always with the index

I have a query that it orders to me for date, and is fastest. Then in
an other query I must order for an other field (char (3)) and is
slowest, why it works always with the index of the date why in the
WHERE there is the condition for the date. How I can make in order to
velocizzare the query? Thanks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 07:30 AM
Jerry Stuckle
 
Posts: n/a
Default Re: Query is slowest, why it works always with the index

andrea.zac@libero.it wrote:
> I have a query that it orders to me for date, and is fastest. Then in
> an other query I must order for an other field (char (3)) and is
> slowest, why it works always with the index of the date why in the
> WHERE there is the condition for the date. How I can make in order to
> velocizzare the query? Thanks!
>


Andrea,

Without knowing the table structure, which indexes are available and the
queries you're using, it would be impossible to provide a meaningful
answer to your question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com