Hi AU, 1. You can try to convert Protobuf object to Ignite BinaryObject [1] to store it in cache. Please, take a look at Binary Object concept [2]. 2. Then you can try to create index via SQL "CREATE INDEX" clause [3].
[1] https://apacheignite.readme.io/docs/binary-marshaller#section-binaryobject-cache-api [2] https://apacheignite.readme.io/docs/binary-marshaller#basic-concepts [3] https://apacheignite-sql.readme.io/docs/create-index On Tue, Mar 13, 2018 at 5:13 AM, au.fp2018 <[email protected]> wrote: > Hello All, > > In my project I am trying to use Ignite for the first time. I am trying to > store Protocol Buffer messages as value objects in my cache. > > After spending a lot of time researching and experimenting, I've come to > the > conclusion that Protobuf and Ignite SQL do not play very well. The only way > to get them to work is by converting from Protobuf -> Flat domain class and > then store it in Ignite. If I do that then I lose all the type safety and > expressivity of my domain classes. > > At this point I am ready to give up the possibility of using SQL and just > use SCAN queries. As working with Protobuf objects is more native, and also > these message would need to be eventually streamed out. Being able to work > with an unconstrained domain object and the ability to do *Continuous > queries* are very important requirement for me. > > Given that, my questions are: > > 1. Since I am unable to setup INDEXES, is that going to have a negative > impact on my application - since I will be limited to using SCAN queries > all > the time. > 2. Are INDEXES even used during SCAN queries ? (stupid question maybe) > 3. Has anyone successfully used Protocol buffers with Ignite? > > Thanks in Advance > -AU > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > -- Best regards, Andrey V. Mashenkov
