| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
Marshall wrote:
> Joe Van Dyk wrote:
>
>>Mikito Harakiri wrote: >> >>>Robert, you claim 35 years of application programming experience. Have >>>you ever come across a performance problem when database is accessed >>>via API >>> >>>getItemIdList >>>getItemDetail >>> >>>so that a single jsp page issued a hundred SQL statements instead of a >>>single one? Come on, this one is so common that it surfaces on every >>>performance meeting. >> >>This problem is easily solved via caching.
I think the *best* way depends on the particular issue at hand. However, I don't possess the mental aptitude necessary to make blanket statements about what's best for all web applications.
In RubyOnRails, I probably would create a instance variable in the Controller that contains the data from one SQL statement (perhaps automatically generated in the Model), and use that data in the view. I'm sure that's horrible and won't work. All those applications out there that I've written are probably busy crashing and corrupting data, as I'm using objects and escapulation or something.
Joe Received on Thu Jun 01 2006 - 17:49:34 CDT
![]() |
![]() |