In this process I've to write few data in Postgres table and I've to read this data for continu the process.
For this I thought to use a FeatureWriter and a FeatureWriter with a connection, but the problem is the FeatureReader read x time all the data of the table than the number of insertion in the table from FeatureWriter.
Do you know how can I do that ?
Thanks.
Best answer by chrisatsafe
Hi @lalandexavier,
The FeatureReader will do a complete read for each feature that enters the Initiator port. The features resulting from the read are output either through named output ports or through the generic output port (as mentioned in the FeatureReader doc)
You could use the FeatureWriter's Summary port to connect to the FeatureReader since only one feature is output from there. Alternatively, you could use a Sampler with a sampling rate of first 1 features and connect that to the FeatureReader's initiator port.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.
The FeatureReader will do a complete read for each feature that enters the Initiator port. The features resulting from the read are output either through named output ports or through the generic output port (as mentioned in the FeatureReader doc)
You could use the FeatureWriter's Summary port to connect to the FeatureReader since only one feature is output from there. Alternatively, you could use a Sampler with a sampling rate of first 1 features and connect that to the FeatureReader's initiator port.
The FeatureReader will do a complete read for each feature that enters the Initiator port. The features resulting from the read are output either through named output ports or through the generic output port (as mentioned in the FeatureReader doc)
You could use the FeatureWriter's Summary port to connect to the FeatureReader since only one feature is output from there. Alternatively, you could use a Sampler with a sampling rate of first 1 features and connect that to the FeatureReader's initiator port.