Supercharge Your Innovation With Domain-Expert AI Agents!

Standard-SQL-based method for implementing dual-engine database system

An implementation method and database technology, applied in the database field, can solve problems such as complex business logic, inability to manage data uniformly, and inconsistent database interfaces, and achieve the effect of simplifying complexity

Inactive Publication Date: 2017-06-13
CHINA REALTIME DATABASE
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since relational databases use standard SQL for access, while real-time databases use APIs to obtain data, the interfaces of the two databases are not unified, resulting in inconsistent interfaces between relational databases and real-time databases, unified management of data, and joint operations of real-time data and relational data, etc. problems, and cannot be flexibly expanded, so that the operation of the data set must be completed by the business system, resulting in complex business logic and very low processing efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Standard-SQL-based method for implementing dual-engine database system
  • Standard-SQL-based method for implementing dual-engine database system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0035] In the embodiment of the present invention, the open source relational database PostgreSQL is used as the relational data engine, and the Haixun real-time database widely used in power grid business is selected as the time series data engine to form a dual-engine database system;

[0036] As the external data source of the relational database, the real-time database needs to logically map the time-series data in the real-time database to the external tables of the relational database. From the perspective of time-series data storage content, it is divided into measurement point information and collected data values. Therefore, the The time series data is mapped to the measuring point information table and the measuring point value table. The real-time data query at a certain time point is used as an example to describe the implementation method of the present invention in detail below. Assume that the measuring point information table is named hspoint, and the measuring p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a standard-SQL-based method for implementing a dual-engine database system and provides the dual-engine database system. A relational database is selected to serve as a relational data engine, a real-time database is selected as a timing sequence data engine, and the relational data engine and the timing sequence data engine form the dual-engine database system. The system includes an SQL query compiler and a query plan executor; the SQL query compiler includes a query analysis module and a query rewriting module; the method logically maps timing sequence data to an external table of the relational database, the timing sequence data and relational data are managed in a unified table space, and standard SQL grammar is provided for a business system to perform unified data access; the standard SQL is adopted to have access to the two databases, the unified management of the timing sequence data and the relational data is achieved, the difference shown by different databases in the aspect of access modes and storage modes is avoided, and the complexity of business system implementation is reduced.

Description

technical field [0001] The invention belongs to the technical field of databases, and in particular relates to an implementation method of a standard SQL-based dual-engine database system. Background technique [0002] With the continuous development of intelligence and informatization, the amount of time-series data for process industries such as electric power, petrochemicals, and steel continues to grow. At the same time, it is necessary to face a large number of structured data such as relational models and management information. Therefore, time-series data and traditional relationships Data fusion is facing more and more challenges. Taking power systems as an example, both relational databases and real-time databases are widely used. However, due to the different structures and implementation principles of the two databases, their application scenarios are also very different. For most application systems, business applications need to access data in these two databas...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/2246G06F16/24553G06F16/25G06F16/284
Inventor 卢强缪广忠陈贤枭王远
Owner CHINA REALTIME DATABASE
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More