Re: amazingly slow

2001-02-09 Thread Benjamin Pflugmann
Hi. You may want to try a combined index (RecordNumber, WordNumber) on wordindex, because the indexes you have can only restrict on field (RecordNumber in the EXPLAIN below) e.g. ALTER TABLE wordindex ADD UNIQUE(RecordNumber, WordNumber); I presume that the RecordNumber/WordNumber pairs are uni

RE: amazingly slow

2001-02-06 Thread Julian Strickland
g it three times > -Original Message- > From: René Tegel [SMTP:[EMAIL PROTECTED]] > Sent: 06 February 2001 14:35 > To: Tim Samshuijzen; [EMAIL PROTECTED] > Subject: Re: amazingly slow > > Tim, > > Hmmm... so you are suggesting the format of the query mig

RE: amazingly slow

2001-02-06 Thread Tim Samshuijzen
s over time they lose their performance enhancement. >could that be true? > >dan > > >-Original Message- >From: Tim Samshuijzen [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, 6 February 2001 04:50 >To: [EMAIL PROTECTED] >Subject: Re: amazingly slow > > > &g

Re: amazingly slow

2001-02-06 Thread Tim Samshuijzen
Tegel" <[EMAIL PROTECTED]> >Sent: Tuesday, February 06, 2001 3:07 PM >Subject: Re: amazingly slow > > > >Yep, all requested fields are indexed. > >At 02:25 PM 6-2-2001 +0100, you wrote: >>Tim, >>Just kidding about the 513 Mb >> >>you put an

Re: amazingly slow

2001-02-06 Thread René Tegel
? regards, rene - Original Message - From: "Tim Samshuijzen" <[EMAIL PROTECTED]> To: "René Tegel" <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 3:07 PM Subject: Re: amazingly slow Yep, all requested fields are indexed. At 02:25 PM 6-2-2001 +0100, you

RE: amazingly slow

2001-02-06 Thread Daniel Kirk
50 To: [EMAIL PROTECTED] Subject: Re: amazingly slow Dear Dave, Thanks for your reply. (The table actually works with word numbers, as the words are present in a hash table. I explained it the way I did because functionally it is the same. So the actual search is for WordNumber values instead of

Re: amazingly slow

2001-02-06 Thread Tim Samshuijzen
lt;[EMAIL PROTECTED]> writes: > >> This still does not tell me why the query is amazingly slow. > >What else is happening on the system? what does, say, a vmstat 5 give? > > >-- >Dave Hodgkinson, http://www.hodgkinson.org >Editor

Re: amazingly slow

2001-02-06 Thread René Tegel
gards, rene - Original Message - From: "Tim Samshuijzen" <[EMAIL PROTECTED]> To: "René Tegel" <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 1:58 PM Subject: Re: amazingly slow Dear René, Thanks for your reply. Oops, the 513 was a typing mistake.

Re: amazingly slow

2001-02-06 Thread Dave Hodgkinson
Tim Samshuijzen <[EMAIL PROTECTED]> writes: > This still does not tell me why the query is amazingly slow. What else is happening on the system? what does, say, a vmstat 5 give? -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Hig

Re: amazingly slow

2001-02-06 Thread Tim Samshuijzen
;wordindex.word) ? I bet not. > > >- Original Message - >From: "Tim Samshuijzen" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, February 06, 2001 12:04 PM >Subject: amazingly slow > > >> >> >> Hello, I don'

Re: amazingly slow

2001-02-06 Thread Tim Samshuijzen
t (0.01 sec) This still does not tell me why the query is amazingly slow. Tim At 10:52 AM 6-2-2001 +, you wrote: >Tim Samshuijzen <[EMAIL PROTECTED]> writes: > >> Anyone out there who wants to save me and our company? > >You missed the i

Re: amazingly slow

2001-02-06 Thread René Tegel
AIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 06, 2001 12:04 PM > Subject: amazingly slow > > > > > > > > Hello, I don't understand why my queries are so incredibly slow. > > We have MySQL on a 800MHz Linux machine w

Re: amazingly slow

2001-02-06 Thread Dave Hodgkinson
Tim Samshuijzen <[EMAIL PROTECTED]> writes: > Anyone out there who wants to save me and our company? You missed the important first step: EXPLAIN the query. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-pur

amazingly slow

2001-02-06 Thread Tim Samshuijzen
Hello, I don't understand why my queries are so incredibly slow. We have MySQL on a 800MHz Linux machine with 513Mb. Most queries look like this: SELECT B.* FROM maintable AS M, wordindex AS YL1, wordindex AS YL2, wordindex AS YL3 WHERE YL1.Word = 'billy' AND YL1.RecordNumber = M