And, assuming it can be brought into memory, with an assumed average processing time of 1ms per fact, this would take 277 hours or 11 days. (If the result is the question that&#39;s answered by 42, it may be worth the wait, though  ;-)<br>
-W<br><br><div class="gmail_quote">On 8 September 2010 18:39, Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Considering that just an Object array of 10 million Objects consumes 115MB of memory, I think loading 1 billion facts will be stretching the limits of the VM all by itself. (and that&#39;s java.lang.Object with no fields...)<br>

<font color="#888888"><br>
GreG<br>
</font><div><div></div><div class="h5"><br>
On Sep 8, 2010, at 10:31, bellios &lt;<a href="mailto:carfid@gmail.com">carfid@gmail.com</a>&gt; wrote:<br>
<br>
<br>
Hi all,<br>
i have read the Documentation and the Drools book. I am developping an<br>
application but i don&#39;t understand in my case how i can loading  a<br>
1,000,000,000 facts (approx).<br>
At present I load all facts into a StatefulKnowledgeSession with a for-<br>
cycle and I insert them into ksession (&quot;ksession.insert(customer);&quot;)<br>
<br>
The problem is the out of memory exception due the high memory<br>
requirements of facts.<br>
How i can resolve it? There is another approach to<br>
facts loading into session? Can i integrate the loading with JPA/Hibernate<br>
frameworks?<br>
<br>
Thanks in advance for any suggestion,<br>
David<br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Loading-facts-and-memory-size-limits-tp1440236p1440236.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Loading-facts-and-memory-size-limits-tp1440236p1440236.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>