[phplib] pg_fetch_array, memory usage, and performance From: Bryan Brunton (bryanbrun <email protected>)
Date: 02/24/01

I've noticed that pg_fetch_array uses the default of PGSQL_BOTH. This returns associative and
numerical array values; effectively it returns all of the values that you want TWICE.

So anyone who uses just the PHPLIB associative dataset functionality as it is documented such as:

$db->f("fieldname")

is using TWICE the memory and TWICE the bandwidth as necessary.

Is this correct?

If people are actually using the numerical functionality ( $db->f(0)), perhaps a note could be put
in the documentation that states if you are just using the associative access to the dataset you
could decrease memory usage if you pass the correct parameter in pg_fetch_array.

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>