Database accessing method and device and system

An access method and access device technology, applied in the field of databases, can solve the problems of incomplete modification, inconsistent databases, and inability to use the in-memory database for applications again, and achieve the effects of ensuring consistency and improving the degree of protection.

Inactive Publication Date: 2011-08-17
HUAWEI TECH CO LTD
View PDF5 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] While the embedded access method brings efficient access, it also has the following defects: when an application program exits abnormally for some reason when modifying the data in the memory database, this may cause the modification to not be completed (such as a certain half of a data structure is modified or some internal mutex resources are not released), leaving the database in an inconsistent state, which prevents other applications from using the in-memory database again.

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
  • Database accessing method and device and system
  • Database accessing method and device and system
  • Database accessing method and device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0031] Such as figure 1 As shown, the embodiment of the present invention provides a database access method, including:

[0032] S101: Receive a modification operation request for shared data of the database, and the shared data of the database is mapped to the address space of the process;

[0033] In one embodiment, when the application program uses the database, it needs to map the shared data of the database to the address space of the p...

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 embodiment of the invention discloses a database accessing method. The method comprises the following steps of: receiving a modifying operation request of shared data of a database, wherein the shared data of the database is mapped to address space of a process; decomposing the modifying operation request into a predetermined number of atomic operation sequences; calling atomic operation interfaces according to an execution sequence of the atomic operation sequences; and accessing the shared data, which is mapped to the address space of the process, of the database through atomic operation provided by the atomic operation interfaces. Accordingly, the embodiment of the invention also discloses a database accessing device and a database application system. In the embodiment of the invention, the modifying operation is performed on the database through the technical scheme, the shared data of the database is accessed through atomic operation for processing, and the atomic operation is not interrupted by other processes during processing, so that consistency of the data can be guaranteed, and protection level of the shared data of the multi-process embedded concurrent accessed database is improved.

Description

Technical field [0001] The invention relates to the field of databases, in particular to a method, device and system for accessing a database. Background technique [0002] With the development of the telecommunications industry, the requirements for real-time and robustness of data storage are getting higher and higher. At the same time, the integration and access speed of hardware such as memory have been improved, and the cost has been reduced. This determines the role of memory databases in the telecommunications industry. Has become an increasingly important role. [0003] The traditional database management system adopts the C / S (client / server) access mode, which effectively isolates the application and the database system, and ensures the robustness of the system; however, additional network communication is generated under the C / S access mode (Usually TCP / IP) overhead limits the real-time performance of the database system, especially in high-speed memory databases, the ac...

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/30G06F9/46
CPCG06F17/30G06F9/46G06F17/30386G06F17/30371G06F16/2365G06F16/24
Inventor 陈志标彭勇飞毛永祥
Owner HUAWEI TECH 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