Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data query method and device based on domain-specific language

A data query and language technology, applied in the computer field, can solve the problems of inability to guarantee query efficiency, high development cost, complex parameters, etc., and achieve the effect of improving system availability, improving development efficiency, and ensuring data query efficiency.

Pending Publication Date: 2022-03-11
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, ES Domain-Specific Language (Domain-Specific Language, DSL) syntax and query application programming interface (Application Programming Interface, API) parameters are relatively complex, so the development cost is high, development efficiency and system availability are low, and Apache Calcite focuses on query optimization and cannot guarantee query 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
  • Data query method and device based on domain-specific language
  • Data query method and device based on domain-specific language
  • Data query method and device based on domain-specific language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] Aiming at the problem of poor system availability in the prior art, in order to improve system availability while ensuring data query efficiency, in the embodiments of the present disclosure, a solution for data query based on a domain-specific language is provided.

[0080] The solution is: if the received data query statement sent by the business platform is a non-Chinese SQL statement, use the set basic parser to analyze the data query statement, generate an AST containing each rule node, and then, based on the AST, get Each analysis result corresponding to each rule node, and based on each analysis result, generate the corresponding ES DSL, and then receive the data query result returned by the ES search engine, and send the data query result to the business platform.

[0081] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will ...

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 relates to the technical field of computers, in particular to a data query method and device based on a domain-specific language, which are used for improving the availability of a system while ensuring the data query efficiency, and the method comprises the following steps of: analyzing a received data query statement by adopting a set basic analyzer to generate a corresponding abstract syntax tree; and based on the abstract syntax tree, obtaining each analysis result corresponding to each rule node, generating a corresponding elastic search field specific language, and then receiving and sending a data query result returned by an elastic search engine. Therefore, conversion between the structured query language statement and the specific language in the elastic search field is realized by following the structured query language grammar, so that developers can quickly realize data query of an elastic search engine, and the development efficiency is greatly improved, so that the system availability is improved, and meanwhile, the data query efficiency is ensured.

Description

technical field [0001] The present disclosure relates to the field of computer technology, in particular to a data query method and device based on a domain-specific language. Background technique [0002] With the explosive growth of business system data and the increasing complexity of the system, the system search capabilities based on relational databases are difficult to meet the increasing search needs of users. [0003] Currently, data search is usually performed in the following ways: [0004] The first way is to introduce the Elasticsearch (ES) search engine as the core of the system's search capabilities, and build multiple business models stored in the database into system-wide objects of the search engine, so that the database can focus on data storage. ES Search engines focus on data searches. [0005] The second way is to introduce Apache Calcite, the structure of Apache Calcite is as follows figure 1 As shown, Apache Calcite can provide standard Structured ...

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): G06F16/2453G06F16/242G06F16/22
CPCG06F16/24534G06F16/2433G06F16/2246G06F16/2453G06F16/22G06F16/242
Inventor 焦阳王宁
Owner BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products