Data access method and device

A data access and data technology, applied in the field of Internet communication, can solve the problems of large disk space and performance loss, inflexible access operation, long access response time, etc., to reduce system burden and avoid low access efficiency , the effect of speeding up the access response rate

Active Publication Date: 2013-09-11
BEIJING FEINNO COMM TECH
View PDF4 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention provides a data access method and device to solve the problems of excessive loss of disk space and ...

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 access method and device
  • Data access method and device
  • Data access method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0027] see figure 1 , is a data access method provided in Embodiment 1 of the present invention, the method comprising:

[0028] 11: Use a memory mapped file (Memory Mapped File, MMF) mechanism to establish a memory channel for the data file stored on the disk.

[0029] The MMF mechanism is similar to the virtual memory mechanism. A memory-mapped file can reserve an address space area and submit physical memory to this area. The physical memory mapped by the memory file comes from a data file that already exists on the disk. Before the data file is operated, the data file must be mapped first, that is, a memory channel between the disk and the memory is established. When using memory-mapped files to process data files stored on disk,...

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 data access method and device. The data access method provided by an embodiment of the invention comprises the steps that a memory channel is established for a data file stored on a disk by utilizing a memory-mapped file mechanism; the data file is divided into a plurality of logical file blocks with the same size; the memory channel is used for writing a piece of key-value pair data into a logical file block; and index information of the logical file block is generated, when an access request is received, the logical file block is positioned according to primary key information and index information in the access request, and data in the positioned logical file block is accessed through the memory channel. According to the scheme, the disk performance and the data access flexibility are improved, the data transmission in a network can be reduced, the access response is accelerated, and the data access efficiency is higher.

Description

technical field [0001] The invention relates to the technical field of Internet communication, in particular to a data access method and device. Background technique [0002] With the development of wireless Internet, the number of network users continues to increase, so the performance requirements of the server end are also getting higher and higher. For example, the number of users using mobile terminal devices for instant messaging is increasing day by day, and the number of registered users and active users is increasing, and the requirements for the performance of the instant messaging (IM) server are also getting higher and higher. [0003] Data access is one of the main tasks of the server side. The current data access mainly includes two ways: database access and file access. When using database access, the most widely used databases include Oracle database, SQLServer database, and MySQL database. These databases all have functions such as adding, deleting, modifyi...

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 BEIJING FEINNO COMM TECH
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