I was trying to use JDBC inbound channel adapter and I encountered some confusions.
First, which one is more efficient to use: specifying max-rows-per-poll
or using limit
on query statement? Second, to avoid the duplicate readings, is there anyway to run poller instead of fixed-rate
after last message of each poll is processed? I could use update
but there is dynamic update query down the stream.
My integration flow is somewhat like jdbc:inbound-channel-adapter -> http:outbound-channel-adapter -> jdbc:outbound-channel-adapter
(update each row as per response from http:outbound-channel-adapter
). It should handle huge number of rows.
LIMIT
is more efficient. DirectChannel
s (the default), and no task executor on the poller, the next poll won't run until the current one completes, regardless of the trigger.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.