Got it! Thanks, Val.

What would it take to add support for indexing/querying of primitive collection 
fields out of the box? It's less cumbersome, more user-friendly, would consume 
less memory and hopefully run faster (e.g. no need for transactions on the 
write side, no need for joins on the read side, etc.).

Has the community considered adding this feature?

Thanks
Andrey
________________________________
From: vkulichenko <[email protected]>
Sent: Friday, September 15, 2017 10:43 AM
To: [email protected]
Subject: Re: Indexing collection fields

Andrey,

You should remove collections from the POJO and create two new types (e.g.
StringValue and IntValue) that reference the parent POJO by ID. Something
like this:

StringValue {
    String val;
    int pojoid;
}

This way you will be able to index StringValue#val and join it with Pojo.

-Val



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to