Re: Secondary Key for ignite cache?

2016-11-29 Thread vkulichenko
object? [1] https://apacheignite.readme.io/v1.7/docs/sql-queries -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Secondary-Key-for-ignite-cache-tp9242p9283.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Secondary Key for ignite cache?

2016-11-29 Thread Himetic
requests, however without invalidation it obviously isn't going to be viable. So there's no way to retrieve by a secondary key with ignite cache? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Secondary-Key-for-ignite-cache-tp9242p9279.html Sent from the Apache Ignite

Re: Secondary Key for ignite cache?

2016-11-29 Thread vkulichenko
Can you parse the object and save it not as a string? In this case you can use SQL to select all objects with the same ID. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Secondary-Key-for-ignite-cache-tp9242p9275.html Sent from the Apache Ignite Users

Re: Secondary Key for ignite cache?

2016-11-29 Thread Himetic
world\" \"bar3\": \"hello world2\" } }" That would be a separate cache entry, and we could hit either of those in the cache depending on which fields are specified on the request. And if that object gets updated, we'd want to invalidate both of those

Re: Secondary Key for ignite cache?

2016-11-28 Thread vkulichenko
I'm confused. Why does the key contains these additional fields? Shouldn't it be just object ID? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Secondary-Key-for-ignite-cache-tp9242p9248.html Sent from the Apache Ignite Users mailing list archive

Re: Secondary Key for ignite cache?

2016-11-28 Thread Himetic
to invalidate all entries in the cache using just the object id. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Secondary-Key-for-ignite-cache-tp9242p9246.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Secondary Key for ignite cache?

2016-11-28 Thread vkulichenko
/Secondary-Key-for-ignite-cache-tp9242p9244.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Secondary Key for ignite cache?

2016-11-28 Thread Himetic
Is there a way to set and use a secondary key in ignite cache? Our use case is that we cache string representations of objects using a complex key that provides additional information about formatting, but we want to invalidate using just the object ID. There are many combinations of formatting