From: Ric Mañalac <ric.manalac@webphilippines.com>
To: pgsql-php@postgresql.org
Subject: fastest way to retrieve data
Date: Wed, 04 Sep 2002 11:25:28 +0800
Message-ID: <3D757D27.93026D55@webphilippines.com> (raw)
hi,
is there a faster way to retrieve data from postgresql
using php aside from the conventional way of looping
through the number of records returned by pg_num_rows
then executing pg_fetch_row on each iteration? isn't it
possible to get the entire result set returned by pg_exec
and save that to a multi-dimensional array? this way
the program can disconnect from the db and just get
the data from the multi-dimensional array. this would also
shorten the number of requests to postgresql.
would appreaciate any suggestions. thanks!
regards,
--
Ric Mañalac
http://www.webphilippines.comhttp://www.trabaho.comhttp://www.kasal.com
Note:
The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank you.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: ric.manalac@webphilippines.com
Subject: Re: fastest way to retrieve data
In-Reply-To: <3D757D27.93026D55@webphilippines.com>
References: <3D757D27.93026D55@webphilippines.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox