WO2016188292A1 - Method and device for displaying processing progress during data processing - Google Patents
Method and device for displaying processing progress during data processing Download PDFInfo
- Publication number
- WO2016188292A1 WO2016188292A1 PCT/CN2016/080309 CN2016080309W WO2016188292A1 WO 2016188292 A1 WO2016188292 A1 WO 2016188292A1 CN 2016080309 W CN2016080309 W CN 2016080309W WO 2016188292 A1 WO2016188292 A1 WO 2016188292A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- browser
- task
- request
- time interval
- server
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Definitions
- the present application relates to the field of Internet technologies, and in particular, to a method and apparatus for displaying processing progress in data processing.
- the web page dynamically displays the progress of the data processing.
- the browser In order to obtain the dynamic current data processing progress, the browser usually takes a fixed time interval to initiate a request to the server, and the server obtains the current processing progress. For example, the server is requested once every 1 second, the server returns the progress of the task processing, and the browser renders the current progress data to the web page and presents it to the user.
- this puts a lot of pressure on the server consumes too much network resources, and increases network overhead.
- the present application provides a method for displaying processing progress in data processing and an apparatus thereof, which can reduce the number of times a browser requests a server, reduce the pressure on a server, and save network overhead while ensuring a user experience.
- the present application provides a method for displaying processing progress in data processing, which is applied to a server, including:
- the method further includes:
- the browser further includes: The first fixed time interval is used as the time interval for the browser to initiate the request next time, and the time interval for the next time the browser initiates the request is saved to the database for the browser to query.
- the time interval for obtaining the next request initiated by the browser according to the completion time of the next task segment is specifically: delaying the completion time of the next task segment by a second fixed time interval. , as the time interval between the next time the browser initiates a request.
- the application also provides a method for displaying processing progress in data processing, which is applied to a browser, including:
- the browser renders the task processing progress display and delays the time interval after the browser initiates the request again to initiate a request to the server.
- the application also provides an apparatus for displaying processing progress in data processing, which is applied to a server, and includes:
- a judging module configured to perform data processing on the task segment according to the received data processing instruction, and Determine whether the first task fragment is processed or not;
- a calculation module configured to: if the processing of the first task segment is completed, calculate a completion time of the next task segment according to a completion time of at least a part of the processed task segments;
- Obtaining a module configured to obtain a time interval for the next request initiated by the browser according to the completion time of the next task segment;
- the saving module is configured to save the task processing progress and the time interval for the browser to initiate the request to the database for the browser to query.
- the device further includes:
- the setting module is configured to return a random progress less than the first task segment as the task processing progress if the first task segment is not processed, and save the task processing progress to the database for the browser to query.
- the setting module is further configured to use the first fixed time interval as a time interval for the browser to initiate the request, and save the time interval for the browser to initiate the request to the database for browsing. Query.
- the setting 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 the browser to initiate the request next time.
- the application also provides a device for displaying processing progress in data processing, which is applied to a browser, and includes:
- a sending module configured to send a data processing instruction to the server through the browser
- a requesting module configured to initiate a request to the server, query a database of the server, and obtain a task processing progress and a time interval between the next request initiated by the browser;
- the operation module is configured to render the task processing progress display, and delay the time interval after the browser initiates the request, and then initiate a request to the server again.
- the present application performs data processing on the task segment according to the received data processing instruction. 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 a part of the processed task fragments. . Further, according to the completion time of the next task segment, the time interval for the next request initiated by the browser is obtained.
- This application will be the mission
- the progress and the time interval between the next request initiated by the browser are saved to the database for query by the browser.
- the browser renders the task processing progress display and delays the time interval after the browser initiates the request again to initiate a request to the server. Therefore, in the case of ensuring the user experience, the application saves the time interval for the next request of the browser to the service in the database, and reduces the number of requests, thereby saving network overhead.
- 1 is a schematic diagram showing an interface display of data processing
- FIG. 2 is a hardware structural diagram of a server to which a method for displaying a progress of processing in data processing of the present application is applied;
- FIG. 3 is a flow chart of an embodiment of a method for displaying processing progress in data processing of the present application
- FIG. 4 is a flow chart of another embodiment of a method for displaying processing progress in data processing of the present application.
- FIG. 5 is a hardware structural diagram of a browser to which a method for displaying a progress of processing in data processing of the present application is applied;
- FIG. 6 is a flow chart showing still another embodiment of a method for displaying processing progress in data processing of the present application.
- FIG. 7 is a structural diagram of an embodiment of an apparatus for displaying a progress of processing in data processing of the present application
- FIG. 8 is a structural diagram of another embodiment of an apparatus for displaying a processing progress in data processing of the present application.
- FIG. 9 is a structural diagram of still another embodiment of an apparatus for displaying a processing progress in data processing of the present application.
- FIG. 10 is a schematic diagram of a signal showing a specific implementation scenario of processing progress in data processing of the present application.
- Data processing usually divides a task into percentages, each of which is called a task piece. segment. For example, 5% of a task is a task fragment. Because of the high concurrent servers, the server is not busy at different times. Therefore, even for the same conditional data processing tasks, the time taken to complete a task fragment is different. Therefore, during the process of data processing by the server, the browser cannot know the time taken by the server to complete the task fragment, and it will send the request frequently to the server at a fixed time interval.
- the browser also includes invalid requests in the multiple requests initiated by the browser to the server.
- the valid request means that the task processing progress obtained by the browser is the updated data, which is different from the last request result; the invalid request refers to the task processing progress obtained by the browser, which is consistent with the progress of the last request acquisition. Due to the existence of invalid requests, the data processing progress seen by the user has not changed, and the invalid request consumes network resources. The specific situation is shown in Table 1.
- the application performs data processing on the task segment according to the received data processing instruction. 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 a part of the processed task segments. Further, according to the completion time of the next task segment, the time interval for the next request initiated by the browser is obtained.
- the application saves the task processing progress and the time interval between the next request initiated by the browser to the database for the browser to query.
- the browser renders the task processing progress display and delays the time interval after the browser initiates the request again to the server Initiate a request. Therefore, in the case of ensuring the user experience, the application saves the time interval for the next request of the browser to the service in the database, and reduces the number of requests, thereby saving network overhead.
- the present application provides a method for displaying processing progress in data processing, which is applied to a server.
- the server 1 generally includes: a control unit 21, a storage unit 22, and other hardware 23 on hardware.
- the method 3 of the present application includes:
- S1 Perform data processing on the task segment according to the received data processing instruction, and determine whether the first task segment is processed.
- the server receives the data processing instruction sent by the browser.
- the data processing instruction may be a data export instruction.
- the server starts the thread processing data according to the processing conditions of the data processing instruction. Due to the different operating environment and processing conditions of the server, the processing time of each task segment is also different.
- the server determines whether the processing of the first task segment is completed. If the processing of the first task segment is completed, step S2 is performed, otherwise step S5 is performed.
- the completion time of the next task segment is calculated according to the completion time of at least a part of the task segment that has been processed.
- the running environment and processing conditions of the server may be inferred according to the completion time of the task segment, thereby calculating the completion time of the next task segment of the task segment. Therefore, if the first task fragment is processed, The completion time of the second task segment is calculated based on the time taken to complete the first task segment. By analogy, the completion time of the next task segment is calculated based on the time taken for each task piece to be completed.
- the completion time of the next task segment may also be estimated according to the completion time of the plurality of task segments that have been processed, such as taking the average of the completion times of the plurality of task segments.
- the present application estimates the time interval for the next request of the browser according to the completion time of the next task segment, thereby preventing the browser from sending an invalid request to the server when the next task segment has not been completed.
- the application server saves the task processing progress and the time interval between the next request initiated by the browser to the database, and the browser renders the task processing progress by querying the database, and delays the time when the browser initiates the request next time. A request is made to the server again after the interval.
- the application renders the task processing progress display, thereby ensuring the user experience.
- the time interval between the next request initiated by the browser in the database the time for the next request from the browser to the service is reduced, and the number of requests is reduced, thereby saving network overhead.
- Table 2 The specific situation is shown in Table 2.
- the method includes steps S1 - S4. Referring to FIG. 4, the method 4 further includes:
- step S1 if it is determined in step S1 that the first task segment is not processed, in order to let the user perceive the task in operation, the random progress less than the first task segment is saved as a task processing progress to the database for the browser to query. For example, if the task fragment is 5%, set the task processing progress to 2% and save it to the database for the browser to query. The browser queries the database and gets 2% of the task processing progress. The browser will display 2% of the display, and the user can sense that the task is running at the beginning of the data processing instruction, which increases the user experience.
- the method includes steps S1 - S5, and the step S5 further includes: using the first fixed time interval as a time interval for the browser to initiate the request next time, and the browser The time interval between the next request is saved to the database for the browser to query.
- the first fixed time interval is used as the interval for the next request initiated by the browser, and is saved to the database for Browser query.
- the first fixed time interval is selected by those skilled in the art based on experience and needs. For example, set 1 second as the time interval for the next request initiated by the browser, and save it to the database for the browser to query.
- the browser queries the database to obtain a time interval of 1 second for the browser to initiate the request, and the browser initiates a request to the server at intervals of 1 second.
- the step S3 is specifically: delaying the completion time of the next task segment by a second fixed time interval as a time interval for the browser to initiate the request next time.
- the browser obtains data from the database for a fixed time interval. That is, the time interval between the next request of the browser is the completion time of the next task segment plus the second fixed time interval.
- the second fixed time interval is selected by those skilled in the art based on experience and needs. For example, set the second fixed time interval to 0.5 seconds. The next time the browser initiates the request, the time interval between the completion of the next task fragment of the server plus 0.5 seconds.
- the present application also provides a method for displaying processing progress in data processing, which is applied to a browser.
- the browser is usually a computer 5, which generally includes: a control unit 51, a storage unit 52, and an input unit 53 in hardware.
- the method 6 of the present application includes:
- the user applies for data processing on the website, and the browser issues an application data processing instruction to the server.
- P2 initiating a request to the server, querying the database of the server, and obtaining the task processing progress and the time interval between the next request initiated by the browser.
- the browser initiates a request to the server and obtains the data packet by querying the server's database.
- the data packet includes two data of a task processing progress and a time interval at which the browser next initiates the request.
- the browser renders the task processing progress display, and delays the time interval after the browser initiates the request, and then initiates a request to the server again.
- the browser obtains the task processing progress and renders the task processing progress to the user.
- the browser obtains the interval for initiating the request next time, and the time when the browser next initiates the request is the current time plus the time interval of the next request.
- the time interval for the next request initiated by the browser is saved in the database, and the time when the browser requests the service next time is determined, and the number of requests is reduced, thereby saving network overhead.
- the present application further provides an apparatus for displaying processing progress in data processing, Applied to the server.
- the server 1 generally includes a control unit 11, a storage unit 12, and other hardware 13 on hardware.
- the apparatus 7 of the present application includes:
- the determining module 71 is configured to perform data processing on the task segment according to the received data processing instruction, and determine whether the processing of the first task segment is completed.
- the calculating module 72 is configured to calculate a completion time of the next task segment according to the completion time of at least a part of the processed completed task segments, if the first task segment processing is completed.
- the obtaining module 73 is configured to obtain a time interval for the next request initiated by the browser according to the completion time of the next task segment.
- the saving module 74 is configured to save the task processing progress and the time interval for the browser to initiate the request to the database for the browser to query.
- the server receives the data processing instruction sent by the browser.
- the data processing instruction may be a data export instruction.
- the server starts the thread processing data according to the processing conditions of the data processing instruction. Due to the different operating environment and processing conditions of the server, the processing time of each task segment is also different.
- the server determines whether the first task segment is processed or not. If the first task segment processing is completed, the calculation module 72 is executed.
- the running environment and processing conditions of the server may be inferred according to the completion time of the task segment, thereby calculating the completion time of the next task segment of the task segment. Therefore, if the first task segment is processed, the completion time of the second task segment can be calculated according to the time taken to complete the first task segment. By analogy, the completion time of the next task segment is calculated based on the time taken for each task piece to be completed.
- the completion time of the next task segment may also be estimated according to the completion time of the plurality of task segments that have been processed, such as taking the average of the completion times of the plurality of task segments.
- the present application estimates the time interval for the next request of the browser according to the completion time of the next task segment, thereby preventing the browser from sending an invalid request to the server when the next task segment has not been completed.
- the application server saves the task processing progress and the time interval between the next request initiated by the browser to the database, and the browser renders the task processing progress by querying the database, and delays the time when the browser initiates the request next time. A request is made to the server again after the interval.
- the application renders the task processing progress display, thereby ensuring the user experience.
- the time interval between the next request initiated by the browser in the database the time for the next request from the browser to the service is reduced, and the number of requests is reduced, thereby saving network overhead.
- Table 2 The specific situation is shown in Table 2.
- the device includes a judging module 71, a calculating module 72, an obtaining module 73, and a saving module 74. Referring to FIG. 8, the device 8 further includes:
- the setting module 75 is configured to return a random progress less than the first task segment as the task processing progress if the first task segment is not processed, and save the task processing progress to the database for query by the browser.
- the judging module 71 determines that the first task fragment is not processed, in order to let the user perceive that the task is running, the random progress less than the first task segment is saved as a task processing progress to the database for the browser to query. For example, if the task fragment is 5%, set the task processing progress to 2% and save it to the database for the browser to query. The browser queries the database and gets the task processed. Degree 2%. The browser will display 2% of the display, and the user can sense that the task is running at the beginning of the data processing instruction, which increases the user experience.
- the device includes a determining module 71, a calculating module 72, an obtaining module 73, and a saving module 74.
- the setting module 75 is further configured to use the first fixed time interval as a browser to initiate the next time. The requested time interval and save the time interval for the next request initiated by the browser to the database for the browser to query.
- the first fixed time interval is used as the interval for the next request initiated by the browser, and is saved to the database for Browser query.
- the first fixed time interval is selected by those skilled in the art based on experience and needs. For example, set 1 second as the time interval for the next request initiated by the browser, and save it to the database for the browser to query.
- the browser queries the database to obtain a time interval of 1 second for the browser to initiate the request, and the browser initiates a request to the server at intervals of 1 second.
- 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 for the next request initiated by the browser.
- the browser obtains data from the database for a fixed time interval. That is, the time interval between the next request of the browser is the completion time of the next task segment plus the second fixed time interval.
- the second fixed time interval is selected by those skilled in the art based on experience and needs. For example, set the second fixed time interval to 0.5 seconds. The next time the browser initiates the request, the time interval between the completion of the next task fragment of the server plus 0.5 seconds.
- the present application also provides an apparatus for displaying processing progress in data processing, which is applied to a browser.
- the browser is usually a computer 5, which generally includes: a control unit 51, a storage unit 52, and an input unit 53 in hardware.
- the device 9 of the present application includes:
- the sending module 91 is configured to send a data processing instruction to the server through the browser.
- the user applies for data processing on the website, and the browser issues an application data processing instruction to the server.
- the requesting module 92 is configured to initiate a request to the server, query the database of the server, and obtain a time interval between the task processing progress and the next request initiated by the browser.
- the browser initiates a request to the server and obtains the data packet by querying the server's database.
- the data packet includes two data of a task processing progress and a time interval at which the browser next initiates the request.
- the operation module 93 is configured to render the task processing progress display and delay the time interval after the browser initiates the request, and then initiate a request to the server again.
- the browser obtains the task processing progress and renders the task processing progress to the user.
- the browser obtains the interval for initiating the request next time, and the time when the browser next initiates the request is the current time plus the time interval of the next request.
- the time interval for the next request initiated by the browser is saved in the database, and the time when the browser requests the service next time is determined, and the number of requests is reduced, thereby saving network overhead.
- the user applies for data processing at the website, and sends a request data processing instruction to the server 102 via the browser 101.
- the server 102 receives the data processing instruction sent by the browser 101, and starts the thread processing data according to the processing condition.
- Server 102 does the following:
- the random progress of the first task fragment is taken as the task processing progress and saved to the database for query by the browser.
- the first fixed time interval is used as the time interval for the browser to initiate the request next time, and the time interval for the next time the browser initiates the request is saved to the database for the browser 101 to query.
- the completion time of the next task segment is calculated according to the completion time of each task segment.
- the completion time of the next task segment is delayed by a second fixed time interval as the time interval for the browser to initiate the request next time.
- the task processing progress and the time interval at which the browser next initiates the request are saved to the database for query by the browser 101.
- the browser 101 initiates a request to the server 102 to query the database of the server 102 to obtain the task processing progress and the time interval at which the browser next initiates the request.
- the browser 101 renders the task processing progress display and delays the time interval after the browser next initiates the request to initiate a request to the server again.
- the application renders the task processing progress display, thereby ensuring the user experience.
- the time for the next request from the browser to the service is reduced, and the number of requests is reduced, thereby saving network overhead.
- the apparatus provided by the embodiments of the present application can be implemented by a computer program.
- Those skilled in the art should be able to understand that the foregoing unit and module division manners are only one of a plurality of division manners. If the division is other units or modules or does not divide the blocks, as long as the information object has the above functions, it should be in the present application. Within the scope of protection.
- embodiments of the present application can be provided as a method, apparatus (device), or computer program product.
- the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
- the application can 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, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present application provides a method and device for displaying a processing progress during data processing. The method applied to a server comprises: performing, according to a received data processing command, data processing on task fragments, and determining whether the processing on the first task fragment is completed or not; if the processing on the first task fragment is completed, computing, according to completing time of at least one part of processed task fragments, the completing time of the next task fragment; acquiring, according to the completing time of the next task fragment, a time interval for initiating a request by a browser next time; and saving the task processing progress and the time interval for initiating the request by the browser next time in a database for the browser to search. The present application can reduce the requesting times of a browser on a server while ensuring user experience, thereby reducing pressure on the server and saving network overhead.
Description
本申请涉及互联网技术领域,尤其涉及一种数据处理中显示处理进度的方法及其装置。The present application relates to the field of Internet technologies, and in particular, to a method and apparatus for displaying processing progress in data processing.
随着互联网技术的发展,大多数的网站通常会提供数据处理的功能,例如,订单处理的功能。由于数据是动态生成的,用户进行处理前,服务器需要经过较长时间的数据处理过程。参看图1,为了增加用户的交互体验,网页会动态展示数据处理进度。而为了获取动态的当前数据处理进度,通常采取浏览器间隔固定的时间频繁的向服务器发起请求,服务器获取当前处理进度的方式。比如每间隔1秒请求一次服务器,服务器返回任务处理进度,浏览器把当前进度数据渲染到网页,展示给用户。但是,这样给服务器造成很大的压力,消耗过多的网络资源,增大了网络开销。With the development of Internet technology, most websites usually provide data processing functions, such as order processing functions. Since the data is dynamically generated, the server needs to go through a long period of data processing before the user processes it. Referring to Figure 1, in order to increase the user's interactive experience, the web page dynamically displays the progress of the data processing. In order to obtain the dynamic current data processing progress, the browser usually takes a fixed time interval to initiate a request to the server, and the server obtains the current processing progress. For example, the server is requested once every 1 second, the server returns the progress of the task processing, and the browser renders the current progress data to the web page and presents it to the user. However, this puts a lot of pressure on the server, consumes too much network resources, and increases network overhead.
因此,如何在保证用户体验的情况下,能够降低浏览器请求服务器的次数成为亟待解决的技术问题。Therefore, how to reduce the number of times the browser requests the server is a technical problem to be solved in the case of ensuring the user experience.
发明内容Summary of the invention
有鉴于此,本申请提供一种数据处理中显示处理进度的方法及其装置,其在保证用户体验的情况下,能够降低浏览器请求服务器的次数,降低对服务器的压力,节约网络开销。In view of this, the present application provides a method for displaying processing progress in data processing and an apparatus thereof, which can reduce the number of times a browser requests a server, reduce the pressure on a server, and save network overhead while ensuring a user experience.
本申请提供一种数据处理中显示处理进度的方法,应用于服务器,包括:The present application provides a method for displaying processing progress in data processing, which is applied to a server, including:
根据接收的数据处理指令对任务片断进行数据处理,并判断首个任务片断是否处理完成;
Performing data processing on the task segment according to the received data processing instruction, and determining whether the first task segment is processed or not;
若首个任务片断处理完成,则根据至少一部分已处理完成的任务片断的完成时间,计算下一任务片断的完成时间;If the processing of the first task segment is completed, calculating the completion time of the next task segment according to the completion time of at least a part of the processed task segments;
根据所述下亦任务片断的完成时间,获得浏览器下次发起请求的时间间隔;Obtaining a time interval for the next request initiated by the browser according to the completion time of the next task segment;
将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。Save the task processing progress and the time interval between the next request initiated by the browser to the database for the browser to query.
在本申请一具体实现中,所述方法还包括:In a specific implementation of the application, the method further includes:
若首个任务片断未处理完成,返回小于首个任务片断的随机进度作为任务处理进度,并将所述任务处理进度保存至数据库供浏览器查询。If the first task segment is not processed, a random progress less than the first task segment is returned as the task processing progress, and the task processing progress is saved to the database for query by the browser.
在本申请一具体实现中,所述若首个任务片断未处理完成,返回小于首个任务片断的随机进度作为任务处理进度,并将所述任务处理进度保存至数据库供浏览器查询还包括:将第一固定时间间隔作为浏览器下次发起请求的时间间隔,并将所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。In a specific implementation of the present application, if the first task segment is not processed, returning a random progress less than the first task segment as the task processing progress, and saving the task processing progress to the database for query by the browser further includes: The first fixed time interval is used as the time interval for the browser to initiate the request next time, and the time interval for the next time the browser initiates the request is saved to the database for the browser to query.
在本申请一具体实现中,所述根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔具体为:将所述下一任务片断的完成时间延迟第二固定时间间隔,作为浏览器下次发起请求的时间间隔。In a specific implementation of the present application, the time interval for obtaining the next request initiated by the browser according to the completion time of the next task segment is specifically: delaying the completion time of the next task segment by a second fixed time interval. , as the time interval between the next time the browser initiates a request.
本申请还提供一种数据处理中显示处理进度的方法,应用于浏览器,包括:The application also provides a method for displaying processing progress in data processing, which is applied to a browser, including:
通过浏览器发送数据处理指令至服务器;Sending data processing instructions to the server through the browser;
向服务器发起请求,查询服务器的数据库,获得任务处理进度和浏览器下次发起请求的时间间隔;Initiating a request to the server, querying the database of the server, and obtaining the task processing progress and the time interval between the next request initiated by the browser;
浏览器将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。The browser renders the task processing progress display and delays the time interval after the browser initiates the request again to initiate a request to the server.
本申请还提供一种数据处理中显示处理进度的装置,应用于服务器,包括:The application also provides an apparatus for displaying processing progress in data processing, which is applied to a server, and includes:
判断模块,用于根据接收的数据处理指令对任务片断进行数据处理,并
判断首个任务片断是否处理完成;a judging module, configured to perform data processing on the task segment according to the received data processing instruction, and
Determine whether the first task fragment is processed or not;
计算模块,用于若首个任务片断处理完成,则根据至少一部分已处理完成的任务片断的完成时间,计算下一任务片断的完成时间;a calculation module, configured to: if the processing of the first task segment is completed, calculate a completion time of the next task segment according to a completion time of at least a part of the processed task segments;
获得模块,用于根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔;Obtaining a module, configured to obtain a time interval for the next request initiated by the browser according to the completion time of the next task segment;
保存模块,用于将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。The saving module is configured to save the task processing progress and the time interval for the browser to initiate the request to the database for the browser to query.
在本申请一具体实现中,所述装置还包括:In a specific implementation of the application, the device further includes:
设置模块,用于若首个任务片断未处理完成,返回小于首个任务片断的随机进度作为任务处理进度,并将所述任务处理进度保存至数据库供浏览器查询。The setting module is configured to return a random progress less than the first task segment as the task processing progress if the first task segment is not processed, and save the task processing progress to the database for the browser to query.
在本申请一具体实现中,所述设置模块还用于将第一固定时间间隔作为浏览器下次发起请求的时间间隔,并将所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。In a specific implementation of the application, the setting module is further configured to use the first fixed time interval as a time interval for the browser to initiate the request, and save the time interval for the browser to initiate the request to the database for browsing. 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 as a time interval for the browser to initiate the request next time.
本申请还提供一种数据处理中显示处理进度的装置,应用于浏览器,包括:The application also provides a device for displaying processing progress in data processing, which is applied to a browser, and includes:
发送模块,用于通过浏览器发送数据处理指令至服务器;a sending module, configured to send a data processing instruction to the server through the browser;
请求模块,用于向服务器发起请求,查询服务器的数据库,获得任务处理进度和浏览器下次发起请求的时间间隔;a requesting module, configured to initiate a request to the server, query a database of the server, and obtain a task processing progress and a time interval between the next request initiated by the browser;
操作模块,用于将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。The operation module is configured to render the task processing progress display, and delay the time interval after the browser initiates the request, and then initiate a request to the server again.
由以上技术方案可见,本申请根据接收的数据处理指令对任务片断进行数据处理,若首个任务片断处理完成,服务器根据至少一部分已处理完成任务片断的完成时间,计算下一任务片断的完成时间。进而,根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔。本申请将任务处
理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。浏览器将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。因此,本申请在保证用户体验的情况下,通过在数据库中保存浏览器下次发起请求的时间间隔,明确浏览器下次向服务起请求的时间,减少请求次数,从而节约网络开销。As can be seen from the above technical solution, the present application performs data processing on the task segment according to the received data processing instruction. 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 a part of the processed task fragments. . Further, according to the completion time of the next task segment, the time interval for the next request initiated by the browser is obtained. This application will be the mission
The progress and the time interval between the next request initiated by the browser are saved to the database for query by the browser. The browser renders the task processing progress display and delays the time interval after the browser initiates the request again to initiate a request to the server. Therefore, in the case of ensuring the user experience, the application saves the time interval for the next request of the browser to the service in the database, and reduces the number of requests, thereby saving network overhead.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only These are some of the embodiments described in this application, and other figures can be obtained from those of ordinary skill in the art in view of these drawings.
图1是数据处理的界面显示示意图;1 is a schematic diagram showing an interface display of data processing;
图2是本申请数据处理中显示处理进度的方法所应用的服务器的硬件结构图;2 is a hardware structural diagram of a server to which a method for displaying a progress of processing in data processing of the present application is applied;
图3是本申请数据处理中显示处理进度的方法的一实施例的流程图;3 is a flow chart of an embodiment of a method for displaying processing progress in data processing of the present application;
图4是本申请数据处理中显示处理进度的方法的另一实施例的流程图;4 is a flow chart of another embodiment of a method for displaying processing progress in data processing of the present application;
图5是本申请数据处理中显示处理进度的方法所应用的浏览器的硬件结构图;5 is a hardware structural diagram of a browser to which a method for displaying a progress of processing in data processing of the present application is applied;
图6是本申请数据处理中显示处理进度的方法的再一实施例的流程图;6 is a flow chart showing still another embodiment of a method for displaying processing progress in data processing of the present application;
图7是本申请数据处理中显示处理进度的装置的一实施例的结构图;7 is a structural diagram of an embodiment of an apparatus for displaying a progress of processing in data processing of the present application;
图8是本申请数据处理中显示处理进度的装置的另一实施例的结构图;8 is a structural diagram of another embodiment of an apparatus for displaying a processing progress in data processing of the present application;
图9是本申请数据处理中显示处理进度的装置的再一实施例的结构图;9 is a structural diagram of still another embodiment of an apparatus for displaying a processing progress in data processing of the present application;
图10是本申请数据处理中显示处理进度的一具体实现场景的信号示意图。FIG. 10 is a schematic diagram of a signal showing a specific implementation scenario of processing progress in data processing of the present application.
数据处理通常把一个任务按照百分比进行切分,每一个片段称为任务片
段。比如一个任务的5%为一个任务片段。由于在高并发的服务器中,不同时间服务器的繁忙程度不一样。因此,即使是同样条件的数据处理任务,完成一个任务片段所消耗的时间也是不一样的。因此,服务器进行数据处理的过程中,浏览器无法获知服务器完成任务片断所消耗的时间,其会向服务器间隔固定的时间频繁的发送请求。Data processing usually divides a task into percentages, each of which is called a task piece.
segment. For example, 5% of a task is a task fragment. Because of the high concurrent servers, the server is not busy at different times. Therefore, even for the same conditional data processing tasks, the time taken to complete a task fragment is different. Therefore, during the process of data processing by the server, the browser cannot know the time taken by the server to complete the task fragment, and it will send the request frequently to the server at a fixed time interval.
而浏览器向服务器发起的多次请求中,除有效请求外,还包括无效请求。所述有效请求,指浏览器获取的任务处理进度是更新后的数据,和上次请求结果不一样;所述无效请求,指浏览器获取的任务处理进度,和上次请求获取的进度一致。由于无效请求的存在,从而造成用户看到的数据处理进度没有改变,同时无效请求又消耗了网络资源。具体情况如表1所示。In addition to the valid request, the browser also includes invalid requests in the multiple requests initiated by the browser to the server. The valid request means that the task processing progress obtained by the browser is the updated data, which is different from the last request result; the invalid request refers to the task processing progress obtained by the browser, which is consistent with the progress of the last request acquisition. Due to the existence of invalid requests, the data processing progress seen by the user has not changed, and the invalid request consumes network resources. The specific situation is shown in Table 1.
表1Table 1
本申请根据接收的数据处理指令对任务片断进行数据处理,若首个任务片断处理完成,服务器根据至少一部分已处理完成任务片断的完成时间,计算下一任务片断的完成时间。进而,根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔。本申请将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。浏览器将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器
发起请求。因此,本申请在保证用户体验的情况下,通过在数据库中保存浏览器下次发起请求的时间间隔,明确浏览器下次向服务起请求的时间,减少请求次数,从而节约网络开销。The application performs data processing on the task segment according to the received data processing instruction. 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 a part of the processed task segments. Further, according to the completion time of the next task segment, the time interval for the next request initiated by the browser is obtained. The application saves the task processing progress and the time interval between the next request initiated by the browser to the database for the browser to query. The browser renders the task processing progress display and delays the time interval after the browser initiates the request again to the server
Initiate a request. Therefore, in the case of ensuring the user experience, the application saves the time interval for the next request of the browser to the service in the database, and reduces the number of requests, thereby saving network overhead.
当然,实施本申请的任一技术方案并不一定需要同时达到以上所述的所有优点。Of course, implementing any of the technical solutions of the present application does not necessarily require all the advantages described above to be achieved 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 in the following with reference to the accompanying drawings in the embodiments of the present application. The examples are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments in the present application should fall within the scope of the present application.
下面结合本申请附图进一步说明本申请具体实现。The specific implementation of the present application is further described below in conjunction with the drawings of the present application.
参看图2,本申请提供一种数据处理中显示处理进度的方法,其应用于服务器。服务器1在硬件上通常包括:控制单元21、存储单元22以及其他硬件23。Referring to FIG. 2, the present application provides a method for displaying processing progress in data processing, which is applied to a server. The server 1 generally includes: a control unit 21, a storage unit 22, and other hardware 23 on hardware.
参见图3,本申请所述方法3包括:Referring to FIG. 3, the method 3 of the present application includes:
S1、根据接收的数据处理指令对任务片断进行数据处理,并判断首个任务片断是否处理完成。S1: Perform data processing on the task segment according to the received data processing instruction, and determine whether the first task segment is processed.
服务器接收浏览器发送的数据处理指令,具体地,数据处理指令可以为数据导出指令。服务器根据数据处理指令的处理条件启动线程处理数据。由于服务器的运行环境、处理条件不同,每个任务片断的处理时间也不相同。服务器判断首个任务片断是否处理完成,如首个任务片断处理完成,则执行步骤S2,否则执行步骤S5。The server receives the data processing instruction sent by the browser. Specifically, the data processing instruction may be a data export instruction. The server starts the thread processing data according to the processing conditions of the data processing instruction. Due to the different operating environment and processing conditions of the server, the processing time of each task segment is also different. The server determines whether the processing of the first task segment is completed. If the processing of the first task segment is completed, step S2 is performed, otherwise step S5 is performed.
S2、若首个任务片断处理完成,则根据至少一部分已经处理完成的任务片断的完成时间,计算下一任务片断的完成时间。S2. If the processing of the first task segment is completed, the completion time of the next task segment is calculated according to the completion time of at least a part of the task segment that has been processed.
在本申请一具体实现中,由于一个任务片断处理完成,则可以根据该任务片断的完成时间,推断服务器的运行环境和处理条件,从而计算出该任务片断的下一个任务片断的完成时间。因此,若首个任务片断处理完成,则可
以根据完成该首个任务片断所消耗的时间,计算出第二个任务片断的完成时间。依次类推,根据每完成一个任务片断所消耗的时间,计算出下一任务片断的完成时间。In a specific implementation of the present application, since the processing of a task segment is completed, the running environment and processing conditions of the server may be inferred according to the completion time of the task segment, thereby calculating the completion time of the next task segment of the task segment. Therefore, if the first task fragment is processed,
The completion time of the second task segment is calculated based on the time taken to complete the first task segment. By analogy, the completion time of the next task segment is calculated based on the time taken for each task piece to be completed.
在本申请另一具体实现中,亦可根据已经处理完成的多个任务片断的完成时间,估算下一个任务片断的完成时间,比如取多个任务片断完成时间的平均值。In another specific implementation of the present application, the completion time of the next task segment may also be estimated according to the completion time of the plurality of task segments that have been processed, such as taking the average of the completion times of the plurality of task segments.
S3、根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔。S3. Obtain a time interval for the next request initiated by the browser according to the completion time of the next task segment.
由于如果浏览器在下一任务片断尚未完成时,向服务器再次发送请求,则服务器返回的任务处理进度和上次请求获取的进度一致,该请求为无效请求。本申请为了避免无效请求的出现,根据下一任务片断的完成时间,估算浏览器下次发起请求的时间间隔,从而避免浏览器在下一任务片断尚未完成时,向服务器发送无效请求。Since if the browser sends a request to the server again when the next task fragment has not been completed, the task processing progress returned by the server is consistent with the progress of the last request acquisition, and the request is an invalid request. In order to avoid the occurrence of invalid requests, the present application estimates the time interval for the next request of the browser according to the completion time of the next task segment, thereby preventing the browser from sending an invalid request to the server when the next task segment has not been completed.
S4、将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。S4. Save the task processing progress and the time interval between the next request initiated by the browser to the database for the browser to query.
本申请服务器将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库,浏览器通过查询数据库,将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。The application server saves the task processing progress and the time interval between the next request initiated by the browser to the database, and the browser renders the task processing progress by querying the database, and delays the time when the browser initiates the request next time. A request is made to the server again after the interval.
本申请将所述任务处理进度渲染显示,从而保证了用户体验。同时,通过在数据库中保存浏览器下次发起请求的时间间隔,明确浏览器下次向服务起请求的时间,减少请求次数,从而节约网络开销。具体情况如表2所示。The application renders the task processing progress display, thereby ensuring the user experience. At the same time, by saving the time interval between the next request initiated by the browser in the database, the time for the next request from the browser to the service is reduced, and the number of requests is reduced, thereby saving network overhead. The specific situation is shown in Table 2.
表2Table 2
在本申请另一具体实现中,所述方法包括步骤S1——S4外,参看图4,所述方法4还包括:In another specific implementation of the present application, the method includes steps S1 - S4. Referring to FIG. 4, the method 4 further includes:
S5、若首个任务片断未处理完成,返回小于首个任务片断的随机进度作为任务处理进度,并将所述任务处理进度保存至数据库供浏览器查询。S5. If the first task segment is not processed, return a random progress less than the first task segment as the task processing progress, and save the task processing progress to the database for the browser to query.
具体地,如步骤S1中判断首个任务片断未处理完成,为了让用户及时感知任务在运行中,将小于首个任务片断的随机进度作为任务处理进度,保存至数据库供浏览器查询。比如,任务片段为5%,则设定任务处理进度为2%,保存至数据库供浏览器查询。浏览器查询数据库,获得任务处理进度2%。浏览器将2%渲染显示,用户能够在数据处理指令发送之初,及时感知任务在运行中,增加了用户体验效果。Specifically, if it is determined in step S1 that the first task segment is not processed, in order to let the user perceive the task in operation, the random progress less than the first task segment is saved as a task processing progress to the database for the browser to query. For example, if the task fragment is 5%, set the task processing progress to 2% and save it to the database for the browser to query. The browser queries the database and gets 2% of the task processing progress. The browser will display 2% of the display, and the user can sense that the task is running at the beginning of the data processing instruction, which increases the user experience.
在本申请另一具体实现中,所述方法包括步骤S1——S5外,所述步骤S5还包括:将第一固定时间间隔作为浏览器下次发起请求的时间间隔,并将所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。In another specific implementation of the present application, the method includes steps S1 - S5, and the step S5 further includes: using the first fixed time interval as a time interval for the browser to initiate the request next time, and the browser The time interval between the next request is saved to the database for the browser to query.
由于首个任务片断未处理完成,无法根据首个任务片断完成时间计算浏览器下次发起请求的时间间隔,因此采取第一固定时间间隔作为浏览器下次发起请求的时间间隔,保存至数据库供浏览器查询。所述第一固定时间间隔由本领域技术人员根据经验和需要选取。比如,设定1秒作为浏览器下次发起请求的时间间隔,保存至数据库供浏览器查询。浏览器查询数据库,获得浏览器下次发起请求的时间间隔1秒,浏览器间隔1秒向服务器发起请求。Since the first task fragment is not processed, the time interval for the next request to be initiated by the browser cannot be calculated according to the first task fragment completion time. Therefore, the first fixed time interval is used as the interval for the next request initiated by the browser, and is saved to the database for Browser query. The first fixed time interval is selected by those skilled in the art based on experience and needs. For example, set 1 second as the time interval for the next request initiated by the browser, and save it to the database for the browser to query. The browser queries the database to obtain a time interval of 1 second for the browser to initiate the request, and the browser initiates a request to the server at intervals of 1 second.
在本申请再一具体实现中,所述步骤S3具体为:将所述下一任务片断的完成时间延迟第二固定时间间隔,作为浏览器下次发起请求的时间间隔。
In a further implementation of the present application, the step S3 is specifically: delaying the completion time of the next task segment by a second fixed time interval as a time interval for the browser to initiate the request next time.
为了避免服务器向数据库写入数据和浏览器自数据库获取数据的并发,浏览器自数据库获取数据的时间延迟固定时间间隔。即浏览器下次发起请求的时间间隔为下一任务片断的完成时间加上第二固定时间间隔。所述第二固定时间间隔由本领域技术人员根据经验和需要选取。比如,设定第二固定时间间隔为0.5秒。浏览器下次发起请求的时间间隔为服务器下一任务片断的完成时间加上0.5秒。In order to avoid the server writing data to the database and the browser to obtain data from the database concurrently, the browser obtains data from the database for a fixed time interval. That is, the time interval between the next request of the browser is the completion time of the next task segment plus the second fixed time interval. The second fixed time interval is selected by those skilled in the art based on experience and needs. For example, set the second fixed time interval to 0.5 seconds. The next time the browser initiates the request, the time interval between the completion of the next task fragment of the server plus 0.5 seconds.
本申请还提供一种数据处理中显示处理进度的方法,应用于浏览器,参看图5,浏览器通常为一计算机5,其在硬件上通常包括:控制单元51、存储单元52、输入单元53、输出单元54以及其他硬件55。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 usually a computer 5, which generally includes: a control unit 51, a storage unit 52, and an input unit 53 in hardware. The output unit 54 and other hardware 55.
参见图6,本申请所述方法6包括:Referring to Figure 6, the method 6 of the present application includes:
P1、通过浏览器发送数据处理指令至服务器。P1, sending a data processing instruction to the server through the browser.
具体地,用户在网站申请数据处理,浏览器发出申请数据处理指令至服务器。Specifically, the user applies for data processing on the website, and the browser issues an application data processing instruction to the server.
P2、向服务器发起请求,查询服务器的数据库,获得任务处理进度和浏览器下次发起请求的时间间隔。P2, initiating a request to the server, querying the database of the server, and obtaining the task processing progress and the time interval between the next request initiated by the browser.
浏览器向服务器发起请求,通过查询服务器的数据库,获得数据包。所述数据包包括任务处理进度和浏览器下次发起请求的时间间隔两个数据。The browser initiates a request to the server and obtains the data packet by querying the server's database. The data packet includes two data of a task processing progress and a time interval at which the browser next initiates the request.
P3、浏览器将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。P3. The browser renders the task processing progress display, and delays the time interval after the browser initiates the request, and then initiates a request to the server again.
浏览器获得所述任务处理进度,并将所述任务处理进度渲染给用户。浏览器获得下次发起请求的时间间隔,则浏览器下次发起请求的时间为当前时间加上下次发起请求的时间间隔。The browser obtains the task processing progress and renders the task processing progress to the user. The browser obtains the interval for initiating the request next time, and the time when the browser next initiates the request is the current time plus the time interval of the next request.
本申请在保证用户体验的情况下,通过在数据库中保存浏览器下次发起请求的时间间隔,明确浏览器下次向服务起请求的时间,减少请求次数,从而节约网络开销。In the case of ensuring the user experience, the time interval for the next request initiated by the browser is saved in the database, and the time when the browser requests the service next time is determined, and the number of requests is reduced, thereby saving network overhead.
对应上述方法,本申请还提供一种数据处理中显示处理进度的装置,其
应用于服务器。参看图1,服务器1在硬件上通常包括:控制单元11、存储单元12以及其他硬件13。Corresponding to the above method, the present application further provides an apparatus for displaying processing progress in data processing,
Applied to the server. Referring to FIG. 1, the server 1 generally includes a control unit 11, a storage unit 12, and other hardware 13 on hardware.
参见图7,本申请所述装置7包括:Referring to Figure 7, the apparatus 7 of the present application includes:
判断模块71,用于根据接收的数据处理指令对任务片断进行数据处理,并判断首个任务片断是否处理完成。The determining module 71 is configured to perform data processing on the task segment according to the received data processing instruction, and determine whether the processing of the first task segment is completed.
计算模块72,用于若首个任务片断处理完成,则根据至少一部分已处理完成任务片断的完成时间,计算下一任务片断的完成时间。The calculating module 72 is configured to calculate a completion time of the next task segment according to the completion time of at least a part of the processed completed task segments, if the first task segment processing is completed.
获得模块73,用于根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔。The obtaining module 73 is configured to obtain a time interval for the next request initiated by the browser according to the completion time of the next task segment.
保存模块74,用于将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。The saving module 74 is configured to save the task processing progress and the time interval for the browser to initiate the request to the database for the browser to query.
服务器接收浏览器发送的数据处理指令,具体地,数据处理指令可以为数据导出指令。服务器根据数据处理指令的处理条件启动线程处理数据。由于服务器的运行环境、处理条件不同,每个任务片断的处理时间也不相同。服务器判断首个任务片断是否处理完成,如首个任务片断处理完成,则运行计算模块72。The server receives the data processing instruction sent by the browser. Specifically, the data processing instruction may be a data export instruction. The server starts the thread processing data according to the processing conditions of the data processing instruction. Due to the different operating environment and processing conditions of the server, the processing time of each task segment is also different. The server determines whether the first task segment is processed or not. If the first task segment processing is completed, the calculation module 72 is executed.
在本申请一具体实现中,由于一个任务片断处理完成,则可以根据该任务片断的完成时间,推断服务器的运行环境和处理条件,从而计算出该任务片断的下一个任务片断的完成时间。因此,若首个任务片断处理完成,则可以根据完成该首个任务片断所消耗的时间,计算出第二个任务片断的完成时间。依次类推,根据每完成一个任务片断所消耗的时间,计算出下一任务片断的完成时间。In a specific implementation of the present application, since the processing of a task segment is completed, the running environment and processing conditions of the server may be inferred according to the completion time of the task segment, thereby calculating the completion time of the next task segment of the task segment. Therefore, if the first task segment is processed, the completion time of the second task segment can be calculated according to the time taken to complete the first task segment. By analogy, the completion time of the next task segment is calculated based on the time taken for each task piece to be completed.
在本申请另一具体实现中,亦可根据已经处理完成的多个任务片断的完成时间,估算下一个任务片断的完成时间,比如取多个任务片断完成时间的平均值。In another specific implementation of the present application, the completion time of the next task segment may also be estimated according to the completion time of the plurality of task segments that have been processed, such as taking the average of the completion times of the plurality of task segments.
由于如果浏览器在下一任务片断尚未完成时,向服务器再次发送请求,则服务器返回的任务处理进度和上次请求获取的进度一致,该请求为无效请
求。本申请为了避免无效请求的出现,根据下一任务片断的完成时间,估算浏览器下次发起请求的时间间隔,从而避免浏览器在下一任务片断尚未完成时,向服务器发送无效请求。Because if the browser sends a request to the server again when the next task fragment has not been completed, the task processing progress returned by the server is consistent with the progress of the last request acquisition, and the request is invalid.
begging. In order to avoid the occurrence of invalid requests, the present application estimates the time interval for the next request of the browser according to the completion time of the next task segment, thereby preventing the browser from sending an invalid request to the server when the next task segment has not been completed.
本申请服务器将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库,浏览器通过查询数据库,将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。The application server saves the task processing progress and the time interval between the next request initiated by the browser to the database, and the browser renders the task processing progress by querying the database, and delays the time when the browser initiates the request next time. A request is made to the server again after the interval.
本申请将所述任务处理进度渲染显示,从而保证了用户体验。同时,通过在数据库中保存浏览器下次发起请求的时间间隔,明确浏览器下次向服务起请求的时间,减少请求次数,从而节约网络开销。具体情况如表2所示。The application renders the task processing progress display, thereby ensuring the user experience. At the same time, by saving the time interval between the next request initiated by the browser in the database, the time for the next request from the browser to the service is reduced, and the number of requests is reduced, thereby saving network overhead. The specific situation is shown in Table 2.
表2Table 2
在本申请另一具体实现中,所述装置包括判断模块71、计算模块72、获得模块73、保存模块74外,参看图8,所述装置8还包括:In another specific implementation of the present application, the device includes a judging module 71, a calculating module 72, an obtaining module 73, and a saving module 74. Referring to FIG. 8, the device 8 further includes:
设置模块75,用于若首个任务片断未处理完成,返回小于首个任务片断的随机进度作为任务处理进度,并将所述任务处理进度保存至数据库供浏览器查询。The setting module 75 is configured to return a random progress less than the first task segment as the task processing progress if the first task segment is not processed, and save the task processing progress to the database for query by the browser.
具体地,如判断模块71中判断首个任务片断未处理完成,为了让用户及时感知任务在运行中,将小于首个任务片断的随机进度作为任务处理进度,保存至数据库供浏览器查询。比如,任务片段为5%,则设定任务处理进度为2%,保存至数据库供浏览器查询。浏览器查询数据库,获得任务处理进
度2%。浏览器将2%渲染显示,用户能够在数据处理指令发送之初,及时感知任务在运行中,增加了用户体验效果。Specifically, if the judging module 71 determines that the first task fragment is not processed, in order to let the user perceive that the task is running, the random progress less than the first task segment is saved as a task processing progress to the database for the browser to query. For example, if the task fragment is 5%, set the task processing progress to 2% and save it to the database for the browser to query. The browser queries the database and gets the task processed.
Degree 2%. The browser will display 2% of the display, and the user can sense that the task is running at the beginning of the data processing instruction, which increases the user experience.
在本申请另一具体实现中,所述装置包括判断模块71、计算模块72、获得模块73、保存模块74外,所述设置模块75还用于将第一固定时间间隔作为浏览器下次发起请求的时间间隔,并将所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。In another specific implementation of the present application, the device includes a determining module 71, a calculating module 72, an obtaining module 73, and a saving module 74. The setting module 75 is further configured to use the first fixed time interval as a browser to initiate the next time. The requested time interval and save the time interval for the next request initiated by the browser to the database for the browser to query.
由于首个任务片断未处理完成,无法根据首个任务片断完成时间计算浏览器下次发起请求的时间间隔,因此采取第一固定时间间隔作为浏览器下次发起请求的时间间隔,保存至数据库供浏览器查询。所述第一固定时间间隔由本领域技术人员根据经验和需要选取。比如,设定1秒作为浏览器下次发起请求的时间间隔,保存至数据库供浏览器查询。浏览器查询数据库,获得浏览器下次发起请求的时间间隔1秒,浏览器间隔1秒向服务器发起请求。Since the first task fragment is not processed, the time interval for the next request to be initiated by the browser cannot be calculated according to the first task fragment completion time. Therefore, the first fixed time interval is used as the interval for the next request initiated by the browser, and is saved to the database for Browser query. The first fixed time interval is selected by those skilled in the art based on experience and needs. For example, set 1 second as the time interval for the next request initiated by the browser, and save it to the database for the browser to query. The browser queries the database to obtain a time interval of 1 second for the browser to initiate the request, and the browser initiates a request to the server at intervals of 1 second.
在本申请再一具体实现中,所述获得模块73具体用于将所述下一任务片断的完成时间延迟第二固定时间间隔,作为浏览器下次发起请求的时间间隔。In 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 for the next request initiated by the browser.
为了避免服务器向数据库写入数据和浏览器自数据库获取数据的并发,浏览器自数据库获取数据的时间延迟固定时间间隔。即浏览器下次发起请求的时间间隔为下一任务片断的完成时间加上第二固定时间间隔。所述第二固定时间间隔由本领域技术人员根据经验和需要选取。比如,设定第二固定时间间隔为0.5秒。浏览器下次发起请求的时间间隔为服务器下一任务片断的完成时间加上0.5秒。In order to avoid the server writing data to the database and the browser to obtain data from the database concurrently, the browser obtains data from the database for a fixed time interval. That is, the time interval between the next request of the browser is the completion time of the next task segment plus the second fixed time interval. The second fixed time interval is selected by those skilled in the art based on experience and needs. For example, set the second fixed time interval to 0.5 seconds. The next time the browser initiates the request, the time interval between the completion of the next task fragment of the server plus 0.5 seconds.
本申请还提供一种数据处理中显示处理进度的装置,应用于浏览器,参看图5,浏览器通常为一计算机5,其在硬件上通常包括:控制单元51、存储单元52、输入单元53、输出单元54以及其他硬件55。The present application also provides an apparatus for displaying processing progress in data processing, which is applied to a browser. Referring to FIG. 5, the browser is usually a computer 5, which generally includes: a control unit 51, a storage unit 52, and an input unit 53 in hardware. The output unit 54 and other hardware 55.
参见图9,本申请所述装置9包括:
Referring to Figure 9, the device 9 of the present application includes:
发送模块91,用于通过浏览器发送数据处理指令至服务器。The sending module 91 is configured to send a data processing instruction to the server through the browser.
具体地,用户在网站申请数据处理,浏览器发出申请数据处理指令至服务器。Specifically, the user applies for data processing on the website, and the browser issues an application data processing instruction to the server.
请求模块92,用于向服务器发起请求,查询服务器的数据库,获得任务处理进度和浏览器下次发起请求的时间间隔。The requesting module 92 is configured to initiate a request to the server, query the database of the server, and obtain a time interval between the task processing progress and the next request initiated by the browser.
浏览器向服务器发起请求,通过查询服务器的数据库,获得数据包。所述数据包包括任务处理进度和浏览器下次发起请求的时间间隔两个数据。The browser initiates a request to the server and obtains the data packet by querying the server's database. The data packet includes two data of a task processing progress and a time interval at which the browser next initiates the request.
操作模块93,用于将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。The operation module 93 is configured to render the task processing progress display and delay the time interval after the browser initiates the request, and then initiate a request to the server again.
浏览器获得所述任务处理进度,并将所述任务处理进度渲染给用户。浏览器获得下次发起请求的时间间隔,则浏览器下次发起请求的时间为当前时间加上下次发起请求的时间间隔。The browser obtains the task processing progress and renders the task processing progress to the user. The browser obtains the interval for initiating the request next time, and the time when the browser next initiates the request is the current time plus the time interval of the next request.
本申请在保证用户体验的情况下,通过在数据库中保存浏览器下次发起请求的时间间隔,明确浏览器下次向服务起请求的时间,减少请求次数,从而节约网络开销。In the case of ensuring the user experience, the time interval for the next request initiated by the browser is saved in the database, and the time when the browser requests the service next time is determined, and the number of requests is reduced, thereby saving network overhead.
下面以一具体实现来进一步说明本申请原理。The principle of the present application will be further described below with a specific implementation.
参看图10,用户在网站申请数据处理,通过浏览器101发出申请数据处理指令给服务器102。Referring to FIG. 10, the user applies for data processing at the website, and sends a request data processing instruction to the server 102 via the browser 101.
服务器102接收浏览器101发送的数据处理指令,根据处理条件启动线程处理数据。The server 102 receives the data processing instruction sent by the browser 101, and starts the thread processing data according to the processing condition.
服务器102完成以下操作:Server 102 does the following:
首个任务片断尚未处理完成时,将小于首个任务片断的随机进度作为任务处理进度,保存至数据库供浏览器查询。将第一固定时间间隔作为浏览器下次发起请求的时间间隔,并将所述浏览器下次发起请求的时间间隔保存至数据库供浏览器101查询。When the first task fragment has not been processed, the random progress of the first task fragment is taken as the task processing progress and saved to the database for query by the browser. The first fixed time interval is used as the time interval for the browser to initiate the request next time, and the time interval for the next time the browser initiates the request is saved to the database for the browser 101 to query.
首个任务片断处理完成,则依次根据每一任务片断的完成时间,计算下一任务片断的完成时间。
When the first task segment is processed, the completion time of the next task segment is calculated according to the completion time of each task segment.
将下一任务片断的完成时间延迟第二固定时间间隔,作为浏览器下次发起请求的时间间隔。The completion time of the next task segment is delayed by a second fixed time interval as the time interval for the browser to initiate the request next time.
将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器101查询。The task processing progress and the time interval at which the browser next initiates the request are saved to the database for query by the browser 101.
浏览器101向服务器102发起请求,查询服务器102的数据库,获得任务处理进度和浏览器下次发起请求的时间间隔。The browser 101 initiates a request to the server 102 to query the database of the server 102 to obtain the task processing progress and the time interval at which the browser next initiates the request.
浏览器101将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。The browser 101 renders the task processing progress display and delays the time interval after the browser next initiates the request to initiate a request to the server again.
本申请将所述任务处理进度渲染显示,从而保证了用户体验。同时,通过在数据库中保存浏览器下次发起请求的时间间隔,明确浏览器下次向服务起请求的时间,减少请求次数,从而节约网络开销。The application renders the task processing progress display, thereby ensuring the user experience. At the same time, by saving the time interval between the next request initiated by the browser in the database, the time for the next request from the browser to the service is reduced, and the number of requests is reduced, thereby saving network overhead.
本申请的实施例提供的装置可通过计算机程序实现。本领域技术人员应该能够理解,上述的单元以及模块划分方式仅是众多划分方式中的一种,如果划分为其他单元或模块或不划分块,只要信息对象的具有上述功能,都应该在本申请的保护范围之内。The apparatus provided by the embodiments of the present application can be implemented by a computer program. Those skilled in the art should be able to understand that the foregoing unit and module division manners are only one of a plurality of division manners. If the division is other units or modules or does not divide the blocks, as long as the information object has the above functions, it should be in the present application. Within the scope of protection.
本领域的技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, apparatus (device), or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can 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, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一
个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of a method, apparatus, and computer program product according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Implemented in flowchart one
Means of a process or a plurality of processes and/or block diagrams of a function specified in a block or blocks.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
While the preferred embodiment of the present application has been described, it will be apparent that those skilled in the art can make further changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.
Claims (10)
- 一种数据处理中显示处理进度的方法,应用于服务器,其特征在于,包括:A method for displaying processing progress in data processing, applied to a server, characterized in that:根据接收的数据处理指令对任务片断进行数据处理,并判断首个任务片断是否处理完成;Performing data processing on the task segment according to the received data processing instruction, and determining whether the first task segment is processed or not;若首个任务片断处理完成,则根据至少一部分已处理完成的任务片断的完成时间,计算下一任务片断的完成时间;If the processing of the first task segment is completed, calculating the completion time of the next task segment according to the completion time of at least a part of the processed task segments;根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔;Obtaining a time interval for the next request initiated by the browser according to the completion time of the next task segment;将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。Save the task processing progress and the time interval between the next request initiated by the browser to the database for the browser to query.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:若首个任务片断未处理完成,返回小于首个任务片断的随机进度作为任务处理进度,并将所述任务处理进度保存至数据库供浏览器查询。If the first task segment is not processed, a random progress less than the first task segment is returned as the task processing progress, and the task processing progress is saved to the database for query by the browser.
- 根据权利要求2所述的方法,其特征在于,所述若首个任务片断未处理完成,返回小于首个任务片断的随机进度作为任务处理进度,并将所述任务处理进度保存至数据库供浏览器查询还包括:将第一固定时间间隔作为浏览器下次发起请求的时间间隔,并将所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。The method according to claim 2, wherein if the first task segment is not processed, a random progress less than the first task segment is returned as a task processing progress, and the task processing progress is saved to a database for browsing. The query further includes: using the first fixed time interval as the time interval for the browser to initiate the request next time, and saving the time interval for the browser to initiate the request to the database for the browser to query.
- 根据权利要求1所述的方法,其特征在于,所述根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔具体为:将所述下一任务片断的完成时间延迟第二固定时间间隔,作为浏览器下次发起请求的时间间隔。The method according to claim 1, wherein the time interval for obtaining the next request initiated by the browser according to the completion time of the next task segment is specifically: delaying the completion time of the next task segment The second fixed time interval is the time interval between the next time the browser initiates the request.
- 一种数据处理中显示处理进度的方法,应用于浏览器,其特征在于,包括:A method for displaying processing progress in data processing is applied to a browser, and is characterized in that:通过浏览器发送数据处理指令至服务器; Sending data processing instructions to the server through the browser;向服务器发起请求,查询服务器的数据库,获得任务处理进度和浏览器下次发起请求的时间间隔;Initiating a request to the server, querying the database of the server, and obtaining the task processing progress and the time interval between the next request initiated by the browser;浏览器将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。The browser renders the task processing progress display and delays the time interval after the browser initiates the request again to initiate a request to the server.
- 一种数据处理中显示处理进度的装置,应用于服务器,其特征在于,包括:An apparatus for displaying processing progress in data processing is applied to a server, and is characterized by:判断模块,用于根据接收的数据处理指令对任务片断进行数据处理,并判断首个任务片断是否处理完成;a judging module, configured to perform data processing on the task segment according to the received data processing instruction, and determine whether the first task segment is processed or not;计算模块,用于若首个任务片断处理完成,则根据至少一部分已处理完成的任务片断的完成时间,计算下一任务片断的完成时间;a calculation module, configured to: if the processing of the first task segment is completed, calculate a completion time of the next task segment according to a completion time of at least a part of the processed task segments;获得模块,用于根据所述下一任务片断的完成时间,获得浏览器下次发起请求的时间间隔;Obtaining a module, configured to obtain a time interval for the next request initiated by the browser according to the completion time of the next task segment;保存模块,用于将任务处理进度和所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。The saving module is configured to save the task processing progress and the time interval for the browser to initiate the request to the database for the browser to query.
- 根据权利要求6所述的装置,其特征在于,所述装置还包括:The device according to claim 6, wherein the device further comprises:设置模块,用于若首个任务片断未处理完成,返回小于首个任务片断的随机进度作为任务处理进度,并将所述任务处理进度保存至数据库供浏览器查询。The setting module is configured to return a random progress less than the first task segment as the task processing progress if the first task segment is not processed, and save the task processing progress to the database for the browser to query.
- 根据权利要求7所述的装置,其特征在于,所述设置模块还用于将第一固定时间间隔作为浏览器下次发起请求的时间间隔,并将所述浏览器下次发起请求的时间间隔保存至数据库供浏览器查询。The apparatus according to claim 7, wherein the setting module is further configured to use the first fixed time interval as a time interval for the browser to initiate the request next time, and to set a time interval for the browser to initiate the request next time. Save to the database for the browser to query.
- 根据权利要求6所述的装置,其特征在于,所述设置模块具体用于将所述下一任务片断的完成时间延迟第二固定时间间隔,作为浏览器下次发起请求的时间间隔。The apparatus according to claim 6, wherein the setting 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 the browser to initiate the request next time.
- 一种数据处理中显示处理进度的装置,应用于浏览器,其特征在于,包括:A device for displaying processing progress in data processing, which is applied to a browser, and includes:发送模块,用于通过浏览器发送数据处理指令至服务器; a sending module, configured to send a data processing instruction to the server through the browser;请求模块,用于向服务器发起请求,查询服务器的数据库,获得任务处理进度和浏览器下次发起请求的时间间隔;a requesting module, configured to initiate a request to the server, query a database of the server, and obtain a task processing progress and a time interval between the next request initiated by the browser;操作模块,用于将所述任务处理进度渲染显示,并延迟所述浏览器下次发起请求的时间间隔后再次向服务器发起请求。 The operation module is configured to render the task processing progress display, and delay the time interval after the browser initiates the request, and then initiate a request to the server again.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510284803.9 | 2015-05-28 | ||
CN201510284803.9A CN106294451B (en) | 2015-05-28 | 2015-05-28 | Method and device for displaying processing progress in data processing |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016188292A1 true WO2016188292A1 (en) | 2016-12-01 |
Family
ID=57392367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/080309 WO2016188292A1 (en) | 2015-05-28 | 2016-04-27 | Method and device for displaying processing progress during data processing |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106294451B (en) |
WO (1) | WO2016188292A1 (en) |
Families Citing this family (3)
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 (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101246423A (en) * | 2008-03-12 | 2008-08-20 | 浪潮集团山东通用软件有限公司 | Method for pattern exhibition of task progress in management software |
US7774324B1 (en) * | 2007-07-31 | 2010-08-10 | Intuit Inc. | Progress-tracking service |
JP2012053805A (en) * | 2010-09-03 | 2012-03-15 | Dainippon Printing Co Ltd | Progress information display control system |
CN102799678A (en) * | 2012-07-23 | 2012-11-28 | 深圳市同洲电子股份有限公司 | Method for customizing progress bar of browser and method for customizing error page of browser |
CN103136089A (en) * | 2011-11-25 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and device for process bar display |
US20140165065A1 (en) * | 2012-12-11 | 2014-06-12 | Takehiro Kamata | Process requesting apparatus, method of controlling process requesting apparatus and recording medium for process requesting apparatus |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1201246C (en) * | 2003-02-24 | 2005-05-11 | 武汉大学 | Dynamic loading balance method for cluster server |
US8468152B2 (en) * | 2005-08-04 | 2013-06-18 | International Business Machines Corporation | Autonomic refresh of a materialized query table in a computer database |
CN102687144B (en) * | 2009-12-23 | 2017-02-15 | 起元技术有限责任公司 | Managing queries |
CN102170422A (en) * | 2010-02-25 | 2011-08-31 | 腾讯科技(深圳)有限公司 | Method, device and system for inquiring node |
CN103516690B (en) * | 2012-06-26 | 2016-08-03 | 阿里巴巴集团控股有限公司 | A kind of business processing status information query method and device |
-
2015
- 2015-05-28 CN CN201510284803.9A patent/CN106294451B/en active Active
-
2016
- 2016-04-27 WO PCT/CN2016/080309 patent/WO2016188292A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
JP2012053805A (en) * | 2010-09-03 | 2012-03-15 | Dainippon Printing Co Ltd | Progress information display control system |
CN103136089A (en) * | 2011-11-25 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and device for process bar display |
CN102799678A (en) * | 2012-07-23 | 2012-11-28 | 深圳市同洲电子股份有限公司 | Method for customizing progress bar of browser and method for customizing error page of browser |
US20140165065A1 (en) * | 2012-12-11 | 2014-06-12 | Takehiro Kamata | Process requesting apparatus, method of controlling process requesting apparatus and recording medium for process requesting apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN106294451A (en) | 2017-01-04 |
CN106294451B (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10678722B2 (en) | Using a decrementer interrupt to start long-running hardware operations before the end of a shared processor dispatch cycle | |
US11449570B2 (en) | Data caching method and apparatus | |
WO2017114199A1 (en) | Data synchronisation method and apparatus | |
US20130080813A1 (en) | Control system, control method, and computer program product | |
US20140298313A1 (en) | Method, server, client and system for updating data | |
US8756600B2 (en) | Judging apparatus, method, and recording medium of program for estimating the effect of deployment of an application in a virtual machine environment | |
JP2017511940A5 (en) | ||
JP2018514028A5 (en) | ||
JP2015515682A5 (en) | ||
WO2018054170A1 (en) | Browser resources pre-pulling method, terminal and storage medium | |
WO2014004566A2 (en) | Querying for business service processing status information | |
WO2016188292A1 (en) | Method and device for displaying processing progress during data processing | |
JP2011505615A (en) | Statistical application in OLTP environment | |
EP3140732A1 (en) | Startup accelerating method and apparatus | |
US10289450B2 (en) | Processing workloads in single-threaded environments | |
WO2021047239A1 (en) | Page acquisition method, device and system | |
WO2018210080A1 (en) | Data synchronisation method, apparatus, device, and computer readable storage medium | |
US11782761B2 (en) | Resource management unit for capturing operating system configuration states and offloading tasks | |
US9891909B2 (en) | Dynamic reconnect of work processes in a zero downtime maintenance procedure | |
WO2018177286A1 (en) | Static resource request processing method and device | |
US20150160968A1 (en) | Freezing a call stack | |
JP2014191378A (en) | Server number adjustment system, method and program | |
US20140280719A1 (en) | System and method for dynamically loading a webpage | |
CN114547495A (en) | Page loading method, device and equipment and readable storage medium | |
US20210191776A1 (en) | Resource Management Unit for Capturing Operating System Configuration States and Memory Management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16799181 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16799181 Country of ref document: EP Kind code of ref document: A1 |