[Cosmo-dev] including master recordset in feeds

Randy Letness randy at osafoundation.org
Tue Jun 12 10:59:10 PDT 2007


Travis Vachon wrote:
> So let me get this straight:
>
> When I get a collection feed I'll get all of the information I need to 
> parse record sets into usable objects, unless the record sets 
> represent occurrences or modifications of a recurring event, in which 
> case I'll need to make another call to the server? Also, a naive 
> implementation of the JavaScript "getItems(collection)" would probably 
> make a call to the server for each occurrence, resulting in n+1 
> client-server round trips, where n is the number of occurrences or 
> modifications in the collection feed. Even with caching this seems 
> unnecessarily expensive.
>
> It would make more sense to me if a collection feed always returned 
> all of the master items, which contained links to the "expanded" 
> version of themselves. It would be especially nice if these links 
> included the query parameters that were sent with the collection feed 
> request. In this case, getItems(collection) would still be doing m+1 
> client server trips, where m is the number of recurring events in the 
> collection feed.

Another possibility is to have a feed that takes in a list of uuids and 
returns multiple items.  Then you would only need 2 requests.

-Randy


More information about the cosmo-dev mailing list