Database reading and writing method and device

A reading and writing method and database technology, which can be applied in the directions of database update, structured data retrieval, redundant data error detection in computing, etc., and can solve the problems of low execution efficiency of read operations

Active Publication Date: 2019-10-18
HUAWEI DEVICE CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a database reading and writing method and device to solve the problem of low execution efficiency of reading operations when there are many concurrent database operations

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 reading and writing method and device
  • Database reading and writing method and device
  • Database reading and writing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] 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 some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0034] It should be noted here that the database in the embodiment of the present invention may be any database complying with atomicity (Atomicity), consistency (Consistency), isolation (Isolation), and durability (Durability). The database is included in the terminal, and has at least one main connection and at least two non-main connections, wherein the main connection is used to perform a write operation on the database, and the non-main connection is used to perf...

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

Embodiments of the invention disclose a database reading-writing method and apparatus. A database is included in a terminal, wherein the database has at least one primary connection for executing a writing operation on the database and at least two non-primary connections for executing a reading operation on the database; the database reading-writing method comprises the steps that: the terminal obtains the reading operation on the database; if the reading operation is initiated by a first application, the reading operation is executed by the first non-primary connection; the first application is an application in the terminal, wherein the first non-primary connection is pre-set non-primary connection only used for executing the reading operation initiated by the first application; and at least two non-primary connections comprise at least one first non-primary connection. By adoption of the database reading-writing method and apparatus provided by the embodiments, the first non-primary connection is only used for executing the reading operation initiated by the first application, so that it is ensured that the executing efficiency of the reading operation initiated by the first application is not influenced by the reading operation of other applications.

Description

technical field [0001] The embodiments of the present invention relate to the field of terminals, and in particular, to a method and device for reading and writing a database. Background technique [0002] To facilitate the management of contact information, existing terminals usually use a contact database to store contact information. The application on the terminal can realize reading and writing of contact information through database operations such as read operation and write operation, so as to realize functions such as speed dialing and contact information backup. With the increasing diversification of terminal applications, more and more applications need to read and write contact information, so that the terminal needs to process more and more read and write operations. [0003] In order to improve the execution efficiency of database operations, the prior art generally adopts a write-ahead logging (WAL for short) mode to schedule read operations and write operati...

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/23G06F11/14
Inventor 郭威熊元峰
Owner HUAWEI DEVICE 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