Re: Advice about optomizing MYSQL
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Mon, 23 Oct 2006 06:30:34 +0200
ZeldorBlat wrote:
maxdamage wrote:Well, I was wondering if it would be better to do a series of smaller
queries (about 5 - 10) and use less overhead on the PHP end or do one
big querry that would fill a huge array (maybe 50x10) and use a ton of
overhead.
One big query. Trips to the database are generally expensive and a 50
x 10 array isn't very big at all. If all else fails, try the two and
see which performs better.
Keep in mind the distance to the mysql server from the machine running the php script. The further away the more risk for lag.
//Aho
.
- Follow-Ups:
- Re: Advice about optomizing MYSQL
- From: IchBin
- Re: Advice about optomizing MYSQL
- References:
- Advice about optomizing MYSQL
- From: maxdamage
- Re: Advice about optomizing MYSQL
- From: ZeldorBlat
- Advice about optomizing MYSQL
- Prev by Date: how do enable php to run "--with-mysql" ro curl on Windows XP?
- Next by Date: Re: how do enable php to run "--with-mysql" ro curl on Windows XP?
- Previous by thread: Re: Advice about optomizing MYSQL
- Next by thread: Re: Advice about optomizing MYSQL
- Index(es):
Relevant Pages
|