On Jun 21, 2011, at 6:05 PM, Ramsey Gurley wrote:

> 
> On Jun 21, 2011, at 2:22 PM, David Avendasora wrote:
> 
>> On Jun 21, 2011, at 5:03 PM, Ramsey Gurley <rgur...@smarthealth.com> wrote:
>> 
>>>> Also, if I grab the queryAll page I run out of heap space after about 5-6 
>>>> refreshes of the page.  I hope I'm just doing something stupid here.  Any 
>>>> ideas?
>>>> 
>>>> Thanks.
>>>> -Mike
>>> 
>>> I have not experienced problems with heap space in D2W.
>> 
>> I have. It is almost certainly a situation where you have a relationship 
>> modeled that could point to thousands or millions of related objects and you 
>> have a rule that is telling D2W to show that relationship in the queryAll 
>> page by making it a displayPropertyKey in some rule that somehow matches the 
>> QueryAll page. Normally the QueryAll page only lets you search on attributes.
> 
> Correction (^_^)  I have not experienced problems with heap on a QueryAll 
> page.  If you fault 1000000 rows in the DB, then yeah, boom!  But that's not 
> D2W. You just happen to be using D2W when you triggered the fault. 

Yes, very true, but with D2W it is very easy to do this unintentionally, and 
not associate your change with the problem because most likely you changed a 
rule that you _thought_ only applied to the page you are working on. This is 
one of the many not-so-intuitive things about D2W that bites new users and can 
be very confusing.

I personally think that until ERModernLook came around the cons like this of 
D2W outweighed the pros for all but the most skilled/determined. Now, with 
ERModern being so completely freaking awesome, there's a lot of people that are 
running into and not backing down from these things.

The rules engine is incredibly powerful, but it can be tricky to learn how to 
"focus" it. Without focus one rule can mess up your entire app, or just one 
little corner of it, and do it in a way that is not immediately obvious what 
caused it.

A D2W app _needs_ selenium tests so you quickly find out that something has 
been broken by a rule change. There's no compiler error, there's no IDE 
validation. It's all run-time. Insanely powerful. Aim carefully.

Dave

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to