[infinispan-dev] BulkGet in hotrod (ISPN-516)

Mircea Markus mircea.markus at jboss.com
Wed Jul 14 08:23:37 EDT 2010


thanks, see bellow.
On 14 Jul 2010, at 11:49, Galder Zamarreño wrote:

> Hi Mircea,
> 
> You should make it explicit in the title that this is a design document to avoid confusion.
done
> I'm not sure I understand what the filter and exclusion parameters are about.
Filtering is about excluding from the set of entries returned by the server to the client of those filtering keys specified in the request (filter size] [filter key size 1] [filter key 1] [filter key size 2] [filter key 2]...).
> A multi get, as I see is about giving a list of keys and returning them. So, why use filtering?
We need filtering because of RemoteCacheStore: it needs to implement  CacheLoader.loadAllKeys(Set<Object> keysToExclude)

> And what type of filtering would it be? REGEX based filtering?...etc. Are you trying to use filtering as a way for clients to instruct to load all keys for example? Like get(*) ?
Just explicit filtering: specify the keys you want to be filtered, an the way you want to filter them (inclusive or exclusive filtering)

> 
> What does it mean that they're inclusive? Only keys that fulfill all filters will be returned? If so, what's the use case for this?
it means that only these keys are being returned form the client, if they exist. The use case is adding an RemoteCache.get(Set) method (as stated in the document). 
> 
> I'm also worried if this might be complicating the protocol when RCS can simply start a bunch of threads and get all the keys in paralell individually. The only thing that would be really be missing here is how to get the list of all keys stored in the server, for loadAll() calls for example.
that should be possible by specifying a "key size = -1" in the request - I've updated the document as that bit was missing.  
> 
> One thing to note is that Memcached binary protocol removed support for multi-get as such. IOW, in the txt protocol, u could do: get <k1>, <k2>...etc but not any more in the binary one.
> 
> For the binary protocol, they went for a different approach based on get/getq where they pipeline requests, see "4.2.  Get, Get Quietly, Get Key, Get Key Quietly" section on: http://code.google.com/p/memcached/wiki/MemcacheBinaryProtocol
> 
> I think it's interesting to find out more about, particularly about this sentence cos I'm not sure I understand it: "You can also do the naive thing and send n pipelined get/getks, but then you could potentially get back a lot of "NOT_FOUND" error code packets. "
> 
Interesting!  looking into this right now
> Cheers,
> 
> On Jul 14, 2010, at 9:50 AM, Mircea Markus wrote:
> 
>> Hi,
>> 
>> I've added a wiki to summarise some thoughts around how this should work: http://community.jboss.org/wiki/HotRodBulkGet
>> Can you please take a look and comment?
>> 
>> Cheers,
>> Mircea
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 
> --
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20100714/3ceb92db/attachment-0001.html 


More information about the infinispan-dev mailing list