You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by srinivas_vsk <sr...@yahoo.com> on 2014/09/24 18:18:20 UTC

Re: Performance puzzle. Slow splitter on object array?

Have you been able to resolve the slowness, im noticing similar issue
splitting a List<CustomObject>,  Hawtio shows couple of seconds to split
Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/Performance-puzzle-Slow-splitter-on-object-array-tp5729867p5756978.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Performance puzzle. Slow splitter on object array?

Posted by prem5038 <pr...@gmail.com>.
I am also having this issue with Camel Splitter. I am using Splitter to split
a List<LinkedHashMap&lt;String,Object>> and direct to another route which
would write to file. I found that splitter is taking 7-8 seconds to split
each item in the List.
<route>
	<from uri="timer://kickoff?repeatCount=1" />
	<setBody>
	        <simple>select * from emp</simple>
	</setBody>
		<to uri="jdbc:testdb" />
		<split streaming="true"> 
			<method ref="XMLTransformer" method="splitBody" />
			<bean ref="XMLTransformer" method="receive" />
		</split>						
</route>

The method split body returns LinkedHashMap<String,Object>. When I manually
split the messages by iterating through the list. It is much faster. Why
splitter is very slow while iterating collection? Are there any work around
available for this issue? Please help.



--
View this message in context: http://camel.465427.n5.nabble.com/Performance-puzzle-Slow-splitter-on-object-array-tp5729867p5769761.html
Sent from the Camel - Users mailing list archive at Nabble.com.