Data query method and device based on configuration information

A data query device and data query technology, applied in the computer field, can solve the problems of low readability of query statement code, high repetition, and large amount of code writing, so as to improve the efficiency of data query and development and production, and improve the readability. the effect of reducing the amount of code written

Active Publication Date: 2019-07-16
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF12 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, when querying data for different systems, it is necessary to write query statements in the code separately, which is highly repetitive, requires a large amount of code writing, and makes management and maintenance of query statements difficult, which greatly increases the difficulty and cycle

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 configuration information
  • Data query method and device based on configuration information
  • Data query method and device based on configuration information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0078] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0079] figure 1 is a schematic diagram of the main flow of a data query method based on configuration information according to an embodiment of the present invention, such as figure 1 shown, including:

[0080] Step S101, receiving a query request from an application system based on a unified service framework; the query request includes: query parameters, and an indicat...

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 data query method and device based on configuration information, and relates to the technical field of computers. A specific embodiment of the method comprises the followingsteps: receiving a query request of an application system based on a unified service framework, wherein the query request comprises a query parameter and an index identifier ID uniquely pointing to atarget database corresponding to the application system; obtaining configuration information according to the index ID, wherein the configuration information comprises a query statement template; according to the query parameters and the query statement template, dynamically generating executable query statements; and obtaining a query result according to the executable query statement. Accordingto the embodiment, a unified query mode can be provided for multiple systems, the number of code writing is effectively reduced, the readability of executable query statements is improved, and the data query efficiency and the development and production efficiency are greatly improved. In addition, the embodiment supports high availability, high concurrency and flexible expansion at the same time,and can adapt to more service scenes and fields.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a data query method and device based on configuration information. Background technique [0002] When querying data in the prior art, query statements are often written directly in the code. This data query method has at least the following problems: [0003] 1) Different systems often correspond to different databases, and the data structures of different databases are not necessarily the same. Therefore, when querying data for different systems, it is necessary to write query statements in the code separately, which is highly repetitive, requires a large amount of code writing, and makes management and maintenance of query statements difficult, which greatly increases the difficulty and cycle of project development; [0004] 2) The code readability of the query statement is low, and it takes a lot of time to understand and locate the query statement; [0005] 3) Every time...

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/2455G06F16/242
CPCG06F16/2433G06F16/2455
Inventor 周玮王云峰
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products