User Tools

Site Tools


transformations:selectdbrowsbykeys
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Next revision
transformations:selectdbrowsbykeys [2017/05/02 23:10] – created dmitry
Line 1: Line 1:
 +===== Select matching database rows =====
 +
 +Selects rows from a database table where a combination of key fields matches a combination of key fields in EasyMorph table. 
 +
 +Under the hood the transformation creates a temporary table in the target database, uploads key field combinations into it and performs SELECT..WHERE ..EXISTS statement. After the statement is executed the temporary table is deleted.
 +
 +**Use cases**
 +
 +This transformation can be used for //pre-filtering//. Pre-filtering means that instead of loading entire dataset and then filtering it, only a few fields are loaded (using [[transformations:importsql|Import from database]]) that are necessary for filtering, as well as primary/foreign keys (i.e. IDs). When imported these fields can be filtered by means of various EasyMorph transformations. The resulting subset of IDs is used to fetch full records from the source dataset using "Select matching database rows" transformation. Pre-filtering can be helpful when source table is large and doesn't fit RAM entirely.
 +
 +Another use case is //cross-source filtering// which means importing database records which IDs are obtained from another data source (e.g. text file or spreadsheet).
 +
  
transformations/selectdbrowsbykeys.txt · Last modified: 2021/04/08 23:49 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki