Overview
A pipe is a connector that links two elements in a PhixFlow model and sends data from the input to the output. Pipes allows you to control which attributes and which records from the input are delivered by to the output, although in most cases - with minimal configuration - you will get all columns and the records from the current run.
...
Country
Is in ["England","France","Germany"]
fx
Sort/Group
Use this section to group and sort data as it comes through the pipe. for lookup pipes, this section is called Order/Index. This section has:
- a toolbar with standard buttons
- a grid that lists the attributes that you want to sort or use to group
- below the grid are the following options:
...
Note |
---|
You cannot aggregate data from attributes if the pipe's input is from: If you need to aggregate data from a database collector, you can use an SQL query. |
This section has:
- a toolbar with standard buttons
- a grid that lists the attributes that you want to aggregate.
...
Field | Description | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Data Expected | This checkbox is available when the pipe Type is Push or Pull.
| ||||||||||||||||||||||||||
Allow Incomplete Stream Sets |
PhixFlow cannot complete a stream set if:
Pipes that are not used in the analysis run do not try to complete a stream set, so will not report an error. (Unused pipes can occur if they lead to streams on branches of the model that are not being run.) | ||||||||||||||||||||||||||
Cache Size |
Enter a number to set a limit on the data cache size available for the pipe. You need to estimate the largest number of records that the lookup pipe will return on a single read. If you do not set a limit for the cache, PhixFlow uses the system default set in System Configuration → System Tuning → Maximum Pipe Cache Size. You may want to set a cache size on individual pipes if: .......PhixFlow may need to:
Lookup for a few records may times In this case, PhixFlow is usually using a key value, such as an account number, to get the data. The key value is
This field allows you to set a limit on the size of the cache. Setting a limit is important because if you do not, the cache can become very large and consume a lot of memory, which can lead to a slow down in both your tasks and those of other users of PhixFlow. To set the cache size, try to estimate the largest number of records that the lookup pipe will return on a single read. If you do not set a limit, it will default to the system-wide default, specified in the Maximum Pipe Cache Size in the System Tuning tab of the System Configuration. Panel | | |||||||||||||||||||||||||
|
Code Block |
---|
WHERE AccountNumber = _out.AccountNum |
If you do not set a limit for the cache, PhixFlow uses the system default set in System Configuration → System Tuning → Maximum Pipe Cache Size.
Expand | |||||
---|---|---|---|---|---|
| |||||
In the log for an analysis run, which is available in the system console, PhixFlow reports warnings when a single read returns:
PhixFlow reports an error and stops the analysis run when:
| |||||
Panel | |||||
bgColor | #e6f0ff | ||||
titleBGColor | #99c2ff | title | Technical breakout
|
Expand | ||
---|---|---|
| ||
Every time the lookup pipe is referenced , PhixFlow calculates the values of all of the variable elements of the query or pipe filter, and checks if it already has a set of data in the cache retrieved using this set of variable values. If so the data is immediately returned from the cache. Otherwise, a new set of data is read from the stream of collector. If adding the new records to the cache would cause it to exceed the maximum cache size, previously cached results are removed to make enough room for the new results. |
If there are a large number of records to cache, it can use a lot of memory. This means PhixFlow will run more slowly for all users.
To set the cache size, try to estimate the largest number of records that the lookup pipe will return on a single read.
If you do not set a limit, it will default to the system-wide default, specified in the Maximum Pipe Cache Size in the System Tuning tab of the System Configuration.
PhixFlow may need to:
, PhixFlow calculates the values of all of the variable elements of the query or pipe filter, and checks if it already has a set of data in the cache retrieved using this set of variable values. If so the data is immediately returned from the cache. Otherwise, a new set of data is read from the stream of collector. If adding the new records to the cache would cause it to exceed the maximum cache size, previously cached results are removed to make enough room for the new results. |
Use this option to look up data from attributes that are present in a stream view on the input stream
Select a stream view from the list. If the input stream has no views, the list will be empty.
Note |
---|
Sorting or filtering of records must be set directly on the pipe. It is not inherited from the pipe view. |
During lookups
Pipe views can also be used on lookup pipes to limit the fields that are returned by the lookup request. This is most useful in the scenario where the you want to read and cache data on a lookup pipe from a stream that has lots of attributes but where only a small number of attributes are actually required. You can simply create a new view on the source stream listing only the attributes needed, then specify it as the pipe view on the lookup pipe. Only those attributes specified on the view will then be loaded.Without a pipe view, the pipe will load and cache
Use the pipe view to limit the attributes that the pipe reads when:
- a stream has lots of attributes containing many data records
- but you only need data from a few attributes.
Only the data for the attributes in the stream view are sent to the output stream.
Pipe views are very useful:
- during lookups a pipe loads and caches all of the attributes from the stream
During File Export
When sending data to a file exporter only those fields specified on the pipe view will be exported. If no pipe view is supplied then all fields will be exported.If the file exporter is
- . This can use a lot of memory, especially when there are many records.
- during file export all data records from all attributes are exported.
To set up a pipe view:
- Create a new view on the source stream. In the view, only add the attributes you need.
- In the pipe Pipe View option, select the pipe view.
- Run analysis. PhixFlow only looks-up or exports data from the attributes specified on the view.
Expand | ||
---|---|---|
| ||
If a File Exporter is configured to export to Excel or to HTML:
|
If the file exporter is configured to export to HTML
|
|
|
Max Records To Read
Enter a number for the maximum number of records that should be read down this pipe. The pipe may read more than this number of records if it is configured to carry out multiple reads simultaneously
e.g. if it is. For example:
- a pipe can be connected to a File Collector
- that reads multiple files simultaneously
- the pipe strategy is
- Directed
- with multiple workers.
The Execution Strategy determines Select an option to specify how this pipe should be implemented. See the section on Directed Merge Strategy
- Default
- Directed
Max Workers
This field is available when Strategy is Directed
The maximum number of concurrent worker tasks.
If blank, this defaults to 1.
This field is available when Strategy is Directed
The number of key values to read for a single worker task (which runs a single select statement).
If blank, this defaults to 1000. This is the maximum value that can be used when reading from an Oracle database.
...