Data processing method, device and equipment and storage medium

A data processing and processor technology, applied in the field of data management, which can solve the problems of long synchronization blocking time, browser page suspended animation, failure, etc.

Pending Publication Date: 2021-04-30
东莞市大易产业链服务有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The user must wait for the server to complete the generation of the Excel file synchronously on the page, which may cause p

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
  • Data processing method, device and equipment and storage medium
  • Data processing method, device and equipment and storage medium
  • Data processing method, device and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] figure 1 It is a flow chart of a data processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to data export. The method can be executed by the data processing device in the embodiment of the present invention. The device can use software and / or or hardware. In a specific embodiment, the device can be integrated into a server. The following embodiments will be described by taking the device integrated in the server as an example, as figure 1 As shown, the method specifically includes the following steps:

[0043] S110. Use the first thread to receive a data export request sent by the terminal, and create a target task and a second thread according to the data export request.

[0044] Wherein, a thread refers to the smallest unit that an operating system can perform operation scheduling. The first thread refers to a thread that creates a data export task and reads the status of the data export task, and the second thread refe...

Embodiment 2

[0055] figure 2 It is a flow chart of a data processing method provided by Embodiment 2 of the present invention. This embodiment is applicable to the situation of data export. This embodiment is optimized based on the above-mentioned embodiments. What is not described in detail in this embodiment For technical details, refer to any of the above-mentioned embodiments. In this embodiment, using the second thread to execute the target task includes: using the second thread to execute the target task in a paging query manner to generate the target file. After generating the target file, it also includes: determining the target storage location of the target file; storing the target file in the target storage location.

[0056] Such as figure 2 As shown, the data processing method of this embodiment specifically includes the following steps:

[0057] S210. Use the first thread to receive a data export request sent by the terminal, and create a target task and a second thread ...

Embodiment 3

[0071] image 3 It is a flow chart of a data processing method provided by Embodiment 3 of the present invention. This embodiment is applicable to the situation of data export. This embodiment is optimized based on the above-mentioned embodiments. What is not described in detail in this embodiment For technical details, refer to any of the above-mentioned embodiments. In this embodiment, determining the target storage location of the target file includes: determining whether the remaining storage space of the internal memory satisfies a preset condition; when the remaining storage space of the internal memory meets the preset condition, determining the internal memory as the target storage location. When the remaining storage space of the device does not meet the preset condition, the disk is determined as the target storage location. After the target file is stored in the target storage location, it also includes: determining whether the storage time of the target file is ov...

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 processing method, device and equipment and a storage medium. The method comprises the steps: receiving a data export request transmitted by a terminal through a first thread, and building a target task and a second thread according to the data export request; executing a target task by using the second thread, and waiting for the data export request and reading an execution state of the target task by using the first thread during execution of the target task; and feeding back the execution state of the target task to the terminal within the preset response time. That is to say, in the embodiment of the invention, a double-thread parallel processing mode is adopted, no matter whether the task execution is completed or not, feedback is given to the terminal within the preset response time, and the terminal with the task not completed is prevented from falling into a page false dead state.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data management, and in particular, to a data processing method, device, device, and storage medium. Background technique [0002] In enterprise-level browser / server (B / S) applications, in order to facilitate cross-departmental collaboration and data analysis, there is a rigid need to export business data to Excel files. When exporting data in the prior art, the general method is that the application operator clicks the button on the browser page to initiate a data export request, and then waits on the page for the server to generate the file in memory until the server responds and completes the current download. The user must wait for the server to complete the generation of the Excel file synchronously on the page, which may cause problems such as too long synchronization blocking time, request timeout, browser page suspended animation and export failure. Contents of the inve...

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): G06F16/25G06F16/2455G06F16/958
CPCG06F16/2455G06F16/258G06F16/958
Inventor 欧燊
Owner 东莞市大易产业链服务有限公司
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