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 ms

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 mst_au

[PHP-DB] Optimizing Query

2007-07-24 Thread Arie Nugraha
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 mst_author AS a ON ba.author

Re: [PHP-DB] Optimizing Tables

2007-04-01 Thread Anna V
On 4/1/07, Bastien Koert <[EMAIL PROTECTED]> wrote: I would say no, due to the overhead. What I would recommned is setting that up as a cron task and running it on a scheduled basis, usually when the server is liightly loaded. Monitor the server and pick an optimal time. This is the same for all

RE: [PHP-DB] Optimizing Tables

2007-04-01 Thread Bastien Koert
monitoring etc. hth Bastien From: "Anna V" <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [PHP-DB] Optimizing Tables Date: Sun, 1 Apr 2007 14:35:51 -0500 Hello group, I just have a quick question for you all. Here is it... Is it advisable to run optimize table after ea

[PHP-DB] Optimizing Tables

2007-04-01 Thread Anna V
Hello group, I just have a quick question for you all. Here is it... Is it advisable to run optimize table after each deletion of a record? Thanks in advance, Anna Vester

Re: [PHP-DB] optimizing indexes -mysql

2006-05-04 Thread Miles Thompson
At 08:44 AM 5/4/2006, blackwater dev wrote: I just doubled the size of my MySQL db, is there a command I should run to re-index everything or is that automatic? Thanks! Well, it is automatic and MySQL does not need a lot of attention. Having said that, what table type(s) are you using, and wh

[PHP-DB] optimizing indexes -mysql

2006-05-04 Thread blackwater dev
I just doubled the size of my MySQL db, is there a command I should run to re-index everything or is that automatic? Thanks!

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

2003-11-26 Thread Evan Morris
till seems like a clunky solution, but it has helped somewhat. - Original Message - From: "Evan Morris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 26, 2003 12:01 PM Subject: [PHP-DB] Optimizing query for public search engine > Hi all > &g

[PHP-DB] Optimizing query for public search engine

2003-11-26 Thread Evan Morris
Hi all I'm using Firebird as the back-end for a web site. The search engine is written in PHP, using bog-standard SQL queries. Here's the problem: In order to make the results listing work well, the page needs to know how many records match the search criteria. This is so I can a) display '1 to

Re: [PHP-DB] Optimizing

2002-11-10 Thread Maxim Maletsky
You should index everything that is used in WHERE, ORDER and GROUP clauses. Means, if your queries do SELECT * FROM people WHERE name='maxim'; you should add an index on name field. Also, if you do something like this: SELECT * FROM people WHERE name='maxim' ORDER BY surname; then you better a

Re: [PHP-DB] Optimizing

2002-11-10 Thread Peter Beckman
On Sun, 10 Nov 2002, Chris Payne wrote: > Hi there everyone, > > How does indexing work, and does it speed up small / average size DB's of > around 20,000 records, with 12 columns per record? (Some columns being > paragraphs of text). YES! 20,000 records is still a lot of records, and indexing

Re: [PHP-DB] Optimizing

2002-11-10 Thread .: B i g D o g :.
This varies from database to database. I would suggest reviewing the documentation on your database type. For review here is some information on indexing from PostgreSQL (my database of choice): http://www.postgresql.org/idocs/index.php?indexes.html That should give you some ideas on how indexi

[PHP-DB] Optimizing

2002-11-10 Thread Chris Payne
Hi there everyone, How does indexing work, and does it speed up small / average size DB's of around 20,000 records, with 12 columns per record? (Some columns being paragraphs of text). Also, do you create an index on everything or just 1 item or or or :-) I've not looked at indexing but think i

Re: [PHP-DB] optimizing script...

2002-02-15 Thread Dan Brunner
Hello... Try this... $pat = array("\", "@", "*", "&", "%"); $with = (_) \\What ever you want... $car_year = str_replace ($pat, $with, stripslashes($car_year)); echo $car_year; This would work with ONE VARIABLE... I suppose maybe you could make the Variables($car_type,$car_mod

[PHP-DB] optimizing script...

2002-02-15 Thread jas
I have a script that prevents invalid characters from being passed from a html form to a mysql database using php and I am wondering if there is a way to condense it so instead of declaring the ereg_replace for each field in the html form, to simply use one function to remove invalid characters an

RE: [PHP-DB] Optimizing mail()

2002-01-16 Thread Beau Lebens
@yahoo.com | +-+---++ and it seemed to mail faster than if it was in random order. hope that helps -b // -Original Message- // From: olinux [mailto:[EMAIL PROTECTED]] // Sent: Tuesday, 15 January 2002 10:57 AM // To: [EMAIL PROTECTED] // Subject: [PHP-DB] Optimizing mail() // // //

[PHP-DB] Optimizing mail()

2002-01-14 Thread olinux
Just came across this post and wondered if anyone has done this - if so can you share some code? The idea is to order emails by the mailservers Would you just order the emails by domain name? [that would group all aol.com, msn.com, yahoo.com emails] http://www.faqts.com/knowledge_base/view.phtm