Vladimir Ozerov created IGNITE-3829:
---------------------------------------
Summary: 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
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)