Skip to main content
Solved

Can a reader only read in a subset of the data?


Forum|alt.badge.img

Is there any way you can set up a reader to read in a subset of the data? I am using a ODBC2 reader and I would like to only read data that is a month old (this table has 2 million records as it contains over a decade worth of data). I am currently using a tester transformer to remove the unwanted records, but the entire process takes over 6 hours.

Best answer by erik_jan

The ODBC Reader has a parameter labeled WHERE Clause. That can be used to select a subset of your data. That way the database will do the filtering.

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • Best Answer
  • December 1, 2015

The ODBC Reader has a parameter labeled WHERE Clause. That can be used to select a subset of your data. That way the database will do the filtering.


Forum|alt.badge.img
  • Author
  • December 2, 2015

Thank you @erik_jan! That worked perfectly. This dropped it down to 12 minutes!


Forum|alt.badge.img
  • December 11, 2015

you could also if its switching months and may have two months so can actually set the reader parameters to start at bottom and tell it how many to read. If it is always getting new records you could say read 1,000 or how many you normally get between months of the records. That way you would not have to change the where clause.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings