This has to do with Architecture... and this is why i am concerned. Briefly.. 1. Multi-Value DB U2(UniVerse) 2. Middle Tier Object Server (RedBack) 3. CFMX Front End. The frontend(CFMX) does NOT talk to DB Directly... CFMX Communicates with RedBack Objects(RBO) on the RedBack Server that talks to DB and does all the Business Logic.
Interesting setup.
Since Large Java Native Arrays need to get converted to ColdFusion Structs
for every single DB Call/Page load... This is my performance concern.
Well, converting the list to a Java native array isn't exactly going to be high performance to start with so converting the array to a struct on top of that is going to be less so.
However, do you actually have a performance problem with the architecture you have? Is it actually too slow? Does it scale poorly under load? Have you load tested it to establish if there is actually a bottleneck and where that bottleneck really is? Only if the answer to *all* of these questions is "yes" should you really be trying to optimize the code and / or the architecture.
Let's assume you've done all of that and you've identified that the bottleneck really is converting the array to the struct (or converting the the list to an array in the first place!)...
Why convert the list at all? It's a Java object - you could have CFMX manipulate it directly. If you don't like that approach, why not have the JavaBean act as an Adapter or an Iterator?
http://www.mindspring.com/~mgrand/ pattern_synopses.htm#Structural%20Patterns
You could have a JavaBean that presents an array-like interface but manipulates the RBO lists directly and another JavaBean that presents a struct-like interface but manipulates the RBO lists directly. Make sense? This obviates any actual data structure conversion so it ought to be much faster anyway.
If you're so concerned about performance, write your site in assembler!I dont think the above would be a common sense approach.
That's exactly my point!
How many of us would buy Formula One Track Cars...just because we like to drive fast cars around the city.
The better analogy would probably be "How many of us would *build* Formula One Track Cars *from scratch*..." ...but then my 'city car' is not exactly very sensible either:
http://www.corfield.org/mustang/
The page doesn't talk about all the various performance mods but it's about 380hp right now with tentative plans to supercharge it :)
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive." -- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
