# US 2017/0293474 A1 · Automatically optimizing analytics database server

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

- Number: US 2017/0293474 A1
- Document ID: US20170293474A1
- Status: Published application
- Kind: A1
- Application number: 15/627,081
- Filed: 2017-06-19
- Published: 2017-10-12
- Earliest claimed: 2015-03-26
- Assignees: IfWizard Corporation
- Applicants: IFWIZARD Corporation
- Inventors: Dominic Samuel Sellers-Blais
- Web page: https://patentgrep.com/patent/US20170293474A1

## CPC

- G06F 8/30: Creation or generation of source code
- G06F 8/35: model driven
- G06F 8/41: Compilation
- G06F 8/54: Link editing before load time
- G06F 9/44: Arrangements for executing specific programs
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for automatically optimized statistical analysis by computer is disclosed. Given a programmatic definition of the data model, the system generates, manages, and interfaces optimized computer code for use by higher level client applications. The method by which the computer generated code is transparently compiled and linked for remote access by clients provides near peak numerical efficiency without any human optimization in the client space. The configuration of model subsystems is designed to allow flexible general purpose analytics as well as specialized machine learning through optimizing feedback mechanisms.

## Claims

### Claim 1

In a server computer, an optimized database analytics method comprising:
storing a data model in memory in the server, the data model including a programmatically defined structure;
selecting a target programming language;
providing an API access layer for a client to access the server, wherein the API access layer includes a base client library implemented in the target programming language;
the API access layer implementing at least one operation that requires a parameter;
the API access layer implementing a programming script feature that enables inclusion of a programming script to express a parameter of an operation request;
coding the defined structure and script parameters of the stored data model to form at least one internal source code file; and
compiling the internal source code file into native machine code for linking into a function table associated with the data model so that an operation requested by the client in the target programming language may include a parameter expressed with a programming script, and the script parameter will be executed utilizing native machine code on the server.

### Claim 2

A computer-implemented database analytics system comprising:
an API access layer arranged to enable a client to access the system, wherein the API access layer includes a base client library implemented in a selected target programming language;
a data model manager component for storing at least one data model in the system, wherein the stored data model includes a programmatically defined structure of the model, and at least one dependent analytical function associated with the model;
a data model source code generator configured to convert the stored data model to an internal source code file;
an interface generator component, configured to generate a model specific interface library that is conformant with a syntax of the target programming language and that matches the defined structure of the stored data model; and further wherein the interface generator component is configured to generate a model specific interface library that is conformant with a syntax of the target programming language and that implements the dependent analytical function; and
a compiler and linker component arranged to compile the internal source code file into native machine code for linking into a function table associated with the data model so that operations expressed by the client using the model specific interface library of the API access layer may be executed utilizing native machine code on the server.

### Claim 3 (depends on 2)

The system of claim 2 wherein the dependent analytical function of the stored data model comprises one of a mapping function, a filter function and an analysis function.

### Claim 4 (depends on 2)

The system of claim 2 and further comprising a Task Dispatcher component to enable parallelized task completion of selected model tasks requested via the an API access layer while maintaining a known data model state.

### Claim 5 (depends on 2)

The system of claim 2 and further comprising a Scripting System component;
wherein the scripting system provides a scripting library that implements a predetermined set of functions, each of the functions available in a form conformant with a syntax of the target;
the scripting library is realized in the API access layer for use by the client to interact with the data model in the target programming language.

### Claim 6 (depends on 5)

The system of claim 5 and further efficiency is gained by transcompiling the scripts to the highly performant “C” programming language as part of the source generation of the models by the model source generator 107, which converts the model to “C” source files.

### Claim 7 (depends on 2)

The system of claim 2 wherein each of the following actions automatically triggers the compiler and linker component to compile the internal source code file into native machine code for linking into the function table associated with the data model, and modifies the interface models created by the interface generator:
creating or deleting a structure;
creating or deleting a generator;
creating or deleting a mapping;
creating or deleting a filter; and
creating or deleting an analysis.
