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

A database writing method and device

A database and data technology, applied in the field of communication, can solve the problems of increasing deadlock probability, long execution time of read operation, and long time of write operation, so as to improve operation efficiency, reduce waiting time, and reduce waiting time for a long time Effect

Active Publication Date: 2021-03-26
QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In view of the above-mentioned problems, in order to solve the problems that the above-mentioned database write operation time is too long to cause the read operation execution time to be too long, the parallel reading and writing increases the deadlock probability, and the problems of memory consumption, the embodiment of the present invention proposes a database writing method and A corresponding database writing device

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
  • A database writing method and device
  • A database writing method and device
  • A database writing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0069] refer to figure 1 , which shows a flow chart of the steps of an embodiment of a database writing method of the present invention, which may specifically include the following steps:

[0070] Step 101, acquire the file to be written into the database.

[0071] Step 102, write the file into the database through at least two write operations, so that the database is allowed to be read during the time between two adjacent write operations.

[0072] In a specific implementation, the embodiments of the present invention can be applied to various intelligent terminals, such as computers, mobile phones, PDAs (Personal Digital Assistants, personal digital assistants), laptop computers, palmtop computers, etc. This is not limited. ...

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 provides a writing method and a writing device of a database. The writing method of the database includes: obtaining a file to be written into the database; writing the file into the database through at least two writing operations so as to allow a reading operation on the database within time between each two adjacent writing operations. The writing method and the writing device of the database achieve time division multiplexing of resources in the database, and guarantee normal execution of the integral writing operations and can not obviously increase time of the integral writing operations due to the fact that time of the reading operations is short and only of millisecond level. On the one hand, the time of each writing operation is shorter than the time of the integral writing operations, waiting time for the reading operations is reduced, operation efficiency is improved, and the quantity of problems that an interface is in a waiting state for a long time and the like is decreased; on the other hand, due to the fact that the reading operations and the writing operations are executed in series, a deadlock probability and consumption to a memory, caused by concurrence of the writing operations and the reading operations, are reduced.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a database writing method and a database writing device. Background technique [0002] With the development of communication technology, smart terminals such as mobile phones and watches are increasingly used in people's work, study, and daily communication. [0003] Many applications running on smart terminals use databases (such as SQLite) to store user-operated data, especially social applications, such as instant messaging tools, SMS applications, etc., need to write a database in the background thread, and at the same time need to The main thread displays data on the UI (User Interface, user interface), then the main thread will generate sub-threads, and the same database is read in the sub-threads. [0004] Although the object of the read operation and the object of the write operation are not the same table, the locks used by databases such as SQLite are file locks....

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/22G06F16/28G06F9/52
CPCG06F9/524G06F16/22G06F16/284
Inventor 张博朱宏浩王双杜文娟
Owner QINGDAO HISENSE MOBILE COMM TECH CO LTD