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

Method and device of storing log data and readable storage medium thereof

A log and data technology, applied in the field of electronic information, can solve the problems of low writing efficiency, large number of database connections, and insufficient number of database connections, etc., and achieve the effect of improving writing ability, high writing efficiency, and reducing connections

Inactive Publication Date: 2018-11-16
CHINA PING AN LIFE INSURANCE CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing technology, each entry in the content of the log needs to be written into the database one by one, the writing efficiency is low, and it takes a long time to connect to the database, which occupies a large number of connections to the database , it is easy to cause insufficient number of database connections, and other data cannot be written into the database in time, which has a great impact on the writing ability of the database

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
  • Method and device of storing log data and readable storage medium thereof
  • Method and device of storing log data and readable storage medium thereof
  • Method and device of storing log data and readable storage medium thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0036] In describing the present invention, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", " Orientation indicated by rear, left, right, vertical, horizontal, top, bottom, inside, outside, clockwise, counterclockwise, etc. The positional relationship is based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must hav...

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 the field of electronic information technology, and particularly to a method and a device of storing log data and a readable storage medium thereof. The method includes: splitting log contents into multiple pieces of log data; and writing the log data to a local cache piece by piece, judging whether a cache value in the cache reaches a predetermined value, and writing thelog data, which are stored in the cache, into a database in a batch manner if the predetermined value is reached. According to the method, the contents of logs are firstly cached then contents of thelog data are written into the database in the batch manner after cache quantity reaches the predetermined value, the writing efficiency is higher, connection with the database is effectively reduced,and the database connection quantity is also effectively reduced, and the writing capacity of the database is effectively improved.

Description

technical field [0001] The present invention relates to the technical field of electronic information, in particular to a method for storing log data, a device for storing log data, and a computer-readable storage medium storing the method for storing log data. Background technique [0002] With the rapid development of mobile communication technology, the functions of mobile phone software (APP) are becoming more and more powerful, and the amount of data processed by them is also increasing; when the user performs an operation in the mobile phone software, the software will automatically Generate an operation log, and write the operation log into the database to store the log. [0003] In the existing technology, each entry in the content of the log needs to be written into the database one by one, the writing efficiency is low, and it takes a long time to connect to the database, which occupies a large number of connections to the database , it is easy to cause insufficie...

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/30
Inventor 张建展
Owner CHINA PING AN LIFE INSURANCE CO LTD