# US 2021/0240678 A1 · Multidimensional partition of data to calculate aggregation at scale

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0240678 A1
- Document ID: US20210240678A1
- Status: Published application
- Kind: A1
- Application number: 16/779,386
- Filed: 2020-01-31
- Published: 2021-08-05
- Earliest claimed: 2020-01-31
- Assignees: salesforce.com, inc.
- Applicants: Salesforce.com, inc.
- Inventors: Yogesh Patel; Percy Mehta; Mattia Padovani; Shan-Cheng Ho; Shaahin Mehdinezhad Rushan; Johannes Kienzle
- Web page: https://patentgrep.com/patent/US20210240678A1

## CPC

- G06F 16/215: Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06F 16/283: {Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method enables data aggregation in a multi-tenant system. The method includes receiving, at a data aggregation manager, an event from an activity tracking component, generating, by the data aggregation manager, a first hash value based on a first identifier in the event, generating, by the data aggregation manager, a second hash value based on a second identifier in the event, and storing event message information to an entry of a metric storage database in a partition according the first hash value and the second hash value.

## Claims

### Claim 1

A method of data aggregation in a multi-tenant system, the method comprising:
receiving, at a data aggregation manager, an event from an activity tracking component;
generating, by the data aggregation manager, a first hash value based on a first identifier in the event;
generating, by the data aggregation manager, a second hash value based on a second identifier in the event; and
storing event message information to an entry of a metric storage database in a partition according the first hash value and the second hash value.

### Claim 2 (depends on 1)

The method of data aggregation of claim 1, further comprising:
discarding the event in response to determining that the metric storage database includes a prior copy of the event in an entry including the first hash value and the second hash value.

### Claim 3 (depends on 1)

The method of data aggregation of claim 1, further comprising:
updating a metric count for the entry.

### Claim 4 (depends on 1)

The method of data aggregation of claim 1, further comprising:
aggregating a metric count across partitions in the metric storage database.

### Claim 5 (depends on 1)

The method of data aggregation of claim 1, wherein the event is generated by an activity tracker.

### Claim 6 (depends on 1)

The method of data aggregation of claim 1, wherein the first identifier is an asset identifier that uniquely identifies an activity or engagement.

### Claim 7 (depends on 1)

The method of data aggregation of claim 1, wherein the second identifier is a target identifier to uniquely identify a target recipient of the event.

### Claim 8 (depends on 1)

The method of data aggregation of claim 1, wherein the first hash value determines a horizontal partition in the metric storage database.

### Claim 9 (depends on 1)

The method of data aggregation of claim 1, wherein the second hash value determines a vertical partition in the metric storage database.

### Claim 10

A non-transitory machine-readable storage medium that provides instructions that, if executed by a processor, will cause said processor to perform operations comprising:
receiving, at a data aggregation manager, an event from an activity tracking component;
generating, by the data aggregation manager, a first hash value based on a first identifier in the event;
generating, by the data aggregation manager, a second hash value based on a second identifier in the event; and
storing event message information to an entry of a metric storage database in a partition according the first hash value and the second hash value.

### Claim 11 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, the operations further comprising:
discarding the event in response to determining that the metric storage database includes a prior copy of the event in an entry including the first hash value and the second hash value.

### Claim 12 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, the operations further comprising:
updating a metric count for the entry.

### Claim 13 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, the operations further comprising:
aggregating a metric count across partitions in the metric storage database.

### Claim 14 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein the event is generated by an activity tracker.

### Claim 15 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein the first identifier is an asset identifier that uniquely identifies an activity or engagement.

### Claim 16 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein the second identifier is a target identifier to uniquely identify a target recipient of the event.

### Claim 17 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein the first hash value determines a horizontal partition in the metric storage database.

### Claim 18 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein the second hash value determines a vertical partition in the metric storage database.

### Claim 19

A computer system to execute a method of data aggregation in a multi-tenant system, the computer system comprising:
a non-transitory machine-readable storage medium having stored therein a data aggregation manager; and
a processor coupled to the non-transitory machine-readable storage medium, the processor to execute the data aggregation manager, the data aggregation manager to receive an event from an activity tracking component, to generate a first hash value based on a first identifier in the event, to generate a second hash value based on a second identifier in the event, and to store event message information to an entry of a metric storage database in a partition according the first hash value and the second hash value.

### Claim 20 (depends on 19)

The computer system of claim 19, wherein the data aggregation manager is further to discard the event in response to determining that the metric storage database includes a prior copy of the event in an entry including the first hash value and the second hash value.
