<div dir="ltr">There is some extra cost if you have transactions that span multiple caches: each cache is registered as a separate XA resource with the Transaction Manager. With a single cache, there would be a single prepare/commit RPC, regardless of how many keys the transaction modified. With multiple caches, there are as many prepare and commit RPCs as there are caches touched by the transaction.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 28, 2013 at 5:28 PM, Mircea Markus <span dir="ltr">&lt;<a href="mailto:mmarkus@redhat.com" target="_blank">mmarkus@redhat.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Fassela,<br>
<br>
In future please post these kind of questions on the infinsipan forum so that other can benefit from them as well ;)<br>
<div class="im"><br>
On Nov 28, 2013, at 10:08 AM, Faseela K &lt;<a href="mailto:faseela.k@ericsson.com">faseela.k@ericsson.com</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt;     Is there any limitation on the number of infinispan caches that can be created, in a clustered environment?<br>
<br>
</div>I know users that created thousands, I&#39;m not aware of an upper bound but creating a cache certainly brings it cost.<br>
<div class="im"><br>
&gt;<br>
&gt;     Also,  is there any performance difference between the below two cases :<br>
&gt;<br>
&gt;              Case 1 : Constructing a cache with 10000 entries<br>
&gt;              Case 2 : Splitting the above cache into 100 caches of 100 entries.<br>
&gt;<br>
&gt;     Entry count is same in both the cases, but will there be any significant performance overhead in creating 100 caches?<br>
<br>
</div>creating the cache has it&#39;s cost, but once it is created, the performance should be pretty much the same.<br>
<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Faseela<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
Cheers,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Mircea Markus<br>
Infinispan lead (<a href="http://www.infinispan.org" target="_blank">www.infinispan.org</a>)<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</font></span></blockquote></div><br></div>