ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (Jira)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-13671) Support collocation based on multiple fields
Date Wed, 04 Nov 2020 09:04:00 GMT
Valentin Kulichenko created IGNITE-13671:
--------------------------------------------

             Summary: Support collocation based on multiple fields
                 Key: IGNITE-13671
                 URL: https://issues.apache.org/jira/browse/IGNITE-13671
             Project: Ignite
          Issue Type: Improvement
            Reporter: Valentin Kulichenko
             Fix For: 3.0


In Ignite 2.x there are two ways to configure collocation: @AffinityKeyMapped annotation
and CacheKeyConfiguration bean. Both allow specifying *only one field* to be used for collocation.

Let's say there is a key class that looks like this:
{code:java}
class MyCacheKey {
    int a;
    int b;
    int c;
}{code}
In this case, there is no way to collocate the data based on a pair of fields (e.g. a and
b).

In 3.0, we should have an API that would allow to specify two or more fields to be used for
collocation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message