Multiplexed data source

A multiplexed data source sits on top of multiple other data sources. When data is loaded from the multiplexed data source, it pulls data from each of the underlying data sources concurrently and then merges the multiple result sets according to the sort order, if any. This gives the appearance of a single collection load even though multiple data sources were accessed.

Because all of the underlying data sources are accessed concurrently, performance is no worse than the slowest performing underlying data source.

If some data sources fail while others succeed, the parms of the OnCollectionLoaded event handler shows which underlying data sources failed and why, and provides the option of not presenting partial data to the UI if it makes sense for the use case.

This is the general process for using the multiplexed data source:

  • Create the data source.
  • Apply the data source for a selected portal in the Portal Manager.
  • Create a collection definition and associate it with the multiplexed data source.
  • Use the collection as needed when working with layouts and scripting.