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

Method and device for querying data in database, electronic equipment and storage medium

A data query and data storage technology, applied in the computer field, can solve the problems of resource consumption, reduce query performance, waste, etc., and achieve the effect of reducing query, improving query performance, and reducing waste

Pending Publication Date: 2020-10-20
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Because the number of scans that can be scanned by each query cursor is certain, for deep paging query scenarios, sometimes multiple scans are required to meet the data query requirements, so the number and time of data query will be longer, and the temporarily generated data Snapshots need to be kept for a relatively long time, which will also cause a lot of consumption and waste of resources and reduce query performance

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
  • Method and device for querying data in database, electronic equipment and storage medium
  • Method and device for querying data in database, electronic equipment and storage medium
  • Method and device for querying data in database, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] 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.

[0047] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

[0048] The method for data query in the database provided by the embodiment of the present invention can be used for data query in a distributed database, especially in the scene of deep paging query in ...

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 method and device for querying data in a database, electronic equipment and a storage medium, and relates to the technical field of computers. One specific embodiment of themethod is applied to a first node, and comprises: receiving a query request sent by a client, the query request comprising a query strategy; judging whether a target index strategy the same as the query strategy is queried or not; if yes, determining a target storage position corresponding to the target index strategy from the full index based on the target index strategy, wherein the full index is used for recording a mapping relationship between an index strategy and a data storage position; and sending the target data stored in the target storage position to the client. According to the embodiment, the time consumption of distributed database query, especially deep paging query, can be reduced, the waste of resources is reduced, and the query performance is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, device, electronic equipment and storage medium for data query in a database. Background technique [0002] Distributed database usually executes the query mechanism as follows: the master node first receives the query request, the query request usually includes the starting position (from) and the size (size) of the query data, and then distributes the query request to each node, each node According to the query request, the size pieces of local data are retrieved and returned to the master node, and the master node then determines the size pieces of data queried by the query request from the data received from each node. For distributed databases, when the starting position of the query request is small, it does not consume too much resources. However, when deep paging query (starting position is very large, such as 100,000, million levels), each node needs to quer...

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/22G06F16/245G06F16/2457
CPCG06F16/2228G06F16/245G06F16/2457
Inventor 王吉尔
Owner BEIJING WODONG TIANJUN 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