Data read-write method and system

A data read and write, data block technology, applied in the computer field, can solve the problem of poor, only dozens of times per second, slow data read and write speed, sudden increase of pressure on the database, etc., to achieve fast read and write, improve read and write speed , The effect of stable data read and write performance

Active Publication Date: 2012-12-05
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF4 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

SSD can complete I/O (input/output) operations on any storage unit in less than 1ms, its random read performance can reach tens of thousands of times per second, and its sequential write performance can reach 4k~5k per second, but its Random write performance is relatively poor, only dozens of times per second, and will seriously affect random read performance
[0004] Traditional data reading and writing are generally realized by me

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 read-write method and system
  • Data read-write method and system
  • Data read-write method and system

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0032] The technical solution will be described in detail below in conjunction with specific embodiments and accompanying drawings.

[0033] like figure 1 Shown, in one embodiment, a kind of data reading and writing method comprises the following steps:

[0034] Step S100, obtain the write operation request and the user identification number, read the data block corresponding to the user identification number from the first data file according to the user identification number, and then generate the data block according to the write operation request and the read data block new data blocks, and sequentially write the new data blocks into the first data file.

[0035] The first data file stores multiple user data blocks, offset address information of each data block, and a corresponding relationship between the user data blocks and user identification numbers. When the user performs a write operation, it needs to send a write operation request. At the same time, the original...

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 relates to a data read-write method and a system. The data read-write method comprises the steps as follows: a write operation request and a user identifying number are acquired; a data block corresponding to the user identifying number is read from a first data file according to the user identifying number; then a new data block is generated according to the write operation request and the read data block; the new data block is written in the first data file in sequence; the corresponding relation between the new data block and the user identifying number and the deflection address information of the new data block are recorded; and a read operation request and the user identifying number are obtained, and a new data block corresponding to the user identifying number is read from the first data file according to the corresponding relation among the read operation request, the user identifying number and the new data block as well as the deflection address information of the new data block. The data read-write method and the system can achieve quick read-write of multiuser data and can improve the read-write speed.

Description

【Technical field】 [0001] The invention relates to the field of computer technology, in particular to a method and system for reading and writing data. 【Background technique】 [0002] With the development of Internet technology, the number of users is increasing, and each user publishes more and more information. The total amount of data begins to expand rapidly, forming massive data. How to effectively manage these massive data to ensure Users quickly publish and read data, which has become a huge challenge for background technology. [0003] SSD (Solid State Disk, solid state drive) is the latest storage technology in the Internet, which is composed of two parts: a control unit and a storage unit (DRAM or FLASH chip). The storage unit is responsible for storing data, and the control unit is responsible for reading and writing data. SSD can complete I / O (input / output) operations on any storage unit in less than 1ms, its random read performance can reach tens of thousands o...

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): G06F17/30
Inventor 袁清
Owner TENCENT TECH (SHENZHEN) 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