Fernando Sanchez wrote:Thank you for the explanation, so one conclussion I should get is that the multithread alternative does not mean better performance in this case. Am I wrong?
When I try the single-thread program it always takes about between 2.5 and 2.9 seconds to end.
On the other hand the multithread alternative is very unpredictable ranging from 0.6 to 57.3 seconds. I don't understand why there can be so very different results.
Campbell Ritchie wrote:Please show us how you are selecting your value form the database. How are you casting it?
Monica Shiralkar wrote:So, I think It should be specified that we pass instance of annomous class which implements the functional interface.
Rajkamal Pillai wrote:My question is about how to modify the timeout interval dynamically, other than by making changes to web.xml. What worries me is my suggested solution should not cause performance and/or usability side effects.
Bill Melendez wrote:I relooked at the whole setup and decided that I could use LONG VARCHAR instead of Clob.
Anil Philip wrote:
Stephan van Hulst wrote:Great, you made it work. Now, never write code like that ever again.
Either use a simple for-loop, or use a collector.
Huh? I am quite proud of what I wrote.