Method and device for data partitioning in key-value database

A technology of database and partition algorithm, which is applied in the field of database, can solve the problems of partition mode change, single partition mode, lack of flexibility of database, etc., and achieve the effect of improving flexibility, great flexibility, and flexible and diverse algorithms

Active Publication Date: 2012-11-28
新浪技术(中国)有限公司
View PDF8 Cites 51 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the existing technology, the partitioning of the key-value database only supports partitioning based on the number of partitions to be partitioned, and the partitioning method is single; this fixed mode partitioning method makes the partitioned database not necessarily well adapted to specific businesses Requirements, in the case of database expansion or changing query methods, have very large limitations
[0006] Moreover, the work of partitioning the key-value database is usually completed when the database is created. After the creation is completed, the partition method cannot be changed according to the future situation. That is to say, in the prior art, the database is created and partitioned After that, during the operation of the database, such as querying and adding data, the partition mode can no longer be changed
This makes the database inflexible and unable to make corresponding changes according to changes in actual conditions after a period of use

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 data partitioning in key-value database
  • Method and device for data partitioning in key-value database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below with reference to the accompanying drawings and preferred embodiments. However, it should be noted that many of the details listed in the specification are only for readers to have a thorough understanding of one or more aspects of the present invention, and these aspects of the present invention can be implemented even without these specific details.

[0042] As used herein, terms such as "module" and "system" are intended to include computer-related entities such as, but not limited to, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a module may be, but is not limited to being limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and / or a computer. For example, both an applicatio...

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 a device for data partitioning in a key-value database. The method comprises the following steps of: resolving partitioning number information and partitioning algorithm information from a pre-stored partitioning information basic list; and running a corresponding partitioning algorithm by a partitioning callback function according to the partitioning algorithm information, wherein the corresponding partitioning algorithm determines information of partitioned sub databases of key-value data to be partitioned according to the partitioning number information and a calculation value; and the calculation value is a value relevant to the key-value data to be partitioned. The partitioning number information and the partitioning algorithm information are recorded into the partitioning information basic list; when the key-value data are subjected to operation such as storage and query, the partitioned sub databases are determined for the key-value data according to contents recorded in the partitioning information basic list; and therefore, the partitioning mode can be flexibly changed by modifying the contents in the partitioning information basic list.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method and device for partitioning data in a key-value database. Background technique [0002] Massive data storage with high reliability and scalability is a huge challenge for Internet companies. Traditional databases are often difficult to meet this demand, and most of the searches for specific systems are based on primary keys. Query, using a relational database in this case will make it inefficient, and expansion will become a big problem in the future. Under such circumstances, the use of key-value (key-value) databases for storage and query is widely used. [0003] In the key-value distributed storage system, the key value (key) and the content (value) are stored correspondingly. When querying, the corresponding content value can be quickly queried through the key value key, which has the advantages of fast query speed, large amount of stored data, The advantage of s...

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 Applications(China)
IPC IPC(8): G06F17/30
Inventor 张海洋朱天浩
Owner 新浪技术(中国)有限公司
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