Re: Re: php as stored procedures - Mailing list pgsql-general

From Adam Lang
Subject Re: Re: php as stored procedures
Date
Msg-id 00c101c08bb4$c8510160$330a0a0a@rutgersinsurance.com
Whole thread Raw
In response to php as stored procedures  (mwaples@waples.net)
List pgsql-general
Stored procedures put LESS strain on a database.

When you send a query to postgres via PHP, postgres runs the query.

If you have a stored procedure on postgres and have PHP use that to execute
the query, you get better performance since stored procedures are (should
be) precompiled.

In both situations the db server does the work.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Mike Sears" <matrix@quadrent.net>
To: <pgsql-general@postgresql.org>; "Doug McNaught" <doug@wireboard.com>
Sent: Wednesday, January 31, 2001 12:43 PM
Subject: [GENERAL] Re: php as stored procedures

> what would the over all benifit be to using stored procedures instead of
> just going about php normaly?
>
> would that not put a bit of stress on the db server as well?
>
> Mike


pgsql-general by date:

Previous
From: "Adam Lang"
Date:
Subject: Re: php as stored procedures
Next
From: "Gregory Wood"
Date:
Subject: Re: php as stored procedures