Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AD4E0200B9E for ; Fri, 2 Sep 2016 17:23:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AC14D160AAE; Fri, 2 Sep 2016 15:23:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EEE08160ACF for ; Fri, 2 Sep 2016 17:23:22 +0200 (CEST) Received: (qmail 32555 invoked by uid 500); 2 Sep 2016 15:23:22 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 32403 invoked by uid 99); 2 Sep 2016 15:23:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2016 15:23:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 05D4E2C1B7D for ; Fri, 2 Sep 2016 15:23:22 +0000 (UTC) Date: Fri, 2 Sep 2016 15:23:22 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (IGNITE-3829) Use BinaryType.field() for fast affinity key resolution. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Sep 2016 15:23:23 -0000 [ https://issues.apache.org/jira/browse/IGNITE-3829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Ozerov resolved IGNITE-3829. ------------------------------------- Resolution: Fixed > Use BinaryType.field() for fast affinity key resolution. > -------------------------------------------------------- > > Key: IGNITE-3829 > URL: https://issues.apache.org/jira/browse/IGNITE-3829 > Project: Ignite > Issue Type: Task > Components: cache > Affects Versions: 1.7 > Reporter: Vladimir Ozerov > Assignee: Vladimir Ozerov > Labels: performance > Fix For: 1.8 > > > See {{CacheObjectBinaryProcessorImpl.affinityKey}} method. Currently to get affinity key field of a regular binary object (i.e. {{BinaryObjectImpl}}), we do two heavy things: > 1) Lookup object type from system cache to get affinity key field name. > 2) Get that field using {{BinaryObject.field}} method. > To avoid system cache lookup we should cache resolver affinity field names by type ID. To speed field value resolving we should cache not names, but {{BinaryField}}.s -- This message was sent by Atlassian JIRA (v6.3.4#6332)