Re: problems counting the number of returned rows

2004-09-08 Thread JVanV8
Hi Guys, I'm having the same problem with SQL_CALC_FOUND_ROWS Any query involving SQL_CALC_FOUND_ROWS takes ages!! All my tables are normalized, indexed, and optimized and the query uses the indices correctly. Many people responded to my previous thread (when I though it was a fulltext issue onl

Re: problems counting the number of returned rows

2004-09-07 Thread Arthur Radulescu
he manual first if > it's a live system) > > Andy > > > -Original Message- > > From: Arthur Radulescu [mailto:[EMAIL PROTECTED] > > Sent: 07 September 2004 15:03 > > To: Andy Eastham; Mysql List > > Subject: Re: problems counting the number

RE: problems counting the number of returned rows

2004-09-07 Thread Andy Eastham
age- > From: Arthur Radulescu [mailto:[EMAIL PROTECTED] > Sent: 07 September 2004 15:03 > To: Andy Eastham; Mysql List > Subject: Re: problems counting the number of returned rows > > Thanks for the tip! It is much faster now... > But it still takes about 3 seconds which makes

Re: problems counting the number of returned rows

2004-09-07 Thread Arthur Radulescu
egory) from books > where category=1 limit 0,10 > > ie change "*" to "category" (which can be read from the index)? > > Andy > > > -Original Message- > > From: Arthur Radulescu [mailto:[EMAIL PROTECTED] > > Sent: 07 September 2004 14:23

RE: problems counting the number of returned rows

2004-09-07 Thread Andy Eastham
MAIL PROTECTED] > Sent: 07 September 2004 14:23 > To: [EMAIL PROTECTED] > Subject: problems counting the number of returned rows > > Hello! > > I am having a problem retrieving the number of records matching a certain > condition from the database. > I have a large table of

problems counting the number of returned rows

2004-09-07 Thread Arthur Radulescu
Hello! I am having a problem retrieving the number of records matching a certain condition from the database. I have a large table of about 3 millions records A simple query like the one below returns me the results select * use index(category) from books where category=1 limit 0,10 This query