From: George Essig <george_essig@yahoo.com>
To: Thanks@verymuch.com
Cc: pgsql-php@postgresql.org
Subject: Re: pg_fetch_array
Date: Mon, 21 Jun 2004 14:09:21 -0700 (PDT)
Message-ID: <20040621210921.47715.qmail@web53702.mail.yahoo.com> (raw)
Thanks@verymuch.com wrote:
> Does php need to read database everytime when pg_fetch_array is executed in
> the while loop or all the rows have been in the memory after pg_query?
The latter - pg_query puts all of the rows in memory. I found this out myself recently. Select a
lot of rows using pg_query without pg_fetch_array. As you're doing this, watch he memory usage
with 'free -s 1'.
George Essig
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: george_essig@yahoo.com, Thanks@verymuch.com
Subject: Re: pg_fetch_array
In-Reply-To: <20040621210921.47715.qmail@web53702.mail.yahoo.com>
References: <20040621210921.47715.qmail@web53702.mail.yahoo.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