I've added a clarification in the Javadoc, see bellow:
* It is recommended to use {@link
org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore}} over
* {@link org.infinispan.loaders.jdbc.binary.JdbcBinaryCacheStore}} whenever it is
possible, as is has a better performance.
* One scenario in which this is not possible to use it though, is when you can't
write an {@link Key2StringMapper}} to map the
* keys to to string objects (e.g. when you don't have control over the types of the
keys, for whatever reason).
This is in both javadocs.
On Jan 14, 2010, at 3:06 PM, Sanne Grinovero wrote:
+1
I'd appreciate an explanation on this, I was just wondering the same
thing this weekend while trying to setup a database-backed stored for
Lucene.
Looks like the explanation suggests the String version is more
efficient; I could change the keys used by the Lucene-Directory to
Strings, but I'd like to avoid the StringBuilder approach until
someone tells me :-)
Sanne
2010/1/14 Manik Surtani <manik(a)jboss.org>:
> Is that a typo in the Javadoc? Mircea?
>
> On 14 Jan 2010, at 11:18, Galder Zamarreno wrote:
>
>> Hi,
>>
>> I'm reading the javadoc of JdbcStringBasedCacheStore and
>> JdbcBinaryCacheStore but I don't understand the difference between them two:
>>
>> JdbcStringBasedCacheStore stores each cache entry within a row but can
>> also store non-string keys.
>>
>> JdbcBinaryCacheStore stores each bucket as a row in the database but can
>> also store non-string keys.
>>
>> So, if both support non-string keys, when do you use one versus the other?
>>
>> Cheers,
>> --
>> Galder Zamarreño
>> Sr. Software Engineer
>> Infinispan, JBoss Cache
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
> --
> Manik Surtani
> manik(a)jboss.org
> Lead, Infinispan
> Lead, JBoss Cache
>
http://www.infinispan.org
>
http://www.jbosscache.org
>
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev