Routers are used for filtering data. Instead of a default
router use a lookup
, subselect
, or BSH
router.
Lookup
will be the fastest but requires creating a separate lookup table in your DB to reference which ages can be sent and which ones can't.
BSH
will take a little bit longer but can handle logic like if (age < 65 && age >= 18)
.
Subselect
router will take the longest since it will have to query the DB each time a record needs to be routed. This query can select a value from the DB to compare against or just be the same type of logic you could have put in the BSH router expression.
If your filtering depends on a value after your transform, make sure the transform occurs at the source node and not the target (TRANSFORM_POINT='EXTRACT'). If you want to filter before the transform, make sure the transform takes place at the target (TRANSFORM_POINT='LOAD'). If it doesn't matter, you probably want the transforms to happen at EXTRACT to offload the processing work from the server.