Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
ExoWeb type loading changes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bryan Matthews  
View profile  
 More options Dec 2 2011, 11:14 am
From: Bryan Matthews <Bryan.Matth...@vc3.com>
Date: Fri, 2 Dec 2011 16:14:12 +0000
Local: Fri, Dec 2 2011 11:14 am
Subject: ExoWeb type loading changes

I'd like to bring two recent ExoWeb type loading changes to your attention.

1)      Types are now batch loaded.  This means that prior to type caching your pages should only send a single type request (or very few depending on your usage).  This was implemented to cut down on the large number of requests sent from the browser, since browsers have limits on the number of concurrent request.

You don't have to do anything to enable this functionality.

2)      We noticed that a surprisingly large number of types were being requested, and some of them didn't seem like types that should be needed.  I was able to track this down to the "AllowedValues" rule, which was force loading types when instantiated.  Since this rule is very common, and often spans types, this would result in a cascading type loading effect.  I changed the rule's active type loading behavior to a passive approach:  it becomes enabled when the relevant types are loaded.

There are two possible side-effects of this change that come to mind.

First, if you happen to have an allowed values property on a type that is neither the containing type of the property or the property type, then the rule may never be enabled, even if the data is all loaded and editable.  This is an odd scenario that shouldn't happen in practice.  To illustrate, if type Person has a property Org of type Organization, and its allowed values are World.AllOrganizations, and type World is not used, then the rule will never be activated.  The only way that this example makes sense is if the type World is a required type for the entire app (or feature area), and so will always be available.

Second, if you are not actually referencing a type in your query paths but subsequently used that type in templates/scripts or expected a $extend to fire when the type was loaded, then in the past you may gotten away with this because of the overly aggressive nature of type loading.  Now, types are only loaded because they are referenced in your queries or are otherwise required for object loading (i.e. due to lazy loading).  One caveat:  several other rules (e.g. CompareRule) may still force type loading to occur.  They are less likely to actually change the nature of type loading, but still this behavior may also be changed in the future for other rules.

The moral of the story:  don't depend on rules to perform type loading.

Let me know if you have any questions or concerns about these changes.

Thanks,
Bryan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »