# US 2023/0267116 A1 · Translation of tenant identifiers

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

- Number: US 2023/0267116 A1
- Document ID: US20230267116A1
- Status: Published application
- Kind: A1
- Application number: 18/141,565
- Filed: 2023-05-01
- Published: 2023-08-24
- Earliest claimed: 2018-09-24
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: Thomas Fanghaenel
- Web page: https://patentgrep.com/patent/US20230267116A1

## CPC

- G06F 16/2452: Query translation
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/2237: {Vectors, bitmaps or matrices}
- G06F 16/2291: {User-Defined Types; Storage management thereof}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, devices, and techniques are disclosed for translation of tenant identifiers. A record may be received. A value of a tenant identifier for the record may be determined from a key for the record or a scan descriptor. The value of the tenant identifier in the key for the record may be replaced with a new value for the tenant identifier. A bitmap stored in a record header of the record may be used to identify columns of the record that stored an encoded value of the tenant identifier. An encoded new value of the tenant identifier may be stored in columns identified by the bitmap stored in the record header that include an attribute indicating that tenant identifier translation is enabled.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a record;
removing an encoded value of a tenant identifier from a tenant identifier column of the record;
determining that the encoded value of the tenant identifier is stored in at least one other column of the record;
generating a bitmap identifying columns of the record where the encoded value of the tenant identifier is stored;
removing the encoded value of the tenant identifier from the columns of the record identified by the bitmap; and
storing the bitmap and the encoded value of the tenant identifier in a record header of the record.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising storing a bit in the record header of the record indicating that the bitmap and the encoded value of the tenant identifier are stored in the record header.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising storing a bit in the record header of the record indicating that the encoded value of the tenant identifier was removed from the tenant identifier column of the record.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising storing a tenant identifier column attribute number in the record header of the record that identifies the tenant identifier column.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the record is received from the persistent storage of a multi-tenanted database system.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the record is unpacked in working memory of a multi-tenanted database system.

### Claim 7

A computer-implemented system for translation of tenant identifiers comprising:
one or more storage devices comprising a persistent storage and a working storage;
and a processor that retrieves a record from the persistent storage and write the record to the working storage, removes an encoded value of a tenant identifier from a tenant identifier column of the record, determines that the encoded value of the tenant identifier is stored in at least one other column of the record, generates a bitmap identifying columns of the record where the encoded value of the tenant identifier is stored, removes the encoded value of the tenant identifier from the columns of the record identified by the bitmap, and stores the bitmap and the encoded value of the tenant identifier in a record header of the record.

### Claim 8 (depends on 7)

The computer-implemented system of claim 7, wherein the processor further stores a bit in the record header of the record indicating that the bitmap and the encoded value of the tenant identifier are stored in the record header.

### Claim 9 (depends on 7)

The computer-implemented system of claim 7, wherein the processor further stores a bit in the record header of the record indicating that the encoded value of the tenant identifier was removed from the tenant identifier column of the record.

### Claim 10 (depends on 7)

The computer-implemented system of claim 7, wherein the processor further stores a tenant identifier column attribute number in the record header of the record that identifies the tenant identifier column.

### Claim 11 (depends on 7)

The computer-implemented system of claim 7, wherein the record is received from the persistent storage of a multi-tenanted database system.

### Claim 12 (depends on 7)

The computer-implemented system of claim 7, wherein the record is unpacked in working memory of a multi-tenanted database system.

### Claim 13

A system comprising: one or more computers and one or more storage devices storing instructions which are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising:
receiving a record;
removing an encoded value of a tenant identifier from a tenant identifier column of the record;
determining that the encoded value of the tenant identifier is stored in at least one other column of the record;
generating a bitmap identifying columns of the record where the encoded value of the tenant identifier is stored;
removing the encoded value of the tenant identifier from the columns of the record identified by the bitmap; and
storing the bitmap and the encoded value of the tenant identifier in a record header of the record.

### Claim 14 (depends on 13)

The system of claim 13, wherein the instructions are operable, when executed by the one or more computers, to further cause the one or more computers to perform operations comprising storing a bit in the record header of the record indicating that the bitmap and the encoded value of the tenant identifier are stored in the record header.

### Claim 15 (depends on 13)

The system of claim 13, wherein the instructions are operable, when executed by the one or more computers, to further cause the one or more computers to perform operations comprising storing a bit in the record header of the record indicating that the encoded value of the tenant identifier was removed from the tenant identifier column of the record.

### Claim 16 (depends on 13)

The system of claim 13, wherein the instructions are operable, when executed by the one or more computers, to further cause the one or more computers to perform operations comprising storing a tenant identifier column attribute number in the record header of the record that identifies the tenant identifier column.

### Claim 17 (depends on 13)

The system of claim 13, wherein the record is received from the persistent storage of a multi-tenanted database system.

### Claim 18 (depends on 13)

The system of claim 13, wherein the record is unpacked in working memory of a multi-tenanted database system.
