Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for sending data

A technology for sending data and data, which is applied in database indexing, structured data retrieval, special data processing applications, etc. It can solve the problems of key-value database user opacity, low memory utilization, and key-value database occupying memory, etc. To achieve the effect of improving memory utilization

Active Publication Date: 2019-07-09
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the process of using many businesses, they only use simple String type storage (that is, Key-Value storage). In this application scenario, the key-value database will have too many descriptive data structures occupying memory. Cause low memory utilization, especially when the size of Key (keyword) and Value (value) are relatively small, the problem of low memory utilization will become more serious, thus wasting a lot of memory resources of the server
[0003] The existing way to improve memory utilization is usually to package key-value pairs into a Hash function on the business side, but this method requires the business side to modify the business code, which is opaque to users of key-value databases

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 sending data
  • Method and device for sending data
  • Method and device for sending data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0027] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0028] figure 1 An exemplary system architecture 100 is shown to which embodiments of the method for sending data or the apparatus for sending data of the present application can be applied.

[0029] Such as figure 1 As shown, the system architecture 100 may include termin...

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 sending data. A specific embodiment of the method comprises the steps that an operation request sent by a user terminal is received, and whether the operation request contains a key word or not is determined, wherein the key word is stored in the form of a preset fixed-length structural body; when it is determined that the operation request contains the key word, the key word is converted into a key word stored in the form of a preset non-fixed-length structural body, and then whether the operation request contains a value corresponding to the key word or not is determined; when it is determined that the operation request does not contain the value, a value which is stored in the form of a preset non-fixed-length structural body and corresponds to the key word stored in the form of the preset non-fixed-length structural body is looked up, the found value stored in the form of the preset non-fixed-length structural body is converted into a value stored in the form of a preset fixed-length structural body, and the converted value is sent to the user terminal. By means of the implementation mode, the memory utilization rate is effectively increased.

Description

technical field [0001] The present application relates to the field of computer technology, specifically to the field of data processing technology, and in particular to a method and device for sending data. Background technique [0002] Key-value (Key-Value) storage databases (for example, Redis storage databases), with their high performance and support for rich data structures, have occupied a large market share in NoSQL (Not Only SQL, non-relational databases) . When all the data in the key-value database is stored in memory, the program itself has made many compromises in memory space for versatility at the system design level in order to support more data structures. In the process of using many businesses, they only use simple String type storage (that is, Key-Value storage). In this application scenario, the key-value database will have too many descriptive data structures occupying memory. Cause low memory utilization, especially when the size of Key (keyword) and...

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/22
CPCG06F16/2291
Inventor 杨骥
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD