Restructure my DAO

August 26, 2004 14:12
Tags: ,

Recently I’ve seen an article (so pity that forgot where it is) about DAO and made a great idea for me. It says that don’t reture an array of objects (Data Object). The reason is if the query results 10000+ records and several requests arrive at the same time, your server’s memory may not enough to handle it. It suggests to use the resultset object to hold the result handler from database server, and generate one data object when needs. This will save a lot of memory, also the object initialization time. I have to change my DAO to fit this concept.

Added on 2004-08-31 15:42:34:
I found the article already, it is Simplify Business Logic with PHP DataObjects from


Comments are closed.