• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOModeler and more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModeler and more


  • Subject: Re: EOModeler and more
  • From: Arturo Pérez <email@hidden>
  • Date: Sun, 11 Jan 2004 22:25:46 -0500

On Jan 11, 2004, at 10:02 PM, james cicenia wrote:


On Jan 11, 2004, at 8:47 PM, Arturo Pirez wrote:

If I am showing a Portfolio screen which has a couple small lists of project_requests
wouldn't that best be modeled via the Raw Fetch into a dictionary? Than up clicking a project_request
I could instantiate the full project_request object.

In reality what you're doing above is forcing two trips to the database. One to populate your
screen and the other to instantiate the ProjectRequest objects. I would say that's a more
inefficient use of the database the just letting it get it all at once. In particular, if you
can leverage the EOF cache, instantiating the objects can be a huge win.


<Soapbox>
Also, I take exception to your use of the word "modeled" above. What you're describing isn't
a modelling phase/step/process/etc. It's an optimization outside the bounds of your conceptual
model; aka an implementation choice not a design choice. Me, personally, I wouldn't bother
with the raw rows solution until the page needed to display thousands of objects. In that case
it would be a poor UI that displayed thousands of objects. I would then redo the display to
prevent/discourage such a poor display and therefore get back into the realm where raw rows
wouldn't be needed. :-)
</Soapbox>



Also, I did read the Vertical vs. Horizontal explanation and feel that I have my application now
modeled correctly.

This seems like a non-sequitur to me. Are you working with what WebObjects considers a legacy
database?





I guess it is time start diving headlong into the Framework.

I fear for you :-) I've only twice needed a raw SQL statement in EOF.

Hmm, than how would you have modeled my above scenario? You would just instantiate
the complete list of project_requests? Sounds very expensive to me in terms of performance.

Well, you'd have to benchmark it to be certain. But, as I mentioned above, two database
trips versus one would encourage me to follow the full ProjectRequest object route. But if
you're only displaying a handful of objects then IMO you should definitely NOT be pursuing the
raw rows route.


Also, my EOs tend to contain a lot of methods etc that I end up needing ;-).
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: EOModeler and more
      • From: james cicenia <email@hidden>
References: 
 >EOModeler and more (From: james cicenia <email@hidden>)
 >Re: EOModeler and more (From: Arturo Pérez <email@hidden>)
 >Re: EOModeler and more (From: james cicenia <email@hidden>)

  • Prev by Date: Re: EOModeler
  • Next by Date: Re: EOModeler and more
  • Previous by thread: Re: EOModeler and more
  • Next by thread: Re: EOModeler and more
  • Index(es):
    • Date
    • Thread