Re: [PHP-DB] Optimizing Query

2007-07-25 Thread OKi98
Arie Nugraha napsal(a): Hi list, I Have a problem with my query that fetch about 22.000 records from database, the query is like this : SELECT SQL_CALC_FOUND_ROWS DISTINCT b.biblio_id, b.title, a.author_name FROMbiblio AS b LEFT JOIN biblio_author AS ba ON b.biblio_id=ba.biblio_id LEFT JOIN

Re: [PHP-DB] Optimizing Query

2007-07-24 Thread Chris
Arie Nugraha wrote: Hi list, I Have a problem with my query that fetch about 22.000 records from database, the query is like this : SELECT SQL_CALC_FOUND_ROWS DISTINCT b.biblio_id, b.title, a.author_name FROMbiblio AS b LEFT JOIN biblio_author AS ba ON b.biblio_id=ba.biblio_id LEFT JOIN

Re: [PHP-DB] Optimizing query for public search engine -- SORT OF SOLVED

2003-11-26 Thread Evan Morris
In case anyone is interested, I have (sort of) solved this problem. Importantly, I learned that Firebird does not support PEAR DB functions like numRows(), so you can't do it that way (at least, my version of Firebird doesn't). So what I have done is run the SELECT FIRST 15 SKIP x etc query - ie