I am using the implicit server model. Is it possible to write multiple queries on the same stream or do I have to write just 1 query on the stream. For e.g., suppose the stream has CPU and memory values. Now, I want to run different query for the CPU values and different query for the memory values. Implicit server model example shows that you can run only 1 query. Any ideas?
Sid, You can either write a single query template that computes different things in different branches (i.e., have two LINQ statements that refer to the same input stream), and bind that to a single adapter when running, but then there can only be one output stream (hence the LINQ branches need to union or join at some point). As an alternative, you can write two different query templates, both on the same input stream type. You can then bind both templates to the same input adapter - in the implicit model, you would just call the CreateFrom...Factory twice. When you run these queries, they will each use a separate instance of the same input adapter. You can use the adapter factory class (which will be instantiated only once) to synchronize between these adapter instances. Can you specify where the CPU and memory values come from originally? Regards, Roman
MS StreamInsight Team
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.