Re: pg_fetch_array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Thanks@xxxxxxxxxxxx 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


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux