[infinispan-dev] Proto file for indexed and non-indexed use case?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[infinispan-dev] Proto file for indexed and non-indexed use case?

Galder Zamarreno
Hi Adrian,

I had a question regarding proto files. I have a single domain of objects that I want to use for two different use cases.

In the first use case, I want the proto files to be indexed so I define the comments and related @Indexed/@Field...etc annotations.

In the second use case, I'm merely using proto files as way to achieve compatibility mode, and I don't want any indexing to be done at all (cache is distributed with only compatibility and protostream marshaller enabled).

Do I need a separate .proto file for this second use case where I remove the commented sections that enable indexing? Or can I use the one for the first use case? I really want to avoid any indexing happening in the second use case since it'd slow down things for no reason.

Cheers,
--
Galder Zamarreño
Infinispan, Red Hat


_______________________________________________
infinispan-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/infinispan-dev
Reply | Threaded
Open this post in threaded view
|

Re: [infinispan-dev] Proto file for indexed and non-indexed use case?

Sanne Grinovero-3
Hi Galder,

did you consider using a non-indexed cache for the second case?

Thanks,
Sanne


On 3 April 2017 at 16:44, Galder Zamarreño <[hidden email]> wrote:

> Hi Adrian,
>
> I had a question regarding proto files. I have a single domain of objects that I want to use for two different use cases.
>
> In the first use case, I want the proto files to be indexed so I define the comments and related @Indexed/@Field...etc annotations.
>
> In the second use case, I'm merely using proto files as way to achieve compatibility mode, and I don't want any indexing to be done at all (cache is distributed with only compatibility and protostream marshaller enabled).
>
> Do I need a separate .proto file for this second use case where I remove the commented sections that enable indexing? Or can I use the one for the first use case? I really want to avoid any indexing happening in the second use case since it'd slow down things for no reason.
>
> Cheers,
> --
> Galder Zamarreño
> Infinispan, Red Hat
>
>
> _______________________________________________
> infinispan-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

_______________________________________________
infinispan-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/infinispan-dev
Reply | Threaded
Open this post in threaded view
|

Re: [infinispan-dev] Proto file for indexed and non-indexed use case?

Adrian Nistor
Yup, that's how I'd do it.

On 04/03/2017 07:58 PM, Sanne Grinovero wrote:

> Hi Galder,
>
> did you consider using a non-indexed cache for the second case?
>
> Thanks,
> Sanne
>
>
> On 3 April 2017 at 16:44, Galder Zamarreño <[hidden email]> wrote:
>> Hi Adrian,
>>
>> I had a question regarding proto files. I have a single domain of objects that I want to use for two different use cases.
>>
>> In the first use case, I want the proto files to be indexed so I define the comments and related @Indexed/@Field...etc annotations.
>>
>> In the second use case, I'm merely using proto files as way to achieve compatibility mode, and I don't want any indexing to be done at all (cache is distributed with only compatibility and protostream marshaller enabled).
>>
>> Do I need a separate .proto file for this second use case where I remove the commented sections that enable indexing? Or can I use the one for the first use case? I really want to avoid any indexing happening in the second use case since it'd slow down things for no reason.
>>
>> Cheers,
>> --
>> Galder Zamarreño
>> Infinispan, Red Hat
>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev


_______________________________________________
infinispan-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/infinispan-dev
Reply | Threaded
Open this post in threaded view
|

Re: [infinispan-dev] Proto file for indexed and non-indexed use case?

Galder Zamarreno
In reply to this post by Sanne Grinovero-3
The cache for the second use case is already non-indexed. Is that enough to make sure the annotations are ignored?

Cheers,
--
Galder Zamarreño
Infinispan, Red Hat

> On 3 Apr 2017, at 18:58, Sanne Grinovero <[hidden email]> wrote:
>
> Hi Galder,
>
> did you consider using a non-indexed cache for the second case?
>
> Thanks,
> Sanne
>
>
> On 3 April 2017 at 16:44, Galder Zamarreño <[hidden email]> wrote:
>> Hi Adrian,
>>
>> I had a question regarding proto files. I have a single domain of objects that I want to use for two different use cases.
>>
>> In the first use case, I want the proto files to be indexed so I define the comments and related @Indexed/@Field...etc annotations.
>>
>> In the second use case, I'm merely using proto files as way to achieve compatibility mode, and I don't want any indexing to be done at all (cache is distributed with only compatibility and protostream marshaller enabled).
>>
>> Do I need a separate .proto file for this second use case where I remove the commented sections that enable indexing? Or can I use the one for the first use case? I really want to avoid any indexing happening in the second use case since it'd slow down things for no reason.
>>
>> Cheers,
>> --
>> Galder Zamarreño
>> Infinispan, Red Hat
>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
> _______________________________________________
> infinispan-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/infinispan-dev


_______________________________________________
infinispan-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/infinispan-dev
Reply | Threaded
Open this post in threaded view
|

Re: [infinispan-dev] Proto file for indexed and non-indexed use case?

Adrian Nistor
yes!

On 04/04/2017 03:48 PM, Galder Zamarreño wrote:

> The cache for the second use case is already non-indexed. Is that enough to make sure the annotations are ignored?
>
> Cheers,
> --
> Galder Zamarreño
> Infinispan, Red Hat
>
>> On 3 Apr 2017, at 18:58, Sanne Grinovero <[hidden email]> wrote:
>>
>> Hi Galder,
>>
>> did you consider using a non-indexed cache for the second case?
>>
>> Thanks,
>> Sanne
>>
>>
>> On 3 April 2017 at 16:44, Galder Zamarreño <[hidden email]> wrote:
>>> Hi Adrian,
>>>
>>> I had a question regarding proto files. I have a single domain of objects that I want to use for two different use cases.
>>>
>>> In the first use case, I want the proto files to be indexed so I define the comments and related @Indexed/@Field...etc annotations.
>>>
>>> In the second use case, I'm merely using proto files as way to achieve compatibility mode, and I don't want any indexing to be done at all (cache is distributed with only compatibility and protostream marshaller enabled).
>>>
>>> Do I need a separate .proto file for this second use case where I remove the commented sections that enable indexing? Or can I use the one for the first use case? I really want to avoid any indexing happening in the second use case since it'd slow down things for no reason.
>>>
>>> Cheers,
>>> --
>>> Galder Zamarreño
>>> Infinispan, Red Hat
>>>
>>>
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> [hidden email]
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> _______________________________________________
>> infinispan-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
> _______________________________________________
> infinispan-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/infinispan-dev


_______________________________________________
infinispan-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/infinispan-dev