ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Crum <adrian.c...@yahoo.com>
Subject Re: multi-threaded EntityDataLoadContainer and SequenceUtil
Date Fri, 02 Apr 2010 03:31:33 GMT
--- On Thu, 4/1/10, Adam Heath <doogie@brainfood.com> wrote:
> Adrian Crum wrote:
> > I multi-threaded the data load by having one thread
> parse the XML files
> > and put the results in a queue. Another thread
> services the queue and
> > loads the data. I also multi-threaded the EECAs - but
> that has an issue
> > I need to solve.
> 
> We need to be careful with that.  EntitySaxReader
> supports reading
> extremely large data files; it doesn't read the entire
> thing into
> memory.  So, any such event dispatch system needs to
> keep the parsing
> from getting to far ahead.

http://java.sun.com/javase/6/docs/api/java/util/concurrent/BlockingQueue.html



      

Mime
View raw message