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 m

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

Example

[0055] First embodiment

[0056] In order to solve the problem that the amount of data received by the distributed document storage database is increasing, there may be situations in the distributed document storage database that the data cannot be recovered from the memory in time, resulting in a serious drop in server write performance, affecting the server side At the same time, the server cannot process the user's interface request in time, which causes the problem of application freeze on the user side. This embodiment provides a data writing method. See figure 2 , figure 2 The basic flowchart 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. The data writing performance in this embodiment can be embodied by the data writing speed of the d...

Example

[0109] Second embodiment

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

[0111] See Figure 7 As shown, Figure 7 The flow diagram of the data writing method provided by this embodiment includes:

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

[0113] The data writing performance in this embodiment is embodied by the data writing speed of the distributed document storage database and the current writeable amount of data. 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, it is essentially the data writing speed of the monitored distributed document storage database, the current writeable data volume, the data recovery time, and the data recovery volume.

[0114] It should be noted tha...

Example

[0131] The third embodiment

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

[0133] The communication bus 83 is used to implement 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 to implement the steps of the data writing method described in the first embodiment and / or the second embodiment.

[0135] At the same time, this embodiment also provides a computer-readable storage medium, such as a floppy disk, optical disk, hard disk, flash memory, U disk, CF card, SD card, MMC card, etc., in which the computer-readable storage medium stores the One or more programs of the steps, the one or more programs may 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 second embodiment. I w...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products