Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A data writing method and a server

A data writing and data technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of affecting the server concurrency, unable to process interface requests in time, user-side application freezes, etc.

Inactive Publication Date: 2018-12-11
NUBIA TECHNOLOGY CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is: as the amount of data received by the distributed document storage database continues to increase, there may be problems in the distributed document storage database that the data cannot be recovered from the memory in time, which causes the server to write The performance is seriously degraded, which affects the concurrency of the server side, and also causes the server to be unable to process the user's interface request in time, thus causing the application on the user side to freeze

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 data writing method and a server
  • A data writing method and a server
  • A data writing method and a server

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0056]In order to solve the current situation that with the increasing amount of data received by the distributed document storage database, the data in the distributed document storage database may not be recovered from the memory in time, which leads to a serious decline in the server's write performance and affects the server side. At the same time, the server cannot process the user's interface request in time, thus causing the problem of application freeze on the user side. This embodiment provides a data writing method. see figure 2 , figure 2 The basic flow chart of the data writing method provided in this embodiment includes:

[0057] S201: Monitor at least one performance index of the distributed document storage database;

[0058] In this embodiment, the performance index includes at least one of data writing performance and data recovery rate. In this embodiment, the data writing performance can be reflected by the data writing speed of the distributed document...

no. 2 example

[0110] This embodiment is based on the first embodiment, and a more specific data writing process is taken as an example to further illustrate the present invention.

[0111] see Figure 7 as shown, Figure 7 The schematic flowchart of the data writing method provided in this embodiment includes:

[0112] S701: Monitor the data writing performance and data recovery rate of the distributed document storage database;

[0113] In this embodiment, the data writing performance is reflected by the data writing speed of the distributed document storage database and the current amount of data that can be written. The data recovery rate is reflected by the data recovery time and data recovery volume of the distributed document storage database. When the server is monitoring, the essence is the data writing speed of the monitored distributed document storage database, the current amount of data that can be written, the duration of data recovery, and the amount of data recovery.

[0...

no. 3 example

[0132] This embodiment provides a server, see Figure 8 As shown, it includes a processor 81 , a memory 82 and a communication bus 83 . in:

[0133] The communication bus 83 is used to realize connection and communication between the processor 81 and the memory 82 .

[0134] The processor 81 is configured to execute one or more programs stored in the memory 82, so as to implement each step of the data writing method described in the first embodiment and / or the second embodiment above.

[0135] At the same time, this embodiment also provides a computer-readable storage medium, such as a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive, a CF card, an SD card, an MMC card, etc., in which the computer-readable storage medium is stored with the above-mentioned One or more programs of the steps, the one or more programs can be executed by one or more processors, so as to implement the steps of the data writing method described in the first embodiment and / or the se...

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 writing method server and a computer-readable storage medium. At least one performance index of a distributed document storage database is monitored, and when the performance index reaches a preset threshold value, a Redis service is enabled, and the received data sent by a terminal is written into the Redis. As such, when that server is low on distributed document storage database capability, a user can write data through Redis. The invention bypasses the distributed document storage database with insufficient capacity, thereby ensuring the writing performance of the server, ensuring the concurrency of the server side, and ensuring that the server can process the data sent by the terminal in time, returning the corresponding data to the terminal, and ensuring the fluency of the application of the user side.

Description

technical field [0001] The present invention relates to the technical field of terminals, and more specifically, to a data writing method and a server. Background technique [0002] As the number of users continues to increase, most of the server side of the application uses a distributed document storage database (MongoDB) to store or transfer highly concurrent data. However, as the amount of data received by the distributed document storage database continues to increase, due to the influence of the distributed document storage database's own capabilities, there may be problems in the distributed document storage database that the data cannot be recovered from the memory in time, which leads to This caused a serious decline in the server's write performance, which affected the concurrency on the server side, and also caused the server to fail to process the user's interface requests in a timely manner, causing the application on the user side to freeze. Contents of the i...

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 NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products