/
Load a Subset of Data from a Database

Load a Subset of Data from a Database

Scenario

Data is stored in a database, sometimes in massive volumes. You may only need to process a tiny subset of the data. Instead of processing the entire database table, collect a small subset of the data only, based on a variable value.

Create a database collector to retrieve data from a database. This collector should have a where clause in it. The value of that where clause (the value being looked up) will be set automatically in PhixFlow.

Solution:

  • Create a database collector to load some data into a table in PhixFlow
  • Create an input multiplier on that table.
  • Reference the input multiplier value(s) in the collector's SQL query using the {} or {=} notation .


Related content

Check Database Space Being Used
Check Database Space Being Used
Read with this
Speed Up Data Loading Using Parallel Collectors
Speed Up Data Loading Using Parallel Collectors
Read with this
Break an SQL IN Clause Into Batches
Break an SQL IN Clause Into Batches
Read with this
Process Separate Files into Separate Tables
Process Separate Files into Separate Tables
Read with this
Create Unique Indexes or Record Identifiers
Create Unique Indexes or Record Identifiers
Read with this
Database Exporter
Database Exporter
Read with this