Skip to main content
SUBMITTED

Filter tables in Ingest only on non-production

  • February 20, 2025
  • 5 replies
  • 67 views

wouter.goslinga
TimeXtender Xpert
Forum|alt.badge.img+3

Hi all, a question from me. We have a customer with a lot of very large tables. We would like to filter these tables in our dev and test systems, to be able to develop and execute faster.

Is there any way we can filter tables in the Ingest conditionally? So we can add filters that will not be transferred to production on promotion, or filters that have a condition so that they will only be applied on non-production Ingest instances?

5 replies

rvgfox
Problem Solver
Forum|alt.badge.img+4
  • Problem Solver
  • February 20, 2025

Hi ​@wouter.goslinga we’ve solve that problem using views in the data source:

	WITH Parameters
AS (SELECT
CutYear
, OffsetYear
FROM aux.DateFilter
WHERE TableName = 'Albaranes Ventas'
AND Environment='prod'),
.... Rest of query

Filter:
WHERE UCC@_RecordYear > CutYear + OffsetYear

In the DateFilter table we decide what records filter:

 

 

Hope this helps

 


anders.e.jonsson
Contributor
Forum|alt.badge.img+1

Hi ​@wouter.goslinga ,

Could it work if you clone the data source? 

One version to use in the production environment without row filtering, and the clone with a row filter on a suitable column for the dev and test systems.

BR
Anders


wouter.goslinga
TimeXtender Xpert
Forum|alt.badge.img+3
  • Author
  • TimeXtender Xpert
  • February 24, 2025

Thanks for the suggestions ​@rvgfox and ​@anders.e.jonsson ! Unfortunately, we are unable / not allowed to create tables in the data source; and cloning the datasource would require us to remap every single table on every production release which is too labour intensive.

The search continues!


anders.e.jonsson
Contributor
Forum|alt.badge.img+1

Hi ​@wouter.goslinga ,

As I understood it you have different ingest instances for each environment. When you migrate one prepare instance to another environment and instance you select ingest instance for the destination.

Would it be possible to use a mapping set? Both data sources exist in each ingest instance and are included in the mapping set in the prepare instance, but you only transfer data to one of the data sources in each ingest instance. To dev and test instances transfer is done with the filtered version of the data source, and in production you use the unfiltered version.

I haven’t tried it, but it seems possible 🤓.

BR
Anders


Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

I have converted this to a product idea