Peter Bell on Encapsulating Recordsets
coldfusionCFDJ posted an article today from Peter Bell on Encapsulating Recordsets . I've been following Peter's blog for a little while now, and I have to say that he has some very interesting posts. One in particular caught my attention last week. After I read that post, I started doing some work with his idea of IBOs. I really like the way it was setup, but it was at a pretty big performance risk. It wasn't until I read his article today that I realized where I was messing up. The code I put together is very similar to Peter's IBO. The main difference is that I was building a bean object for each record and storing them in a single object. This took it's toll on the server, so I set it aside. Now that I see how Peter's IBO is setup, I'm going to have to start playing around with this again.
Also take note of his use of single set and get functions.
I see this as a potential way to eliminate beans, DAOs, and gateways. Let's see if we can make that work.
Be sure to check out Peter's article .




Loading....