CN106294451B - Method and device for displaying processing progress in data processing - Google Patents

Method and device for displaying processing progress in data processing Download PDF

Info

Publication number
CN106294451B
CN106294451B CN201510284803.9A CN201510284803A CN106294451B CN 106294451 B CN106294451 B CN 106294451B CN 201510284803 A CN201510284803 A CN 201510284803A CN 106294451 B CN106294451 B CN 106294451B
Authority
CN
China
Prior art keywords
task
browser
time interval
request
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510284803.9A
Other languages
Chinese (zh)
Other versions
CN106294451A (en
Inventor
李鸿晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510284803.9A priority Critical patent/CN106294451B/en
Priority to PCT/CN2016/080309 priority patent/WO2016188292A1/en
Publication of CN106294451A publication Critical patent/CN106294451A/en
Application granted granted Critical
Publication of CN106294451B publication Critical patent/CN106294451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The application provides a method and a device for displaying processing progress in data processing, and the method applied to a server comprises the following steps: processing data of the task segments according to the received data processing instruction, and judging whether the first task segment is processed; if the first task segment is processed, calculating the completion time of the next task segment according to the completion time of at least one part of processed task segments; acquiring the time interval of the next request initiated by the browser according to the completion time of the next task segment; and storing the task processing progress and the time interval of the next request initiation of the browser to a database for the browser to inquire. According to the method and the device, under the condition that user experience is guaranteed, the times that the browser requests the server can be reduced, the pressure on the server is reduced, and network overhead is saved.

Description

Method and device for displaying processing progress in data processing
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for displaying a processing progress in data processing.
Background
With the development of internet technology, most websites generally provide data processing functions, such as order processing functions. Because the data is dynamically generated, the server needs to go through a long data processing process before the user processes the data. Referring to fig. 1, to increase the user's interaction experience, a web page dynamically shows the progress of data processing. In order to obtain the dynamic current data processing progress, a browser frequently initiates a request to a server at regular intervals, and the server obtains the current processing progress. For example, the server is requested every 1 second, the server returns the task processing progress, and the browser renders the current progress data to a webpage and displays the webpage to the user. However, this puts a great deal of stress on the server, consumes excessive network resources, and increases network overhead.
Therefore, how to reduce the number of times that the browser requests the server while ensuring the user experience is an urgent technical problem to be solved.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for displaying a processing progress in data processing, which can reduce the number of times that a browser requests a server, reduce the pressure on the server, and save network overhead while ensuring user experience.
The application provides a method for displaying processing progress in data processing, which is applied to a server and comprises the following steps:
processing data of the task segments according to the received data processing instruction, and judging whether the first task segment is processed;
if the first task segment is processed, calculating the completion time of the next task segment according to the completion time of at least one part of processed task segments;
acquiring the time interval of the next request initiated by the browser according to the completion time of the next task segment;
and storing the task processing progress and the time interval of the next request initiation of the browser to a database for the browser to inquire.
In a specific implementation of the present application, the method further includes:
if the first task segment is not processed, returning a random progress smaller than the first task segment as a task processing progress, and storing the task processing progress to a database for being inquired by a browser.
In a specific implementation of the present application, if the first task segment is not processed, returning a random progress smaller than the first task segment as a task processing progress, and saving the task processing progress to a database for being queried by a browser further includes: and taking the first fixed time interval as the time interval of the next request initiation of the browser, and storing the time interval of the next request initiation of the browser in a database for the query of the browser.
In a specific implementation of the present application, the obtaining, according to the completion time of the next task segment, a time interval at which the browser initiates the request next time specifically includes: and delaying the completion time of the next task segment by a second fixed time interval as the time interval for the browser to initiate the request next time.
The application also provides a method for displaying the processing progress in data processing, which is applied to a browser and comprises the following steps:
sending a data processing instruction to a server through a browser;
initiating a request to a server, inquiring a database of the server, and acquiring a task processing progress and a time interval of the next request initiation of the browser;
and rendering and displaying the task processing progress by the browser, and initiating a request to the server again after delaying the time interval of initiating the request by the browser next time.
The application also provides a device for displaying the processing progress in data processing, which is applied to a server and comprises:
the judging module is used for carrying out data processing on the task segments according to the received data processing instruction and judging whether the first task segment is processed or not;
the computing module is used for computing the completion time of the next task segment according to the completion time of at least one part of processed task segments if the first task segment is processed;
an obtaining module, configured to obtain a time interval for a next request initiation by the browser according to the completion time of the next task segment;
and the storage module is used for storing the task processing progress and the time interval of the next request initiation of the browser to a database for the browser to inquire.
In a specific implementation of the present application, the apparatus further includes:
and the setting module is used for returning a random progress smaller than the first task segment as a task processing progress if the first task segment is not processed, and storing the task processing progress to a database for being inquired by a browser.
In a specific implementation of the present application, the setting module is further configured to use the first fixed time interval as a time interval for the browser to initiate a request next time, and store the time interval for the browser to initiate the request next time in the database for the browser to query.
In a specific implementation of the present application, the setting module is specifically configured to delay the completion time of the next task segment by a second fixed time interval, where the second fixed time interval is used as a time interval for the browser to initiate the request next time.
The application also provides a device for displaying the processing progress in data processing, which is applied to a browser and comprises:
the sending module is used for sending a data processing instruction to the server through the browser;
the request module is used for initiating a request to the server, inquiring a database of the server and acquiring a task processing progress and a time interval of the next request initiation of the browser;
and the operation module is used for rendering and displaying the task processing progress, and initiating the request to the server again after delaying the time interval of initiating the request next time by the browser.
According to the technical scheme, the data processing is carried out on the task segments according to the received data processing instruction, and if the processing of the first task segment is completed, the server calculates the completion time of the next task segment according to the completion time of at least one part of the processed completed task segment. And further, obtaining the time interval of the next request initiation of the browser according to the completion time of the next task segment. According to the method and the device, the task processing progress and the time interval of the next request initiation of the browser are stored in the database for the browser to inquire. And rendering and displaying the task processing progress by the browser, and initiating a request to the server again after delaying the time interval of initiating the request by the browser next time. Therefore, under the condition of ensuring the user experience, the time interval of the next request initiation of the browser is stored in the database, the time of the next request initiation of the browser to the service is determined, the request times are reduced, and the network overhead is saved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic illustration of an interface display for data processing;
FIG. 2 is a hardware structure diagram of a server to which the method for displaying processing progress in data processing is applied;
FIG. 3 is a flow diagram of one embodiment of a method for displaying processing progress in data processing according to the present application;
FIG. 4 is a flow chart of another embodiment of a method for displaying progress of processing in data processing according to the present application;
FIG. 5 is a hardware structure diagram of a browser to which the method for displaying a processing progress in data processing according to the present application is applied;
FIG. 6 is a flow chart of yet another embodiment of a method for displaying progress of processing in data processing according to the present application;
FIG. 7 is a block diagram of an embodiment of an apparatus for displaying process progress in data processing according to the present application;
FIG. 8 is a block diagram of another embodiment of an apparatus for displaying the progress of processing in data processing according to the present application;
FIG. 9 is a block diagram of still another embodiment of an apparatus for displaying progress of processing in data processing according to the present application;
fig. 10 is a signal diagram illustrating a specific implementation scenario for displaying processing progress in data processing according to the present application.
Detailed Description
Data processing typically slices a task by percentage, each segment being called a task segment. For example, 5% of a task is a task segment. Since in a highly concurrent server, the servers are not as busy at different times. Therefore, even if the data processing tasks are under the same condition, the time consumed for completing one task segment is different. Therefore, during the data processing of the server, the browser cannot know the time consumed by the server to complete the task segment, and frequently sends requests to the server at regular intervals.
And in a plurality of requests initiated to the server by the browser, besides the valid request, the request also comprises an invalid request. The effective request means that the task processing progress acquired by the browser is updated data, and the result is different from the last request result; the invalid request refers to the task processing progress acquired by the browser and is consistent with the progress acquired by the last request. The data processing progress seen by the user is not changed due to the existence of the invalid request, and the invalid request consumes network resources. The details are shown in Table 1.
TABLE 1
Figure BDA0000726702920000051
According to the method and the device, data processing is carried out on the task segments according to the received data processing instruction, and if the first task segment is processed, the server calculates the completion time of the next task segment according to the completion time of at least one part of processed completed task segments. And further, obtaining the time interval of the next request initiation of the browser according to the completion time of the next task segment. According to the method and the device, the task processing progress and the time interval of the next request initiation of the browser are stored in the database for the browser to inquire. And rendering and displaying the task processing progress by the browser, and initiating a request to the server again after delaying the time interval of initiating the request by the browser next time. Therefore, under the condition of ensuring the user experience, the time interval of the next request initiation of the browser is stored in the database, the time of the next request initiation of the browser to the service is determined, the request times are reduced, and the network overhead is saved.
Of course, it is not necessary for any particular embodiment of the invention to achieve all of the above-described advantages at the same time.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments that can be derived from the embodiments given herein by a person of ordinary skill in the art are intended to be within the scope of the present disclosure.
The following further describes the present application with reference to the drawings.
Referring to fig. 2, the present application provides a method for displaying a processing progress in data processing, which is applied to a server. The server 1 generally comprises in hardware: a control unit 21, a storage unit 22 and other hardware 23.
Referring to fig. 3, the method 3 of the present application includes:
and S1, processing the data of the task segment according to the received data processing instruction, and judging whether the first task segment is processed.
The server receives a data processing instruction sent by the browser, and specifically, the data processing instruction may be a data export instruction. And the server starts a thread to process data according to the processing condition of the data processing instruction. Due to different running environments and processing conditions of the servers, the processing time of each task segment is different. The server determines whether the processing of the first task segment is completed, if so, performs step S2, otherwise, performs step S5.
And S2, if the first task segment is processed, calculating the completion time of the next task segment according to the completion time of at least one part of the processed task segment.
In a specific implementation of the present application, since processing of one task segment is completed, the operating environment and the processing conditions of the server can be inferred according to the completion time of the task segment, so as to calculate the completion time of the next task segment of the task segment. Thus, if the processing of the first task segment is completed, the completion time of the second task segment can be calculated based on the time consumed to complete the first task segment. And analogizing in turn, and calculating the completion time of the next task segment according to the time consumed by completing each task segment.
In another embodiment of the present application, the completion time of the next task segment may also be estimated according to the completion times of the plurality of task segments that have been processed and completed, for example, an average value of the completion times of the plurality of task segments is taken.
And S3, obtaining the time interval of the next request initiated by the browser according to the completion time of the next task segment.
If the browser sends the request to the server again when the next task segment is not completed, the task processing progress returned by the server is consistent with the progress obtained by the last request, and the request is an invalid request. According to the method and the device, in order to avoid invalid requests, the time interval of the next request initiation of the browser is estimated according to the completion time of the next task segment, so that the browser is prevented from sending the invalid requests to the server when the next task segment is not completed.
And S4, saving the task processing progress and the time interval of the next request initiation of the browser to a database for the browser to inquire.
According to the method and the system, the server stores the task processing progress and the time interval of the next request initiation of the browser to the database, the browser renders and displays the task processing progress by inquiring the database, and the request is initiated to the server again after the time interval of the next request initiation of the browser is delayed.
The task processing progress is rendered and displayed, so that the user experience is guaranteed. Meanwhile, the time interval of the next request initiation of the browser is saved in the database, the time of the next request initiation of the browser to the service is determined, the request times are reduced, and therefore the network overhead is saved. The details are shown in Table 2.
TABLE 2
Requesting server time The result of the request is that, whether it is a valid request
Namely numberAccording to the progress of processing
2015-02-0408:42:01 5% Is that
2015-02-0408:42:04 10% Is that
2015-02-0408:42:06 15% Is that
2015-02-0408:43:18 100% Is that
In another specific implementation of the present application, the method includes steps S1 — S4, and referring to fig. 4, the method 4 further includes:
and S5, if the first task segment is not processed, returning a random progress smaller than the first task segment as a task processing progress, and storing the task processing progress to a database for being inquired by the browser.
Specifically, if it is determined in step S1 that the first task segment is not processed, in order to enable the user to timely perceive that the task is running, the random progress smaller than the first task segment is used as the task processing progress, and is stored in the database for the browser to query. For example, if the task segment is 5%, the task processing progress is set to be 2%, and the task processing progress is stored in the database for being queried by the browser. The browser queries the database to obtain 2% of task processing progress. The browser displays 2% of rendering, and a user can timely sense that a task is in operation at the beginning of sending a data processing instruction, so that the user experience effect is improved.
In another specific implementation of the present application, the method includes, in addition to the steps S1 — S5, the step S5 further includes: and taking the first fixed time interval as the time interval of the next request initiation of the browser, and storing the time interval of the next request initiation of the browser in a database for the query of the browser.
Because the first task segment is not processed and completed, the time interval of the next request initiation of the browser cannot be calculated according to the completion time of the first task segment, and therefore the first fixed time interval is taken as the time interval of the next request initiation of the browser and is stored in the database for the browser to inquire. The first fixed time interval is chosen by the skilled person according to experience and need. For example, 1 second is set as the time interval for the browser to initiate a request next time, and the time interval is stored in the database for the browser to query. The browser queries the database to obtain the time interval of 1 second for the next request initiation of the browser, and the browser initiates the request to the server at the interval of 1 second.
In another specific implementation of the present application, the step S3 specifically includes: and delaying the completion time of the next task segment by a second fixed time interval as the time interval for the browser to initiate the request next time.
In order to avoid concurrency of writing data into the database by the server and acquiring the data from the database by the browser, the time for acquiring the data from the database by the browser is delayed by a fixed time interval. I.e. the time interval during which the browser next initiates a request is the completion time of the next task segment plus a second fixed time interval. The second fixed time interval is chosen by the skilled person according to experience and need. For example, the second fixed time interval is set to 0.5 seconds. The time interval for the browser to next initiate a request is the completion time of the server's next task segment plus 0.5 seconds.
The present application also provides a method for displaying processing progress in data processing, which is applied to a browser, referring to fig. 5, the browser is generally a computer 5, and generally includes, in hardware: a control unit 51, a storage unit 52, an input unit 53, an output unit 54, and other hardware 55.
Referring to fig. 6, the method 6 of the present application includes:
p1, sending data processing instructions to the server through the browser.
Specifically, a user applies for data processing at a website, and the browser sends an application data processing instruction to the server.
And P2, initiating a request to the server, inquiring a database of the server, and acquiring the task processing progress and the time interval of the next request initiation of the browser.
The browser sends a request to the server, and obtains the data packet by inquiring the database of the server. The data packet comprises two data of task processing progress and time interval of next request initiation of the browser.
And P3, rendering and displaying the task processing progress by the browser, and initiating the request to the server again after delaying the time interval of the next request initiation by the browser.
And the browser obtains the task processing progress and renders the task processing progress to a user. And the browser obtains the time interval of the next request initiation, and the time of the next request initiation of the browser is the current time plus the time interval of the next request initiation.
According to the method and the device, under the condition that user experience is guaranteed, the time interval of the next request initiation of the browser is stored in the database, the time of the next request initiation of the browser to the service is determined, the request times are reduced, and therefore network overhead is saved.
Corresponding to the method, the application also provides a device for displaying the processing progress in data processing, which is applied to the server. Referring to fig. 1, the server 1 generally includes in hardware: a control unit 11, a storage unit 12 and other hardware 13.
Referring to fig. 7, the apparatus 7 according to the present application comprises:
the judging module 71 is configured to perform data processing on the task segments according to the received data processing instruction, and judge whether the processing of the first task segment is completed.
A calculating module 72, configured to calculate, if the processing of the first task segment is completed, a completion time of a next task segment according to a completion time of at least a part of processed completed task segments.
An obtaining module 73, configured to obtain a time interval of a next request initiated by the browser according to the completion time of the next task segment.
And a saving module 74, configured to save the task processing progress and the time interval when the browser next initiates the request to the database for the browser to query.
The server receives a data processing instruction sent by the browser, and specifically, the data processing instruction may be a data export instruction. And the server starts a thread to process data according to the processing condition of the data processing instruction. Due to different running environments and processing conditions of the servers, the processing time of each task segment is different. The server determines whether the first task segment is processed, and if the first task segment is processed, the computing module 72 is run.
In a specific implementation of the present application, since processing of one task segment is completed, the operating environment and the processing conditions of the server can be inferred according to the completion time of the task segment, so as to calculate the completion time of the next task segment of the task segment. Thus, if the processing of the first task segment is completed, the completion time of the second task segment can be calculated based on the time consumed to complete the first task segment. And analogizing in turn, and calculating the completion time of the next task segment according to the time consumed by completing each task segment.
In another embodiment of the present application, the completion time of the next task segment may also be estimated according to the completion times of the plurality of task segments that have been processed and completed, for example, an average value of the completion times of the plurality of task segments is taken.
If the browser sends the request to the server again when the next task segment is not completed, the task processing progress returned by the server is consistent with the progress obtained by the last request, and the request is an invalid request. According to the method and the device, in order to avoid invalid requests, the time interval of the next request initiation of the browser is estimated according to the completion time of the next task segment, so that the browser is prevented from sending the invalid requests to the server when the next task segment is not completed.
According to the method and the system, the server stores the task processing progress and the time interval of the next request initiation of the browser to the database, the browser renders and displays the task processing progress by inquiring the database, and the request is initiated to the server again after the time interval of the next request initiation of the browser is delayed.
The task processing progress is rendered and displayed, so that the user experience is guaranteed. Meanwhile, the time interval of the next request initiation of the browser is saved in the database, the time of the next request initiation of the browser to the service is determined, the request times are reduced, and therefore the network overhead is saved. The details are shown in Table 2.
TABLE 2
In another specific implementation of the present application, the apparatus includes, in addition to the determining module 71, the calculating module 72, the obtaining module 73, and the storing module 74, referring to fig. 8, the apparatus 8 further includes:
and a setting module 75, configured to, if the first task segment is not processed, return a random progress smaller than the first task segment as a task processing progress, and store the task processing progress in a database for a browser to query.
Specifically, if the determination module 71 determines that the first task segment is not processed, in order to enable the user to timely sense that the task is running, the random progress smaller than the first task segment is used as the task processing progress and is stored in the database for the browser to query. For example, if the task segment is 5%, the task processing progress is set to be 2%, and the task processing progress is stored in the database for being queried by the browser. The browser queries the database to obtain 2% of task processing progress. The browser displays 2% of rendering, and a user can timely sense that a task is in operation at the beginning of sending a data processing instruction, so that the user experience effect is improved.
In another specific implementation of the present application, the apparatus includes a determining module 71, a calculating module 72, an obtaining module 73, and a storing module 74, where the setting module 75 is further configured to use the first fixed time interval as a time interval for the browser to initiate a request next time, and store the time interval for the browser to initiate a request next time in a database for the browser to query.
Because the first task segment is not processed and completed, the time interval of the next request initiation of the browser cannot be calculated according to the completion time of the first task segment, and therefore the first fixed time interval is taken as the time interval of the next request initiation of the browser and is stored in the database for the browser to inquire. The first fixed time interval is chosen by the skilled person according to experience and need. For example, 1 second is set as the time interval for the browser to initiate a request next time, and the time interval is stored in the database for the browser to query. The browser queries the database to obtain the time interval of 1 second for the next request initiation of the browser, and the browser initiates the request to the server at the interval of 1 second.
In yet another specific implementation of the present application, the obtaining module 73 is specifically configured to delay the completion time of the next task segment by a second fixed time interval, as a time interval when the browser next initiates the request.
In order to avoid concurrency of writing data into the database by the server and acquiring the data from the database by the browser, the time for acquiring the data from the database by the browser is delayed by a fixed time interval. I.e. the time interval during which the browser next initiates a request is the completion time of the next task segment plus a second fixed time interval. The second fixed time interval is chosen by the skilled person according to experience and need. For example, the second fixed time interval is set to 0.5 seconds. The time interval for the browser to next initiate a request is the completion time of the server's next task segment plus 0.5 seconds.
The present application also provides a device for displaying the progress of processing in data processing, which is applied to a browser, referring to fig. 5, the browser is generally a computer 5, and generally includes, in hardware: a control unit 51, a storage unit 52, an input unit 53, an output unit 54, and other hardware 55.
Referring to fig. 9, the apparatus 9 of the present application includes:
and a sending module 91, configured to send the data processing instruction to the server through the browser.
Specifically, a user applies for data processing at a website, and the browser sends an application data processing instruction to the server.
The request module 92 is configured to initiate a request to the server, query a database of the server, and obtain a task processing progress and a time interval for the browser to initiate the request next time.
The browser sends a request to the server, and obtains the data packet by inquiring the database of the server. The data packet comprises two data of task processing progress and time interval of next request initiation of the browser.
And the operation module 93 is configured to render and display the task processing progress, and initiate a request to the server again after delaying a time interval when the browser initiates the request next time.
And the browser obtains the task processing progress and renders the task processing progress to a user. And the browser obtains the time interval of the next request initiation, and the time of the next request initiation of the browser is the current time plus the time interval of the next request initiation.
According to the method and the device, under the condition that user experience is guaranteed, the time interval of the next request initiation of the browser is stored in the database, the time of the next request initiation of the browser to the service is determined, the request times are reduced, and therefore network overhead is saved.
The principles of the present application are further described below in a specific implementation.
Referring to fig. 10, a user applies for data processing at a website, and sends an application data processing instruction to a server 102 through a browser 101.
The server 102 receives a data processing instruction sent by the browser 101, and starts a thread to process data according to a processing condition.
The server 102 performs the following operations:
and when the first task segment is not processed, the random progress smaller than the first task segment is taken as the task processing progress and is stored in the database for being inquired by the browser. And taking the first fixed time interval as the time interval of the next request initiation of the browser, and storing the time interval of the next request initiation of the browser in a database for the browser 101 to inquire.
And when the first task segment is processed, calculating the completion time of the next task segment according to the completion time of each task segment in sequence.
And delaying the completion time of the next task segment by a second fixed time interval as the time interval for the browser to initiate the request next time.
And storing the task processing progress and the time interval of the next request initiation of the browser to a database for the browser 101 to inquire.
The browser 101 initiates a request to the server 102, queries the database of the server 102, and obtains a task processing progress and a time interval for the browser to initiate the request next time.
The browser 101 renders and displays the task processing progress, and initiates a request to the server again after delaying the time interval for initiating the request next time by the browser.
The task processing progress is rendered and displayed, so that the user experience is guaranteed. Meanwhile, the time interval of the next request initiation of the browser is saved in the database, the time of the next request initiation of the browser to the service is determined, the request times are reduced, and therefore the network overhead is saved.
The apparatus provided by the embodiment of the application can be realized by a computer program. It should be understood by those skilled in the art that the above-mentioned division of the units and modules is only one of many divisions, and if the division is into other units or modules or not into blocks, the information objects with the above-mentioned functions should be within the scope of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus (device), or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for displaying processing progress in data processing is applied to a server, and is characterized by comprising the following steps:
processing the data of the task segments according to the received data processing instruction, and judging whether the processing of each task segment is finished;
when each task segment is processed, calculating the completion time of the next task segment according to the completion time of at least one part of processed task segments; the task segments are obtained by segmenting data processing tasks in the server according to percentages;
acquiring the time interval of the next request initiated by the browser according to the completion time of the next task segment;
and storing the task processing progress and the time interval of the next request initiation of the browser to a database for the browser to inquire.
2. The method of claim 1, further comprising:
if the first task segment is not processed, returning a random progress smaller than the first task segment as a task processing progress, and storing the task processing progress to a database for being inquired by a browser.
3. The method of claim 2, wherein if the first task segment is not processed, returning a random progress smaller than the first task segment as a task processing progress, and saving the task processing progress to a database for a browser to query further comprises: and taking the first fixed time interval as the time interval of the next request initiation of the browser, and storing the time interval of the next request initiation of the browser in a database for the query of the browser.
4. The method according to claim 1, wherein the obtaining a time interval for the browser to initiate the request next time according to the completion time of the next task segment specifically comprises: and delaying the completion time of the next task segment by a second fixed time interval as the time interval for the browser to initiate the request next time.
5. A method for displaying processing progress in data processing is applied to a browser, and is characterized by comprising the following steps:
sending a data processing instruction to a server through a browser;
initiating a request to a server, inquiring a database of the server, and acquiring a task processing progress and a time interval of the next request initiation of the browser;
rendering and displaying the task processing progress by the browser, and initiating a request to the server again after delaying the time interval of the next request initiation by the browser; the time interval of the next request is obtained by the server according to the completion time of the next task segment, and the completion time of the next task segment is calculated and obtained according to the completion time of at least one part of processed task segments after the processing of each task segment is completed; the task segments are obtained by segmenting the data processing tasks in the server according to percentages.
6. An apparatus for displaying processing progress in data processing, applied to a server, comprising:
the judging module is used for carrying out data processing on the task segments according to the received data processing instruction and judging whether the processing of each task segment is finished;
the computing module is used for computing the completion time of the next task segment according to the completion time of at least one part of processed task segments when the processing of each task segment is completed; the task segments are obtained by segmenting data processing tasks in the server according to percentages;
an obtaining module, configured to obtain a time interval for a next request initiation by the browser according to the completion time of the next task segment;
and the storage module is used for storing the task processing progress and the time interval of the next request initiation of the browser to a database for the browser to inquire.
7. The apparatus of claim 6, further comprising:
and the setting module is used for returning a random progress smaller than the first task segment as a task processing progress if the first task segment is not processed, and storing the task processing progress to a database for being inquired by a browser.
8. The apparatus of claim 7, wherein the setting module is further configured to use the first fixed time interval as a time interval when the browser next initiates a request, and save the time interval when the browser next initiates a request to a database for the browser to query.
9. The apparatus of claim 6, wherein the obtaining module is specifically configured to delay the completion time of the next task segment by a second fixed time interval as a time interval for a next request initiation by the browser.
10. An apparatus for displaying processing progress in data processing, applied to a browser, comprising:
the sending module is used for sending a data processing instruction to the server through the browser;
the request module is used for initiating a request to the server, inquiring a database of the server and acquiring a task processing progress and a time interval of the next request initiation of the browser;
the operation module is used for rendering and displaying the task processing progress, and initiating a request to the server again after delaying the time interval of the next request initiation of the browser; the time interval of the next request is obtained by the server according to the completion time of the next task segment, and the completion time of the next task segment is calculated and obtained according to the completion time of at least one part of processed task segments after the processing of each task segment is completed; the task segments are obtained by segmenting the data processing tasks in the server according to percentages.
CN201510284803.9A 2015-05-28 2015-05-28 Method and device for displaying processing progress in data processing Active CN106294451B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510284803.9A CN106294451B (en) 2015-05-28 2015-05-28 Method and device for displaying processing progress in data processing
PCT/CN2016/080309 WO2016188292A1 (en) 2015-05-28 2016-04-27 Method and device for displaying processing progress during data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510284803.9A CN106294451B (en) 2015-05-28 2015-05-28 Method and device for displaying processing progress in data processing

Publications (2)

Publication Number Publication Date
CN106294451A CN106294451A (en) 2017-01-04
CN106294451B true CN106294451B (en) 2020-01-14

Family

ID=57392367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510284803.9A Active CN106294451B (en) 2015-05-28 2015-05-28 Method and device for displaying processing progress in data processing

Country Status (2)

Country Link
CN (1) CN106294451B (en)
WO (1) WO2016188292A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109300037B (en) * 2018-09-28 2021-07-30 中国银行股份有限公司 Transaction progress display method and device
CN109561146A (en) * 2018-11-29 2019-04-02 深圳市买买提信息科技有限公司 Document down loading method, device, terminal device
CN113176937B (en) * 2021-05-21 2023-09-12 抖音视界有限公司 Task processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434393A (en) * 2003-02-24 2003-08-06 武汉大学 Dynamic loading balance method for cluster server
CN102170422A (en) * 2010-02-25 2011-08-31 腾讯科技(深圳)有限公司 Method, device and system for inquiring node
CN103516690A (en) * 2012-06-26 2014-01-15 阿里巴巴集团控股有限公司 Service processing state information query method and apparatus thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8468152B2 (en) * 2005-08-04 2013-06-18 International Business Machines Corporation Autonomic refresh of a materialized query table in a computer database
US7774324B1 (en) * 2007-07-31 2010-08-10 Intuit Inc. Progress-tracking service
CN101246423A (en) * 2008-03-12 2008-08-20 浪潮集团山东通用软件有限公司 Method for pattern exhibition of task progress in management software
US10459915B2 (en) * 2009-12-23 2019-10-29 Ab Initio Technology Llc Managing queries
JP2012053805A (en) * 2010-09-03 2012-03-15 Dainippon Printing Co Ltd Progress information display control system
CN103136089B (en) * 2011-11-25 2016-08-17 腾讯科技(深圳)有限公司 A kind of progress bar display packing and device
CN102799678A (en) * 2012-07-23 2012-11-28 深圳市同洲电子股份有限公司 Method for customizing progress bar of browser and method for customizing error page of browser
JP6127489B2 (en) * 2012-12-11 2017-05-17 株式会社リコー Processing request device, control program for processing request device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434393A (en) * 2003-02-24 2003-08-06 武汉大学 Dynamic loading balance method for cluster server
CN102170422A (en) * 2010-02-25 2011-08-31 腾讯科技(深圳)有限公司 Method, device and system for inquiring node
CN103516690A (en) * 2012-06-26 2014-01-15 阿里巴巴集团控股有限公司 Service processing state information query method and apparatus thereof

Also Published As

Publication number Publication date
CN106294451A (en) 2017-01-04
WO2016188292A1 (en) 2016-12-01

Similar Documents

Publication Publication Date Title
US9911148B2 (en) Querying for business service processing status information
CN106933534B (en) Data synchronization method and device
US8037410B2 (en) Method and apparatus for estimating the size of rendered text
CN105843819B (en) Data export method and device
US10666758B2 (en) Browser resource pre-pulling method, terminal and storage medium
CN106294451B (en) Method and device for displaying processing progress in data processing
CN109961331B (en) Page processing method and system, computer system and readable storage medium
CN109359060B (en) Data extraction method, device, computing equipment and computer storage medium
CN109800078B (en) Task processing method, task distribution terminal and task execution terminal
US8667090B2 (en) Delivering a webpage to a client
CN108763524B (en) Electronic device, chatting data processing method, and computer-readable storage medium
CN114553762A (en) Method and device for processing flow table items in flow table
CN113312553A (en) Method and device for determining user label
CN110943876A (en) URL state detection method, device, equipment and system
CN112596820A (en) Resource loading method, device, equipment and storage medium
US11134116B2 (en) System and method for dynamically loading a webpage
CN109741432B (en) Rendering estimation time calculation method, electronic equipment and storage medium
CN108170493B (en) System module loading method, system and device
CN109032779B (en) Task processing method and device, computer equipment and readable storage medium
US20160048569A1 (en) Method of integrating remote databases by automated client scoping of update requests prior to download via a communications network
GB2576858A (en) Dynamic picture sizing based on user access criteria
CN110162373B (en) Method and device for displaying chart in webpage
CN115103024A (en) Serial number generation method and device, electronic equipment and storage medium
CN109783499B (en) Data caching method, device and server
CN108572871B (en) Resource allocation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant