If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Order By ???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-04, 15:29
Matrix28 Matrix28 is offline
Registered User
 
Join Date: Sep 2003
Posts: 47
Order By ???

How can speen up/optimize an order by querry? They have been running so slow!!
Reply With Quote
  #2 (permalink)  
Old 08-27-04, 16:45
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,410
truncate table <your_table>;
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #3 (permalink)  
Old 08-27-04, 18:33
Matrix28 Matrix28 is offline
Registered User
 
Join Date: Sep 2003
Posts: 47
Sorry, can you explain a little further!
Reply With Quote
  #4 (permalink)  
Old 08-30-04, 09:51
gvphubli gvphubli is offline
Registered User
 
Join Date: Sep 2003
Location: United States
Posts: 53
if table is big - say some 10,000 plus records then u try creating indexe on the column used in the ORDER BY clause, also think of indexes on the columns used in WHERE clause too. For index creation thing refere to MySql reference material.
__________________
Girish Patil
10+ Yrs of SQL Server Dev & Admin Exp.
ITIL Foundation Certified
Visit my blog : http://gvphubli.*************/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On