26 messages in com.mysql.lists.mysqlRe: Do I need to tweak my server vari...| From | Sent On | Attachments |
|---|---|---|
| Grant Giddens | 20 Dec 2005 19:37 | |
| James Harvard | 21 Dec 2005 03:19 | |
| Grant Giddens | 21 Dec 2005 05:50 | |
| Hank | 21 Dec 2005 06:10 | |
| Grant Giddens | 21 Dec 2005 06:17 | |
| Eris Ristemena | 21 Dec 2005 06:19 | |
| James Harvard | 21 Dec 2005 06:25 | |
| Hank | 21 Dec 2005 06:39 | |
| SGr...@unimin.com | 21 Dec 2005 07:00 | |
| Gleb Paharenko | 21 Dec 2005 07:40 | |
| Peter Brawley | 21 Dec 2005 07:43 | |
| Eris Ristemena | 21 Dec 2005 07:53 | |
| Eris Ristemena | 21 Dec 2005 08:01 | |
| SGr...@unimin.com | 21 Dec 2005 08:11 | |
| Eris Ristemena | 21 Dec 2005 09:14 | |
| SGr...@unimin.com | 21 Dec 2005 09:31 | |
| Eris Ristemena | 21 Dec 2005 09:42 | |
| Grant Giddens | 21 Dec 2005 09:57 | |
| Hank | 21 Dec 2005 10:33 | |
| Grant Giddens | 21 Dec 2005 10:44 | |
| Grant Giddens | 21 Dec 2005 14:10 | |
| Hank | 22 Dec 2005 16:07 | |
| Grant Giddens | 23 Dec 2005 06:45 | |
| James Harvard | 23 Dec 2005 08:17 | |
| Grant Giddens | 23 Dec 2005 08:49 | |
| Hank | 23 Dec 2005 15:03 |
| Subject: | Re: Do I need to tweak my server variables for this SELECT statement?![]() |
|---|---|
| From: | Grant Giddens (lggi...@yahoo.com) |
| Date: | 12/23/2005 06:45:35 AM |
| List: | com.mysql.lists.mysql |
Thanks Hank. I'll try to split up the query into 2 separate queries. I think
that the reason the original query is so slow is that I don't have enough RAM
allocated to mysql. When the original query takes place, I see a process
"Copying to tmp table on disk". I believe it's writing all the data to the
disk and then sorting it. I'd like to try tweaking the my.cnf file to allow
mysql to use more RAM. I just need someone to help me edit the file because
I'm not quite sure what I'm doing...
Thanks, Grant
Hank <hes...@gmail.com> wrote: > Now that I know what's causing the slow
queries, what can I do to fix it?
The only thing I can suggest is breaking up the query into two parts - the first part to retrieve just the product codes and salesrank, and sort and limit that.. save in a temp table or use application code to retrieve and print the rest of the product info. Sorting 300,000+ records in that huge result set is going to take some time (although it shouldn't take 10 minutes).
-Hank
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=lggi...@yahoo.com
--------------------------------- Yahoo! DSL Something to write home about. Just $16.99/mo. or less




