Posted by Ivαn Sαnchez Ortega on 01/18/06 21:10
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jerry Stuckle wrote:
> And it's *never* a good idea to give absolutes :-).
And I've told you ten million times not to exaggerate :-P
> There are times when it's better to dump a table into an array - like
> when you have a lot of processing to do on multiple items and want to
> release mysql resources.
Batch jobs are not the most usual thing to do in PHP...
> Also collection classes for abstracting the data. And that's just the
> beginning.
Such a class should not relay on a complete table dump to work: it should
load data dinamically (and/or cache some of it) in order to improve
performance. And it should use the SPL functionality, to provide a clean
way to dinamically iterate over the data set.
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDzpKo3jcQ2mg3Pc8RAr/wAJ9qbK5EaFOB02hGp6sdCvFHFaIsawCeJddU
jlJ+IaoAfDDtk2RzId7DAuw=
=/byC
-----END PGP SIGNATURE-----
[Back to original message]
|