ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AndreyVel <andrey4...@gmail.com>
Subject Re: How to accelerate the query speed in Partitioned Mode
Date Thu, 23 Jun 2016 13:24:24 GMT
Hello ght230
Do you use setAffinityMapper to put selected rows in one partition?

        cacheCfg.setAffinityMapper(new AffinityKeyMapper() {
            @Override
            public Object affinityKey(Object key) {
                if (key instanceof PersonKey){
                    PersonKey det = (PersonKey)key;
                    return pk.getGroupId();
                }
                return key;
            }
        });



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-accelerate-the-query-speed-in-Partitioned-Mode-tp5826p5837.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message