Re: [infinispan-dev] OGM, Hot Rod and Grouping API

2014-06-06 Thread Pedro Ruivo
On 06/06/2014 01:51 PM, Emmanuel Bernard wrote: We expect the same semantic as a RDBMS in READ_COMMITTED. getGroup() would be equivalent to a select * from ASSOC_TABLE where owner_id = 2. Phantom reads would be acceptable. Does that answer your question? Because I’m not sure what you mean

Re: [infinispan-dev] OGM, Hot Rod and Grouping API

2014-06-06 Thread William Burns
On Fri, Jun 6, 2014 at 8:51 AM, Emmanuel Bernard emman...@hibernate.org wrote: We expect the same semantic as a RDBMS in READ_COMMITTED. getGroup() would be equivalent to a select * from ASSOC_TABLE where owner_id = 2. Phantom reads would be acceptable. Yeah we can't currently stop any

Re: [infinispan-dev] OGM, Hot Rod and Grouping API

2014-06-06 Thread Emmanuel Bernard
On 06 Jun 2014, at 15:04, William Burns mudokon...@gmail.com wrote: Does that answer your question? Because I’m not sure what you mean by the key being attached to the Tx. The difference is say you have a tx1 on thread 1 then on the same thread you ask for the group, if it is in the

Re: [infinispan-dev] OGM, Hot Rod and Grouping API

2014-06-06 Thread Emmanuel Bernard
On 06 Jun 2014, at 15:29, Emmanuel Bernard emman...@hibernate.org wrote: On 06 Jun 2014, at 15:04, William Burns mudokon...@gmail.com wrote: Does that answer your question? Because I’m not sure what you mean by the key being attached to the Tx. The difference is say you have a tx1 on

Re: [infinispan-dev] OGM, Hot Rod and Grouping API

2014-06-06 Thread William Burns
On Fri, Jun 6, 2014 at 9:33 AM, Emmanuel Bernard emman...@hibernate.org wrote: On 06 Jun 2014, at 15:29, Emmanuel Bernard emman...@hibernate.org wrote: On 06 Jun 2014, at 15:04, William Burns mudokon...@gmail.com wrote: Does that answer your question? Because I’m not sure what you mean by

Re: [infinispan-dev] OGM, Hot Rod and Grouping API

2014-05-29 Thread Pedro Ruivo
I was thinking to move the new methods to the AdvancedCache. But, IMO, a new interface is not needed. On 05/29/2014 09:26 AM, Tristan Tarrant wrote: On 28/05/2014 12:52, Davide D'Alto wrote: Mircea created an experimental stub where the method G, KG SetKG getGroupKeys(G group) is added to

Re: [infinispan-dev] OGM, Hot Rod and Grouping API

2014-05-29 Thread Tristan Tarrant
Ok, moving to AdvancedCache is also good. Have you already got a proposal for Hot Rod ? Tristan On 29/05/2014 11:19, Pedro Ruivo wrote: I was thinking to move the new methods to the AdvancedCache. But, IMO, a new interface is not needed. On 05/29/2014 09:26 AM, Tristan Tarrant wrote: On

Re: [infinispan-dev] OGM, Hot Rod and Grouping API

2014-05-29 Thread Pedro Ruivo
On 05/29/2014 10:24 AM, Tristan Tarrant wrote: Ok, moving to AdvancedCache is also good. Have you already got a proposal for Hot Rod ? not yet. I'm starting with embedded and then I'll add the operation to Hot Rod (Hot Rod is outside my comfort area and I'll need some time to find out how

[infinispan-dev] OGM, Hot Rod and Grouping API

2014-05-28 Thread Davide D'Alto
Hi all, some time ago we talked on the mailing list about the integration between Hibernate OGM and Hot Rod. To achieve this we would need to include the grouping API in the Hot Rod protocol and to add a couple of methods in the grouping API: - to get the keys in a group - to remove the keys in