# US 2015/0178328 A1 · Client-Side Directed Commands to a Loosely Coupled Database

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

- Number: US 2015/0178328 A1
- Document ID: US20150178328A1
- Status: Published application
- Kind: A1
- Application number: 14/138,487
- Filed: 2013-12-23
- Published: 2015-06-25
- Earliest claimed: 2013-12-23
- Assignees: Sybase, Inc.
- Inventors: Dean Emerson Stephan, III; Mihnea Andrei
- Web page: https://patentgrep.com/patent/US20150178328A1

## CPC

- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06F 16/2471: {Distributed queries}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Dynamically directing a command to a node in a distributed database is described. An example method includes receiving the command from a client application to access data in the distributed database, where the command contains a set of parameters. A primary key is constructed from at least some of the parameters. The client further generates routing information from a node-partition table based on a comparison of the primary key with an entry in the node-partition table, where the node-partition table maps the primary key to a node in the distributed database. Accordingly, the command is directed to the node in the distributed database based on the routing information.

## Claims

### Claim 1

A computer-implemented method for dynamically directing a command to a node in a distributed database, comprising:
receiving the command from a client application to access data in the distributed database, wherein the command contains a set of parameters;
constructing a primary key from at least some of the parameters;
generating routing information from a node-partition table based on a comparison of the primary key with an entry in the node-partition table, wherein the node-partition table maps the primary key to the node in the distributed database; and
directing the command to the node in the distributed database based on the routing information.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
upon determination that a client lacks parameter interpretation information, sending the command and the set of parameters to a server; and
receiving, from the server, the parameter interpretation information associated with the command,
wherein the parameter interpretation information comprises parameter ordering information for constructing the primary key.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, further comprising:
constructing the primary key from at least some of the parameters based on the parameter interpretation information upon a subsequent execution of the command.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the constructing further comprises:
upon determination that parameter interpretation information is available on a client, constructing the primary key from at least some of the parameters based on the parameter interpretation information associated with the command, wherein the parameter interpretation information comprises parameter ordering information for constructing the primary key.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
constructing the node-partition table on a client, wherein the node-partition table client library contains mapping information between a set of keys and a plurality of nodes in the distributed database.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the constructing the node-partition table comprises:
constructing the node-partition table dynamically as the client connects to the distributed database.

### Claim 7 (depends on 5)

The computer-implemented method of claim 5, wherein the constructing the node-partition table comprises:
prepopulating the node-partition table with data obtained through previous client connections to the distributed database.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the parameters comprise order parameters.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the parameters comprise data type parameters.

### Claim 10

A computer-implemented method for dynamically directing a command to a node in a distributed database, comprising:
upon determination that a client lacks parameter interpretation information, receiving the command from a client library to access data in the distributed database, wherein the command contains a set of parameters;
generating parameter interpretation information from the set of parameters associated with the command; and
sending the parameter interpretation information to the client library, wherein the client library constructs a primary key from at least some of the parameters based on the parameter interpretation information, generates routing information from a node-partition table based on a comparison of the primary key with an entry in the node-partition table, and directs the command to the node in the distributed database based on the routing information, and wherein the node-partition table maps the primary key to the node in the distributed database.

### Claim 11 (depends on 11)

The computer-implemented method of claim 11, further comprising:
dynamically updating mapping information in the node-partition table upon detecting a reconfiguration of the distributed database, wherein the mapping information maps a set of keys and a plurality of nodes in the distributed database.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, further comprising:
re-directing the command to an appropriate node in the distributed database upon detecting that the command is directed to an incorrect node by the client based on the routing information generated on the client.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, further comprising:
updating the node-partition table with correct mapping information between the primary key and the appropriate node in the distributed database.

### Claim 14

A system for dynamically directing a command to a node in a distributed database, comprising:
a command receiver, implemented by one or more computing devices, configured to receive the command from a client application to access data in the distributed database, wherein the command contains a set of parameters;
a key constructor, implemented by one or more computing devices, configured to construct a primary key from at least some of the parameters;
a routing generator, implemented by one or more computing devices, configured to generate routing information from a node-partition table based on a comparison of the primary key with an entry in the node-partition table, wherein the node-partition table maps the primary key to the node in the distributed database; and
a command director, implemented by one or more computing devices, configured to direct the command to the node in the distributed database based on the routing information.

### Claim 15 (depends on 14)

The system of claim 14, further comprising:
a command sender, implemented by one or more computing devices, upon determination that a client lacks parameter interpretation information, configured to send the command and the parameters to a server; and
a parameter receiver, implemented by one or more computing devices, configured to receive, from the server, the parameter interpretation information associated with the command,
wherein the parameter interpretation information comprises parameter ordering information for constructing the primary key.

### Claim 16 (depends on 15)

The system of claim 15, further comprising:
a key constructor, implemented by one or more computing devices, configured to construct a primary key from at least some of the parameters based on the parameter interpretation information upon a subsequent execution of the command.

### Claim 17 (depends on 14)

The system of claim 14, wherein the key constructor is further configured to:
upon determination that parameter interpretation information is available on a client, construct a primary key from at least some of the parameters based on parameter interpretation information associated with the command, wherein the parameter interpretation information comprises parameter ordering information for constructing the primary key.

### Claim 18

A system for dynamically directing a command to a node in a distributed database, comprising:
a command receiver, implemented by one or more computing devices, configured to receive the command from a client library to access data in the distributed database, wherein the command contains a set of parameters;
a parameter generator, implemented by one or more computing devices, configured to generate parameter interpretation information from the set of parameters associated with the command; and
a parameter information sender, implemented by one or more computing devices, configured to send the parameter interpretation information to the client library, wherein the client library constructs a primary key from at least some of the parameters based on the parameter interpretation information, generates routing information from a node-partition table based on a comparison of the primary key with an entry in the node-partition table, and directs the command to the node in the distributed database based on the routing information, and wherein the node-partition table maps the primary key to the node in the distributed database.

### Claim 19 (depends on 18)

The system of claim 18, further comprising:
a mapping updater, implemented by one or more computing devices, configured to dynamically update mapping information in the node-partition table upon detecting a reconfiguration of the distributed database, wherein the mapping information maps a set of keys and a plurality of nodes in the distributed database.

### Claim 20 (depends on 18)

The system of claim 18, further comprising:
a command redirector, implemented by one or more computing devices, configured to re-direct the command to an appropriate node in the distributed database upon detecting that the command is directed to an incorrect node by the client based on the routing information generated on the client.

### Claim 21 (depends on 18)

The system of claim 18, further comprising:
a node-partition table updater, implemented by one or more computing devices, configured to update the node-partition table with correct mapping information between the primary key and the appropriate node in the distributed database.

### Claim 22

An computer program product comprising a computer readable storage medium having instructions encoded thereon that, when executed by a processor, cause the processor to perform operations comprising:
receiving a command from a client library to access data in a distributed database, wherein the command contains a set of parameters;
generating parameter interpretation information from the set of parameters associated with the command; and
sending the parameter interpretation information to the client library, wherein the client library constructs a primary key from at least some of the parameters based on the parameter interpretation information, generates routing information from a node-partition table based on a comparison of the primary key with an entry in the node-partition table, and directs the command to the node in the distributed database based on the routing information, and wherein the node-partition table maps the primary key to the node in the distributed database.
