You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dmhatre <da...@gmail.com> on 2012/07/05 16:49:24 UTC

Is it a good idea to store very large data (100,000 records) in StringBuffer and then write to file using Apache camel's File Component?

Hi Folks,
   Is it a good idea to store very large data (100,000 records) in
StringBuffer and then write to file using Apache camel's File Component?

--
View this message in context: http://camel.465427.n5.nabble.com/Is-it-a-good-idea-to-store-very-large-data-100-000-records-in-StringBuffer-and-then-write-to-file-us-tp5715555.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is it a good idea to store very large data (100,000 records) in StringBuffer and then write to file using Apache camel's File Component?

Posted by Christian Müller <ch...@gmail.com>.
Yeah, depends on the line size, your available memory, ...
And by the way, you know the file component has a 'append' option?

Best,
Christian

On Thu, Jul 5, 2012 at 4:50 PM, Sam (Stephen Samuel)
<sa...@gmail.com>wrote:

> Bit of a vague question. If each record is 1 byte then you have 100k so
> yes. If each record is 1mb then you have a slight problem.
>
> On Thu, Jul 5, 2012 at 3:49 PM, dmhatre <da...@gmail.com> wrote:
>
> > Hi Folks,
> >    Is it a good idea to store very large data (100,000 records) in
> > StringBuffer and then write to file using Apache camel's File Component?
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.com/Is-it-a-good-idea-to-store-very-large-data-100-000-records-in-StringBuffer-and-then-write-to-file-us-tp5715555.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> -Sam
>

Re: Is it a good idea to store very large data (100,000 records) in StringBuffer and then write to file using Apache camel's File Component?

Posted by "Sam (Stephen Samuel)" <sa...@gmail.com>.
Bit of a vague question. If each record is 1 byte then you have 100k so
yes. If each record is 1mb then you have a slight problem.

On Thu, Jul 5, 2012 at 3:49 PM, dmhatre <da...@gmail.com> wrote:

> Hi Folks,
>    Is it a good idea to store very large data (100,000 records) in
> StringBuffer and then write to file using Apache camel's File Component?
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Is-it-a-good-idea-to-store-very-large-data-100-000-records-in-StringBuffer-and-then-write-to-file-us-tp5715555.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
-Sam