Skip to main content
Question

How to make sure that the Readers in the nav pane is completed when, the major part of, data is read by SQLexecutor?


hsamor
Forum|alt.badge.img

I could just sample one feature from the datastream triggering the SQLexecutor. But do you know a nicer way to do this? I need suppliers first in a few featureMergers downstream.

4 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • April 10, 2017

Hi @hsamor,

Use a Creator + SQLExecutor and make sure the Creator is set to yes.

" Create at End determines whether the feature is created after all reader features have been processed (Yes)"


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • April 10, 2017

Why not use the SQLCreator instead of the Creator + SQLExecutor combination?

If you add a FeatureHolder after the SQLCreator you force the Reader to go first.

NB: The FeatureHolder stores data in memory, so only use this if the dataset is not too big!


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • April 10, 2017

Or maybe even better: Use the reader to trigger a FeatureReader (execute the SQL using the WHERE clause to join to the reader data).

That will even let you skip the FeatureMerger as the FeatureReader can merge both datasets.

And it will allow the database to use the indexes, so performance will most likely improve too.


hsamor
Forum|alt.badge.img
  • Author
  • April 28, 2017
itay wrote:

Hi @hsamor,

Use a Creator + SQLExecutor and make sure the Creator is set to yes.

" Create at End determines whether the feature is created after all reader features have been processed (Yes)"

@itay I knew there was something obvious like that, to make it just work! Thanks!

 


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