Re: Optimization - Share All Objects -> Register Database Context?
Re: Optimization - Share All Objects -> Register Database Context?
- Subject: Re: Optimization - Share All Objects -> Register Database Context?
- From: email@hidden
- Date: Thu, 11 Aug 2005 15:20:10 +1200
Hi Ian;
This is my approach which seems to do the trick. You will find that
in EO modeller, in the "Advanced Entity Inspector" there are two
check boxes;
[X] Read Only
[X] Cache in Memory
Make sure those two are checked for your reference entities (eg:
"usertype", "currencytype" etc...) and then *ensure* that there are
no relationships from the reference entities to other entities within
your model. So for example, the following is correct;
ABCUser --userType--> ABCUserType
...and the following is not correct...
ABCUser <--users-- ABCUserType
Once you have done this, it appears to "just work".
cheers.
I want to load this only once, so have set "Share all objects" in
EOModeler's Shared entity inspector for the parent class (I have
also tried all the subclasses as well). In the FetchAll spec, I
have set the "Perform deep inheritance fetch" option. This has
caused all the subclasses to be loaded on the server side, but as
soon as they are loaded, I get:
___
Andrew Lindesay
www.lindesay.co.nz
+64-21-47-0929
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden