# US 2022/0035794 A1 · Data retrieval via incremental updates to graph data structures

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

- Number: US 2022/0035794 A1
- Document ID: US20220035794A1
- Status: Published application
- Kind: A1
- Application number: 16/943,322
- Filed: 2020-07-30
- Published: 2022-02-03
- Earliest claimed: 2020-07-30
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Kanak Mahadik
- Web page: https://patentgrep.com/patent/US20220035794A1

## CPC

- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 16/90335: {Query processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Certain embodiments involve tracking incremental updates to graph data structures and thereby facilitating efficient data retrieval. For instance, a computing system services a first query for one or more segments of computing devices, online entities, or both. The computing system services the first query by searching of a set of nodes from a graph data structure. The computing system receives a second query after the graph data structure has been modified. The computing system identifies, from a change list for tracking changes to the graph data structure, a subset of the nodes impacted by the modification to the graph data structure. The computing system services the second query by searching the subset of impacted nodes in the graph data structure.

## Claims

### Claim 1

A method in which one or more processing devices performs operations comprising:
servicing a first query having a set of query parameter values with respect to traits of computing devices for accessing interactive computing environments and traits of online entities that are authenticated by the interactive computing environments, wherein servicing the first query comprises applying a segment qualification operation to nodes from a graph data structure;
storing, in a log or a database on a storage device, log data identifying a first segment set generated by the segment qualification operation;
receiving a second query having the set of query parameter values; and
servicing the second query based on a change list identifying modifications to the graph data structure, wherein the servicing the second query:
identifying, from the change list, a subset of the nodes impacted by a modification to the graph data structure that occurred subsequent to the segment qualification operation,
updating, based on the impacted subset of nodes, the first segment set from the log data to generate a second segment set, and
transmitting a response identifying the second segment set.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
the graph data structure comprises:
(a) a first key-value index identifying the nodes and traits of the nodes, wherein keys of the first key-value index identify the online entities and the computing devices, wherein values of the first key-value index identify the traits of the online entities and the traits of the computing devices, and
(b) a second key-value index identifying edges connecting at least some of the nodes in the graph data structure, wherein keys of the second key-value index identify the computing devices and values of the second key-value index identify sets of the online entities linked to the computing devices,
performing the segment qualification operation comprises:
identifying a first segment having a first set of traits by (a) selecting a first computing device and a first subset of the online entities identified in the second key-value index as being linked to the first computing device and (b) selecting, as the first set of traits, traits of the first computing device from the first key-value index and traits of the first subset of the online entities from the first key-value index,
identifying a second segment having a second set of traits by (a) selecting a second computing device and a second subset of the online entities identified in the second key-value index as being linked to the second computing device and (b) selecting, as the second set of traits, traits of the second computing device from the first key-value index and traits of the second subset of the online entities from the first key-value index,
determining that the set of query parameter values matches the first set of traits and the second set of traits, and
including the first segment and the second segment in the first segment set; and
updating the first segment set based on the impacted subset of nodes comprises:
determining that the first computing device is included in the impacted subset of nodes,
identifying a modified first segment having a modified set of traits by (a) selecting the first computing device and a subset of the online entities identified in the second key-value index as being linked to the first computing device and (b) selecting, as the modified set of traits, traits of the first computing device from the first key-value index and traits of the subset of the online entities from the first key-value index,
determining that the set of query parameter values does not match the modified set of traits,
retrieving the second segment from the log based on the second computing device being absent from the impacted subset of nodes, and
creating the second segment set by excluding the first modified segment and retaining the second segment from the first segment set.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the graph data structure comprises:
(a) a first key-value index identifying the nodes of the graph data structure and traits of the nodes, wherein keys of the first key-value index identify the computing devices and the online entities, wherein values of the first key-value index identify the traits of the computing devices and the traits of the online entities, and
(b) a second key-value index identifying edges connecting at least some of the nodes in the graph data structure, wherein keys of the second key-value index identify the online entities and values of the second key-value index identify sets of the computing devices linked to the online entities,
performing the segment qualification operation comprises:
identifying a first segment having a first set of traits by (a) selecting a first online entity and a first subset of the computing devices identified in the second key-value index as being linked to the first online entity and (b) selecting, as the first set of traits, traits of the first online entity from the first key-value index and traits of the first subset of the computing devices from the first key-value index,
identifying a second segment having a second set of traits by (a) selecting a second online entity and a second subset of the computing devices identified in the second key-value index as being linked to the second online entity and (b) selecting, as the second set of traits, traits of the second online entity from the first key-value index and traits of the second subset of the computing devices from the first key-value index,
determining that the set of query parameter values matches the first set of traits and the second set of traits, and
including the first segment and the second segment in the first segment set; and
updating the first segment set based on the impacted subset of nodes comprises:
determining that the first online entity is included in the impacted subset of nodes,
identifying a modified first segment having a modified set of traits by (a) selecting the first online entity and a subset of the computing devices identified in the second key-value index as being linked to the first online entity and (b) selecting, as the modified set of traits, traits of the first online entity from the first key-value index and traits of the subset of the computing devices from the first key-value index,
retrieving the second segment from the log based on the second online entity being absent from the impacted subset of nodes,
determining that the set of query parameter values does not match the modified set of traits, and
creating the second segment set by excluding the first modified segment and retaining the second segment from the first segment set.

### Claim 4 (depends on 1)

The method of claim 1, wherein the operations further comprise, subsequent to servicing the first query and prior to the modification to the graph data structure:
servicing an additional query having the set of query parameter values by at least:
retrieving the first segment set from the log or the database,
determining, from the change list, that no modification has impacted a subset of the nodes that is identified in the first segment set, and
transmitting an additional response identifying the first segment set.

### Claim 5 (depends on 1)

The method of claim 1, wherein a plurality of key-value indices that implement the graph data structure, wherein the operations further comprise:
applying a modification to one or more of the key-value indices, wherein the modification to the one or more of the key-value indices adds or removes an edge between a pair of the nodes in the graph data structure; and
updating the change list to identify the modification to the one or more of the key-value indices.

### Claim 6 (depends on 5)

The method of claim 5, wherein the plurality of key-value indices comprises:
a first key-value index identifying the nodes of the graph data structure and traits of the nodes, wherein keys of the first key-value index identify the computing devices and the online entities, wherein values of the first key-value index identify the traits of the computing devices and the traits of the online entities;
a second key-value index identifying edges connecting at least some of the nodes in the graph data structure, wherein keys of the second key-value index identify the computing devices and values of the second key-value index identify sets of the online entities linked to the computing devices; and
a third key-value index identifying additional edges connecting at least some of the nodes in the graph data structure, wherein keys of the third key-value index identify the online entities and values of the third key-value index identify sets of the computing devices linked to the online entities.

### Claim 7 (depends on 6)

The method of claim 6, the operations further comprising:
applying an additional modification to the first key-value index by adding or removing a key-value pair;
updating the change list to identify the additional modification;
receiving, subsequent to the additional modification being applied, a third query having the set of query parameter values; and
servicing the third query by at least:
retrieving, from the storage device, log data identifying the second segment set,
determining, from the change list, that the additional modification has impacted traits in a subset of the nodes that is identified in the second segment set,
generating a third segment set by at least updating, based on the impacted traits in the subset of the nodes that is identified in the second segment set, the second segment set identified by the log data, and
transmitting a third response identifying the third segment set.

### Claim 8

A system comprising:
a non-transitory computer-readable medium storing a graph data structure and a change list, the graph data structure comprising (a) nodes representing computing devices and online entities and (b) edges between nodes representing relationships among the computing devices and the online entities;
processing hardware communicatively coupled to the non-transitory computer-readable medium and configured for performing operations comprising:
servicing a first query by performing a first search of nodes from the graph data structure,
applying a modification to the graph data structure,
receiving a second query,
identifying, from the change list, a subset of the nodes impacted by the modification to the graph data structure,
servicing the second query by performing a second search that is limited to the subset of the nodes.

### Claim 9 (depends on 8)

The system of claim 8, wherein:
the graph data structure comprises:
(a) a first key-value index identifying the nodes of the graph data structure and traits of the nodes, wherein keys of the first key-value index identify the online entities and the computing devices, wherein values of the first key-value index identify the traits of the online entities and the traits of the computing devices, and
(b) a second key-value index identifying edges connecting at least some of the nodes in the graph data structure, wherein keys of the second key-value index identify the computing devices and values of the second key-value index identify sets of the online entities linked to the computing devices; and
performing the first search comprises:
identifying a first segment having a first set of traits by (a) selecting a first computing device and a first subset of the online entities identified in the second key-value index as being linked to the first computing device and (b) selecting, as the first set of traits, traits of the first computing device from the first key-value index and traits of the first subset of the online entities from the first key-value index,
identifying a second segment having a second set of traits by (a) selecting a second computing device and a second subset of the online entities identified in the second key-value index as being linked to the second computing device and (b) selecting, as the second set of traits, traits of the second computing device from the first key-value index and traits of the second subset of the online entities from the first key-value index,
determining that a set of query parameter values in the first query matches the first set of traits and the second set of traits, and
including the first segment and the second segment in a first segment set for a response to the first query.

### Claim 10 (depends on 9)

The system of claim 9, wherein performing the second search comprises:
determining that the first computing device is included in the impacted subset of nodes,
identifying a modified first segment having a modified set of traits by (a) selecting the first computing device and a subset of the online entities identified in the second key-value index as being linked to the first computing device and (b) selecting, as the modified set of traits, traits of the first computing device from the first key-value index and traits of the subset of the online entities from the first key-value index,
determining that the set of query parameter values does not match the modified set of traits,
retrieving the second segment from a log based on the second computing device being absent from the impacted subset of nodes, and
creating a second segment set by excluding the first modified segment and retaining the second segment from the first segment set.

### Claim 11 (depends on 8)

The system of claim 8, wherein:
the graph data structure comprises:
(a) a first key-value index identifying the nodes of the graph data structure and traits of the nodes, wherein keys of the first key-value index identify the computing devices and the online entities, wherein values of the first key-value index identify the traits of the computing devices and the traits of the online entities, and
(b) a second key-value index identifying edges connecting at least some of the nodes in the graph data structure, wherein keys of the second key-value index identify the online entities and values of the second key-value index identify sets of the computing devices linked to the online entities; and
performing the first search comprises:
identifying a first segment having a first set of traits by (a) selecting a first online entity and a first subset of the computing devices identified in the second key-value index as being linked to the first online entity and (b) selecting, as the first set of traits, traits of the first online entity from the first key-value index and traits of the first subset of the computing devices from the first key-value index,
identifying a second segment having a second set of traits by (a) selecting a second online entity and a second subset of the computing devices identified in the second key-value index as being linked to the second online entity and (b) selecting, as the second set of traits, traits of the second online entity from the first key-value index and traits of the second subset of the computing devices from the first key-value index,
determining that a set of query parameter values in the first query matches the first set of traits and the second set of traits, and
including the first segment and the second segment in a first segment set for a response to the first query.

### Claim 12 (depends on 11)

The system of claim 11, wherein performing the second search comprises:
determining that the first online entity is included in the impacted subset of nodes, identifying a modified first segment having a modified set of traits by (a) selecting the first online entity and a subset of the computing devices identified in the second key-value index as being linked to the first online entity and (b) selecting, as the modified set of traits, traits of the first online entity from the first key-value index and traits of the subset of the computing devices from the first key-value index,
retrieving the second segment from a log based on the second online entity being absent from the impacted subset of nodes,
determining that the set of query parameter values does not match the modified set of traits, and
creating a second segment set by excluding the first modified segment and retaining the second segment from the first segment set.

### Claim 13 (depends on 8)

The system of claim 8, wherein a plurality of key-value indices that implement the graph data structure, wherein the operations further comprise:
applying a modification to one or more of the key-value indices that adds or removes an edge between a pair of the nodes in the graph data structure; and
updating the change list to identify the modification to the one or more of the key-value indices.

### Claim 14 (depends on 13)

The system of claim 13, wherein the plurality of key-value indices comprises:
a first key-value index identifying the nodes of the graph data structure and traits of the nodes, wherein keys of the first key-value index identify the computing devices and the online entities, wherein values of the first key-value index identify the traits of the computing devices and the traits of the online entities;
a second key-value index identifying edges connecting at least some of the nodes in the graph data structure, wherein keys of the second key-value index identify the computing devices and values of the second key-value index identify sets of the online entities linked to the computing devices; and
a third key-value index identifying additional edges connecting at least some of the nodes in the graph data structure, wherein keys of the third key-value index identify the online entities and values of the third key-value index identify sets of the computing devices linked to the online entities.

### Claim 15 (depends on 14)

The system of claim 14, wherein the processing hardware is configured to perform additional operations comprising:
applying an additional modification to the first key-value index by adding or removing a key-value pair;
updating the change list to identify the additional modification to the first key-value index;
receiving a third query subsequent to the additional modification to the first key-value index being applied; and
servicing the third query by at least:
retrieving, from a storage device, a segment set returned in response to the second query,
determining, from the change list, that the additional modification to the first key-value index has impacted traits in an additional subset of nodes identified in the segment set,
generating a modified segment set by at least updating the segment set based on the impacted traits in the additional subset of nodes.

### Claim 16

A non-transitory computer-readable medium having program code stored thereon, wherein the program code is executable by one or more processing devices to perform operations comprising:
servicing a first query having a set of query parameter values with respect to traits of computing devices for accessing interactive computing environments and traits of online entities that are authenticated by the interactive computing environments, wherein servicing the first query comprises performing a first search of nodes from a graph data structure and responding to the first query with a first segment set;
receiving a second query having the set of query parameter values;
a step for performing a second search of the graph data structure that is constrained by a change list for tracking changes to the graph data structure; and
responding to the second query with a second segment set generated by performing the second search.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein:
the graph data structure comprises:
(a) a first key-value index identifying the nodes of the graph data structure and traits of the nodes, wherein keys of the first key-value index identify the online entities and the computing devices, wherein values of the first key-value index identify the traits of the online entities and the traits of the computing devices, and
(b) a second key-value index identifying edges connecting at least some of the nodes in the graph data structure, wherein keys of the second key-value index identify the computing devices and values of the second key-value index identify sets of the online entities linked to the computing devices; and
performing the first search comprises:
identifying a first segment having a first set of traits by (a) selecting a first computing device and a first subset of the online entities identified in the second key-value index as being linked to the first computing device and (b) selecting, as the first set of traits, traits of the first computing device from the first key-value index and traits of the first subset of the online entities from the first key-value index,
identifying a second segment having a second set of traits by (a) selecting a second computing device and a second subset of the online entities identified in the second key-value index as being linked to the second computing device and (b) selecting, as the second set of traits, traits of the second computing device from the first key-value index and traits of the second subset of the online entities from the first key-value index,
determining that the set of query parameter values matches the first set of traits and the second set of traits, and
including the first segment and the second segment in the first segment set for a response to the first query.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein performing the second search comprises:
determining that the first computing device is included in a subset of nodes impacted by a modification to the graph data structure;
identifying a modified first segment having a modified set of traits by (a) selecting the first computing device and a subset of the online entities identified in the second key-value index as being linked to the first computing device and (b) selecting, as the modified set of traits, traits of the first computing device from the first key-value index and traits of the subset of the online entities from the first key-value index;
determining that the set of query parameter values does not match the modified set of traits;
retrieving the second segment from a log based on the second computing device being absent from the impacted subset of nodes; and
creating the second segment set by excluding the first modified segment and retaining the second segment from the first segment set.

### Claim 19 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein:
the graph data structure comprises:
(a) a first key-value index identifying the nodes of the graph data structure and traits of the nodes, wherein keys of the first key-value index identify the computing devices and the online entities, wherein values of the first key-value index identify the traits of the computing devices and the traits of the online entities, and
(b) a second key-value index identifying edges connecting at least some of the nodes in the graph data structure, wherein keys of the second key-value index identify the online entities and values of the second key-value index identify sets of the computing devices linked to the online entities; and
performing the first search comprises:
identifying a first segment having a first set of traits by (a) selecting a first online entity and a first subset of the computing devices identified in the second key-value index as being linked to the first online entity and (b) selecting, as the first set of traits, traits of the first online entity from the first key-value index and traits of the first subset of the computing devices from the first key-value index,
identifying a second segment having a second set of traits by (a) selecting a second online entity and a second subset of the computing devices identified in the second key-value index as being linked to the second online entity and (b) selecting, as the second set of traits, traits of the second online entity from the first key-value index and traits of the second subset of the computing devices from the first key-value index,
determining that the set of query parameter values matches the first set of traits and the second set of traits, and
including the first segment and the second segment in the first segment set for a response to the first query.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein performing the second search comprises:
determining that the first online entity is included in a subset of nodes impacted by a modification to the graph data structure;
identifying a modified first segment having a modified set of traits by (a) selecting the first online entity and a subset of the computing devices identified in the second key-value index as being linked to the first online entity and (b) selecting, as the modified set of traits, traits of the first online entity from the first key-value index and traits of the subset of the computing devices from the first key-value index;
retrieving the second segment from a log based on the second online entity being absent from the impacted subset of nodes;
determining that the set of query parameter values does not match the modified set of traits; and
creating the second segment set by excluding the first modified segment and retaining the second segment from the first segment set.
