Re: [GENERAL] "select count(*) from contacts" is too slow!

2003-10-08 Thread Ang Chin Han
Christopher Browne wrote: A long time ago, in a galaxy far, far away, [EMAIL PROTECTED] wrote: MySQL can tell you from it's index because it doesn't care if it gives you the right number or not. Under what circumstances would MySQL give the wrong number? It would give the wrong number under _e

Re: [GENERAL] "select count(*) from contacts" is too slow!

2003-10-08 Thread Greg Stark
Ang Chin Han <[EMAIL PROTECTED]> writes: > Heck, even using myisam, mysql's count(*)'s still accurate, since all INSERTs, > etc are autocommitted. That's sort of true, but not the whole story. Even autocommitted transactions can be pending for a significant amount of time. The reason it's accura

Re: [GENERAL] "select count(*) from contacts" is too slow!

2003-10-08 Thread Christopher Browne
A long time ago, in a galaxy far, far away, [EMAIL PROTECTED] wrote: >> MySQL can tell you from it's index because it doesn't care if it gives you the >> right number or not. > > Under what circumstances would MySQL give the wrong number? It would give the wrong number under _every_ circumstance

Re: [GENERAL] "select count(*) from contacts" is too slow!

2003-10-07 Thread nolan
> MySQL can tell you from it's index because it doesn't care if it gives you the > right number or not. Under what circumstances would MySQL give the wrong number? -- Mike Nolan ---(end of broadcast)--- TIP 6: Have you searched our list archives?