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

Galder Zamarreño galder at redhat.com
Mon Apr 3 11:44:55 EDT 2017


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




More information about the infinispan-dev mailing list