Supercharge Your Innovation With Domain-Expert AI Agents!

A method and device for data storage and query of a nosql database, and a method and device for generating a full combination of rowkeys

A data storage device and data storage technology, applied in database query, database index, structured data retrieval, etc., can solve problems such as low query time efficiency, rowKey, etc., achieve good query time efficiency, reduce data storage complexity, and optimize space Effect

Active Publication Date: 2021-06-29
ALIBABA GRP HLDG LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] This application provides a NoSQL database data storage, query method and device, and a method and device for generating a full combination of multi-field rowKeys to solve the problem of low query time efficiency and the inability to directly generate the full combination of rowKeys in existing technical solutions. optimal solution

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
  • A method and device for data storage and query of a nosql database, and a method and device for generating a full combination of rowkeys
  • A method and device for data storage and query of a nosql database, and a method and device for generating a full combination of rowkeys
  • A method and device for data storage and query of a nosql database, and a method and device for generating a full combination of rowkeys

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0087] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the application. However, the present application can be implemented in many other ways different from those described here, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.

[0088] The present application provides a NoSQL database data storage method, device and electronic equipment, a NoSQL database data query method and device, and a fully combined multi-field rowKey generation method, device and electronic equipment. This application belongs to the technical scheme of storing multiple data in a NoSQL database without using an index table, and directly storing and querying data through rowKey. Specific embodiments of the present application will be described in detail below in conjunct...

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 present application provides a data storage method for a NoSQL database, comprising: acquiring a set number of fields including at least one non-repeated rowKey rowKey full combination and a field to be added; For each rowKey in the combination, perform the step of adding fields, including: adding the field to be added after the rowKey to generate a new rowKey; if the number of fields in the rowKey meets the set conditions , then add the field to be added before the rowKey and remove the last field in the rowKey to generate a new rowKey; obtain the data corresponding to each new rowKey generated, and store the data stored in a row corresponding to the new rowKey in the NoSQL database. The present application also provides a NoSQL database query method and a method for generating a full combination of multi-field rowKeys. The present application can solve the problem that the query time efficiency of the existing technical solution is low and the optimal solution of the full combination of rowKeys cannot be directly generated.

Description

technical field [0001] The present application relates to the technical field of computer database data storage and data query, in particular to a NoSQL database data storage and query method and device. The present application also relates to a method and device for generating a full combination of rowKeys. Background technique [0002] In the monitoring scenario of a large-scale distributed system, users often need to query monitoring data and its historical data. On the one hand, due to the huge amount of monitoring data, monitoring data is generally stored in NoSQL databases; on the other hand, since monitoring data can usually be described in multiple dimensions, there are many combinations of fields for query conditions . This adds to the complexity of storing and indexing monitoring data in the database. [0003] In order to quickly respond to the user's demand for querying monitoring data, most technical solutions adopt the method of exchanging space for time. De...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/22G06F16/24
CPCG06F16/22G06F16/24
Inventor 张一淳
Owner ALIBABA GRP HLDG LTD
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