# US 2015/0178351 A1 · Dynamic database indexing

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

- Number: US 2015/0178351 A1
- Document ID: US20150178351A1
- Status: Published application
- Kind: A1
- Application number: 14/345,986
- Filed: 2012-09-20
- Published: 2015-06-25
- Earliest claimed: 2011-09-27
- Assignees: Thomson Licensing
- Applicants: Thomson Licensing
- Inventors: Brian Duane Clevenger
- Web page: https://patentgrep.com/patent/US20150178351A1

## CPC

- G06F 16/2453: Query optimisation
- G06F 16/211: {Schema design and management}
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/2272: {Management thereof}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A database query is intercepted by a query analyzer before it reaches a database. The query analyzer then tracks where the query accesses the database and how long the operation takes to complete. A statistical model is then constructed during runtime based on this tracking information to create an updated index schema for the database. The database index structure is then updated with the new schema to reduce query access times.

## Claims

### Claim 1

A system that provides database query analysis, comprising:
a query analyzer that receives at least one database query before the query is received by a database, tracks the database query operation and creates a database schema update based on the tracked operation during runtime of the database query.

### Claim 2 (depends on 1)

The system of claim 1, wherein the query analyzer dynamically updates the database with the runtime created database schema.

### Claim 3 (depends on 1)

The system of claim 1, wherein the query analyzer creates the database schema update from a statistical model based on runtime query tracking information.

### Claim 4 (depends on 3)

The system of claim 3, wherein the query analyzer resides on a processor disparate from the statistical model.

### Claim 5

A method for searching a database, comprising:
analyzing database operations at runtime; and
dynamically adapting the database based on the runtime operations analysis.

### Claim 6 (depends on 5)

The method of claim 5 further comprising:
deleting or adding at least one index of the database at runtime to reduce an average query execution time based on database usage patterns.

### Claim 7 (depends on 5)

The method of claim 5 further comprising:
intercepting at least one database search query before accessing the database;
determining a database access point of the intercepted search query; and
tracking the database access point and an amount of time required to execute the query at that access point to create tracking information.

### Claim 8 (depends on 5)

The method of claim 5 further comprising:
determining which database access points to index based on the tracking information.

### Claim 9 (depends on 7)

The method of claim 7 wherein the search query comprises a search expression for the query.

### Claim 10 (depends on 9)

The method of claim 9 wherein the search expression comprises at least one of a table and a column.

### Claim 11 (depends on 10)

The method of claim 10 wherein the tracking information comprises at least one of a frequency of a column in a search expression, an average execution time of a query, a number of rows in a table, a frequency of an insert operation affecting a column, a frequency of an update operation affecting a column and a frequency of a delete operation affecting a column.

### Claim 12

A system that updates a database index, comprising:
a means for intercepting at least one database search query before it accesses a database;
a means for determining a database access point of the intercepted search query;
a means for tracking the database access point and an amount of time required to execute the query at that access point to create tracking information;
a means for determining which database access points to index based on the tracking information; and
a means for updating the database schema.
