# US 2025/0053563 A1 · Offloading graph components to persistent storage for reducing resident memory in distributed graph processing

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

- Number: US 2025/0053563 A1
- Document ID: US20250053563A1
- Status: Published application
- Kind: A1
- Application number: 18/934,068
- Filed: 2024-10-31
- Published: 2025-02-13
- Earliest claimed: 2022-10-27
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: ARNAUD DELAMARE; IRFAN BUNJAKU; VASILEIOS TRIGONAKIS; CALIN IORGULESCU; TOMAS FALTIN; SUNGPACK HONG; HASSAN CHAFI
- Web page: https://patentgrep.com/patent/US20250053563A1

## CPC

- G06F 16/24552: {Database cache management}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/2343: {Locking methods, e.g. distributed locking or locking implementation details}
- G06F 16/24542: {Plan optimisation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage manager maintains metadata for a plurality of graph components including, for each given graph component, a memory-state indicator that indicates whether the given graph component is stored in memory. The storage manager identifies a set of graph components required to execute a graph processing operation and identifies, based on the metadata, a first subset of the set of graph components that are stored in the memory and a second subset of the set of graph components that are not stored in the memory. The storage manager loads the second subset of graph components into memory and initiates execution of the graph processing operation using the set of graph components in memory.

## Claims

### Claim 1

A computer-implemented method comprising:
maintaining metadata for a plurality of graph components, wherein the metadata comprises, for each given graph component, a memory-state indicator that indicates whether the given graph component is stored in memory;
identifying a set of graph components required to execute a graph processing operation on a graph by a job in a graph processing engine of a database system;
identifying, based on the metadata, a first subset of the set of graph components that are stored in the memory and a second subset of the set of graph components that are not stored in the memory;
determining an amount of memory needed to load the second subset of graph components into the memory;
reserving an amount of memory needed to load the second subset of graph components into the memory;
loading the second subset of graph components into the memory; and
initiating execution of the graph processing operation using the set of graph components in the memory,
wherein the method is performed by one or more computing devices.

### Claim 2 (depends on 1)

The method of claim 1, wherein identifying the set of graph components comprises receiving a request from the job that specifies the set of graph components to be loaded into the memory.

### Claim 3 (depends on 1)

The method of claim 1, wherein identifying the set of graph components comprises determining the set of graph components based on an execution plan selected for the graph processing operation.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
a resource manager assigns an amount of memory needed to execute the graph processing operation;
reserving the amount of memory needed to load the second subset of graph components into the memory comprises requesting, from the resource manager, the amount of memory needed to load the second subset of graph components into the memory; and
the resource manager assigns the amount of memory needed to load the second subset of graph components into the memory from the amount of memory assigned for the graph processing operation.

### Claim 5 (depends on 1)

The method of claim 1, wherein the metadata further comprises:
a size of the graph component, and
a usage counter indicating a number of jobs that are currently using the graph component.

### Claim 6 (depends on 5)

The method of claim 5, further comprising incrementing the usage counter for the given graph component in response to the given graph component being loaded into the memory and setting the memory-state indicator to indicate that the given graph component is stored in the memory.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
decrementing usage counters for the set of graph components in response to completion of the graph processing operation.

### Claim 8 (depends on 5)

The method of claim 5, wherein the metadata further comprises:
a type of the given graph component,
a modified indicator that indicates whether the given graph component has been modified,
an external-state indicator that indicates whether the given graph component exists in external storage, or
a dirty indicator that indicates whether the given graph component might be modified.

### Claim 9 (depends on 1)

The method of claim 1, wherein the second subset of graph components are loaded into the memory in parallel.

### Claim 10 (depends on 1)

The method of claim 1, wherein the set of graph components comprise at least one of:
a forward index that stores outgoing edges of a vertex,
a reverse index that stores incoming edges of a vertex,
a vertex key-mapping,
a vertex property, or
an edge property.

### Claim 11 (depends on 1)

The method of claim 1, further comprising writing to a persistent storage a particular graph component that was altered during execution of the graph processing operation.

### Claim 12 (depends on 11)

The method of claim 11, wherein writing the particular graph component to the persistent storage is performed asynchronously by a background thread.

### Claim 13 (depends on 1)

The method of claim 1, wherein:
the graph processing operation comprises a graph query using breadth-first traversal,
the set of graph components comprise graph components needed to perform a given vertex-and-edge matching stage of the graph query, and
the set of graph components are marked as unused in response to completion of the given vertex-and-edge matching stage.

### Claim 14

One or more non-transitory storage media storing instructions which, when executed by one or more computing devices, cause performance of:
maintaining metadata for a plurality of graph components, wherein the metadata comprises, for each given graph component, a memory-state indicator that indicates whether the given graph component is stored in memory;
identifying a set of graph components required to execute a graph processing operation on a graph by a job in a graph processing engine of a database system;
identifying, based on the metadata, a first subset of the set of graph components that are stored in the memory and a second subset of the set of graph components that are not stored in the memory;
determining an amount of memory needed to load the second subset of graph components into the memory;
reserving an amount of memory needed to load the second subset of graph components into the memory;
loading the second subset of graph components into the memory; and
initiating execution of the graph processing operation using the set of graph components in the memory.

### Claim 15 (depends on 14)

The one or more non-transitory storage media of claim 14, wherein:
a resource manager assigns an amount of memory needed to execute the graph processing operation;
reserving the amount of memory needed to load the second subset of graph components into the memory comprises requesting, from the resource manager, the amount of memory needed to load the second subset of graph components into the memory; and
the resource manager assigns the amount of memory needed to load the second subset of graph components into the memory from the amount of memory assigned for the graph processing operation.

### Claim 16 (depends on 14)

The one or more non-transitory storage media of claim 14, wherein the metadata further comprises:
a size of the graph component, and
a usage counter indicating a number of jobs that are currently using the graph component.

### Claim 17 (depends on 16)

The one or more non-transitory storage media of claim 16, further comprising incrementing the usage counter for the given graph component in response to the given graph component being loaded into the memory and setting the memory-state indicator to indicate that the given graph component is stored in the memory.

### Claim 18 (depends on 16)

The one or more non-transitory storage media of claim 16, further comprising:
decrementing usage counters for the set of graph components in response to completion of the graph processing operation.

### Claim 19 (depends on 16)

The one or more non-transitory storage media of claim 16, wherein the metadata further comprises:
a type of the given graph component,
a modified indicator that indicates whether the given graph component has been modified,
an external-state indicator that indicates whether the given graph component exists in external storage, or
a dirty indicator that indicates whether the given graph component might be modified.

### Claim 20 (depends on 14)

The one or more non-transitory storage media of claim 14, wherein:
the graph processing operation comprises a graph query using breadth-first traversal,
the set of graph components comprise graph components needed to perform a given vertex-and-edge matching stage of the graph query, and
the set of graph components are marked as unused in response to completion of the given vertex-and-edge matching stage.
