You are here: Re: [newbie] How to minimize DB load? « PHP Programming Language « IT news, forums, messages
Re: [newbie] How to minimize DB load?

Posted by Jerry Stuckle on 12/07/06 11:58

Vincent Delporte wrote:
> On Wed, 06 Dec 2006 21:34:14 -0500, Jerry Stuckle
> <jstucklex@attglobal.net> wrote:
>
>>A persistent connection is one which hangs around - that is, when you
>>close the connection, it doesn't really "close" it - as in it doesn't
>>disconnect from MySQL.
>
>
> OK. I was wondering what the difference was between mysq_connect() and
> _pconnect().
>
> So, to minimize load, the first step is making sure the DB schema +
> queries are prestine, and then, try to make as few calls as possible.
> Short of using an application server instead of CGI like PHP, there's
> not much I can do on a shared server?

Actually, you wouldn't want an application server as much as a database
server. An application server won't reduce database load.

It sounds like you need to optimize something. But what you need to do
and how to do it is very much dependent on your application and MySQL;
it's really impossible to give any but the broadest guidelines.
However, you should read the MySQL doc to understand more of what's
happening. And you can get some good database-related answers in
comp.databases.mysql.

And if you can't reduce the load any more, you may have to go with a
more expensive package shared hosting package, a virtual private server
or even a dedicated server.

But the first thing should be to talk to your host and get more details
on why they believe this is the case.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация