java - How does Streaming work for a Mule Database connector? -


i have flow listening on http listener , flow has below message processors

  1. a streaming enabled oracle database message processor selects 100 records table , fetch size 20.
  2. an expression component transforms above paylod of type org.mule.module.db.internal.result.resultset.resultsetiterator payload of type java.util.list

as per understanding payload size 20, fetch size set 20. when log payload size, 100.

can suggest whether understanding streaming of database connector correct or not?

by doing this:

"org.mule.module.db.internal.result.resultset.resultsetiterator payload of type java.util.list"

you reading memory in 1 go. need use iterator process each set of 20 records. simple example:

http://grepcode.com/file/repo1.maven.org/maven2/org.mule.modules/mule-module-db/3.5.0/integration/select/select-streaming-chunk-config.xml


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -