CN110377381B - List refreshing method and device for information system - Google Patents

List refreshing method and device for information system Download PDF

Info

Publication number
CN110377381B
CN110377381B CN201910569118.9A CN201910569118A CN110377381B CN 110377381 B CN110377381 B CN 110377381B CN 201910569118 A CN201910569118 A CN 201910569118A CN 110377381 B CN110377381 B CN 110377381B
Authority
CN
China
Prior art keywords
time
consuming task
data
task
area
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
CN201910569118.9A
Other languages
Chinese (zh)
Other versions
CN110377381A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910569118.9A priority Critical patent/CN110377381B/en
Publication of CN110377381A publication Critical patent/CN110377381A/en
Application granted granted Critical
Publication of CN110377381B publication Critical patent/CN110377381B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a list refreshing method of an information system. The method comprises the following steps: in a first area where the copy of the first time-consuming task is stored, regularly refreshing the copy of the first time-consuming task to obtain updated data of the first time-consuming task until the first time-consuming task is determined to be completed according to the updated data of the first time-consuming task; assigning data of the first time-consuming task, which is determined to be completed by the first time-consuming task, to the second area to update the original of the first time-consuming task in the second area; rendering an entry in the list of information systems corresponding to the first time-consuming task according to the updated data in the second region. Through the method, the original data of the time-consuming task is not always changed, and only after the original data of the time-consuming task is updated, the entry corresponding to the first time-consuming task with the updated data in the list of the information system is rendered. A list refreshing apparatus of a corresponding information system is also disclosed.

Description

List refreshing method and device of information system
Technical Field
The present invention relates to data processing technologies, and in particular, to a method and an apparatus for refreshing a list in an information system.
Background
Among the many management functions of an information system, lists have been the entry of most functions, among which there are few time-consuming, waiting tasks. Also, a list may have hundreds or even more data. When data needing to be waited for is met, the whole list is refreshed completely in the past consistent method, so that not only network and server resources are occupied, but also great pressure is caused on browser rendering. By the method, the refreshing of partial time-consuming data and the refreshing of the whole page of data are separately carried out, after the whole page of data is obtained, the data needing to be refreshed is screened out, then the partial data is refreshed at regular time again, and the rendering is carried out until all time-consuming tasks are completed.
Frequent refreshing of lists can destabilize complex interfaces and create unnecessary resource overhead, as there are often time consuming tasks in the system, and some list interfaces can take a significant amount of action after a full refresh (e.g., resetting of load bars and paging devices).
Disclosure of Invention
In order to solve the technical problems, the present invention provides a list refreshing method and apparatus for an information system, which can reduce the possibility of the problem that a complex interface becomes unstable due to frequent refreshing and rendering of a list, and reduce unnecessary resource overhead due to frequent refreshing of the list.
In order to achieve the object of the present invention, an embodiment of the present invention provides a method for refreshing a list of an information system, where the method includes:
in a first area where the copy of the first time-consuming task is stored, regularly refreshing the copy of the first time-consuming task to obtain updated data of the first time-consuming task until the first time-consuming task is determined to be completed according to the updated data of the first time-consuming task;
assigning data of the first time-consuming task, which is determined to be completed by the first time-consuming task, to the second area to update the original of the first time-consuming task in the second area;
rendering an entry in the list of information systems corresponding to the first time-consuming task according to the updated data in the second region.
In an optional embodiment, before the step of periodically refreshing the copy of the first time-consuming task, the method further comprises:
storing data of the list display task acquired from the remote server into the second area in which the stored data has been emptied, when a request to acquire data to be displayed in the list is received; the list display task comprises a first time-consuming task;
screening out a first time-consuming task according to the data in the second area;
a copy of the first time consuming task is created in the first region.
In an optional embodiment, the method further comprises:
when the copy of the first time-consuming task is refreshed at regular time so as to acquire updated data of the first time-consuming task, if a request for acquiring data to be displayed in the list is received again, the refresh of the copy of the first time-consuming task is terminated at regular time, and the data of the first area and the second area are emptied;
storing the data of the list display task acquired again from the remote server into a second area in which the stored data has been emptied;
screening out a second time-consuming task according to the data in the second area;
a copy of the second time-consuming task is created in the first region.
In an optional embodiment, after determining that the first time-consuming task is completed according to the updated data of the first time-consuming task, the method further comprises:
the time consuming tasks that have been completed in the first area are deleted.
In an alternative embodiment, the step of filtering out the first time-consuming task based on the data in the second region comprises:
and if the data acquired from the remote server comprises the data of the characteristic data belonging to the first time-consuming task, screening out that the task corresponding to the acquired data is the first time-consuming task.
In order to achieve the object of the present invention, an embodiment of the present invention provides a list refreshing apparatus for an information system, including a memory and a processor,
a memory for storing computer readable instructions;
a processor to execute computer readable instructions to perform operations comprising:
in a first area where the copy of the first time-consuming task is stored, regularly refreshing the copy of the first time-consuming task to obtain updated data of the first time-consuming task until the first time-consuming task is determined to be completed according to the updated data of the first time-consuming task;
assigning data of the first time-consuming task, which is determined to be completed by the first time-consuming task, to the second area to update the original of the first time-consuming task in the second area;
rendering an entry in the list of information systems corresponding to the first time-consuming task according to the updated data in the second region.
In an alternative embodiment, prior to timing the refresh operation for the copy of the first time-consuming task, the processor further performs the following:
storing data of the list display task acquired from the remote server into the second area in which the stored data has been emptied, when a request to acquire data to be displayed in the list is received; the list display task comprises a first time-consuming task;
screening out a first time-consuming task according to the data in the second area;
a copy of the first time consuming task is created in the first region.
In an alternative embodiment, the processor further performs the following:
when the copy of the first time-consuming task is refreshed at regular time so as to acquire updated data of the first time-consuming task, if a request for acquiring data to be displayed in the list is received again, the refresh of the copy of the first time-consuming task is terminated at regular time, and the data of the first area and the second area are emptied;
storing the data of the list display task acquired again from the remote server into a second area in which the stored data has been emptied;
screening out a second time-consuming task according to the data in the second area;
a copy of the second time-consuming task is created in the first region.
In an optional embodiment, after determining that the first time-consuming task is completed according to the updated data of the first time-consuming task, the processor further performs the following operation:
the time consuming tasks that have been completed in the first area are deleted.
In an alternative embodiment, the operation of filtering out the first time-consuming task based on the data in the second region comprises:
and if the data which belongs to the characteristic data of the first time-consuming task is included in the data acquired from the remote server, screening out that the task corresponding to the acquired data is the first time-consuming task.
The embodiment of the invention has the advantages that by means of running the time-consuming task copy, the data of the time-consuming task copy is not always changed, but the time-consuming task copy is assigned by using the data of the finished time-consuming task copy only after the time-consuming task is determined to be finished. Only after the data of the original of the time-consuming task is updated, the entry corresponding to the first time-consuming task in the list of the information system, the data of which is updated, is rendered. In this way, the likelihood of the problem of the list being frequently refreshed and rendered causing a complex interface to become unstable is reduced, and unnecessary resource overhead due to the list being frequently refreshed is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a list refresh method of an information system according to an embodiment of the present invention;
fig. 2 is a block diagram of a list refreshing apparatus of an information system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Among the many management functions of an information system, lists have been the entry of most functions, among which there are few time-consuming, waiting tasks. Also, a list may have hundreds or even more data. When data needing to be waited for is met, the whole list is refreshed completely in the past consistent method, so that not only network and server resources are occupied, but also great pressure is caused on browser rendering. By the method, the refreshing of partial time-consuming data and the refreshing of the whole page of data are carried out separately, after the whole page of data is obtained, the data needing to be refreshed subsequently is screened out, then the partial data is refreshed at regular time again, and the rendering is carried out until all time-consuming tasks are completed.
Frequent refreshing of lists can destabilize complex interfaces and create unnecessary resource overhead, as there are often time consuming tasks in the system, and some list interfaces can take a significant amount of action after a full refresh (e.g., resetting of load bars and paging devices).
In order to solve the above problem, in one aspect, an embodiment of the present invention provides a list refreshing method for an information system, as shown in fig. 1, the method includes steps S101 to S105.
Step S101, in a first area where a copy of a first time consuming task is stored, the copy of the first time consuming task is refreshed at regular time to obtain updated data of the first time consuming task until the first time consuming task is determined to be completed according to the updated data of the first time consuming task.
Wherein the first region is a region for storing a copy of the time consuming task. The first time-consuming task referred to herein does not refer to one time-consuming task, but may be a plurality of time-consuming tasks. When refreshing the plurality of time-consuming tasks in the first area, the time-consuming tasks are refreshed item by item at the same frequency. In one embodiment, the copy of the first time-consuming task is constantly refreshed at regular time to obtain updated data of the first time-consuming task; and when the acquired updated data of the first time-consuming task comprises a mark indicating that the first time-consuming task is completed, determining that the first time-consuming task is completed.
Step S103, assigning the data of the first time consuming task that determines that the first time consuming task is completed to the second area, so as to update the original of the first time consuming task in the second area.
When the first time-consuming task is determined to be completed, the data of the copy of the first time-consuming task is determined to be the data of the first time-consuming task completed by the first time-consuming task, and the data of the copy of the first time-consuming task is assigned to the second area so as to update the original of the first time-consuming task in the second area. The original copy of the first time consuming task is a copy of the first time consuming task that can be used as a formal basis, as opposed to the copy of the first time consuming task, that is, an entry corresponding to the first time consuming task in the list of the information system will be rendered according to the original copy of the first time consuming task. The second area is the area where the original of the time consuming task is stored. The original of the first time consuming task is stored in the second area.
Step S105, rendering an entry corresponding to the first time-consuming task in the list of information systems according to the updated data in the second area.
Since the data of the original of the first time-consuming task in the second area has been updated in step S103, the entry in the list of the information system corresponding to the first time-consuming task is rendered in step S105 from the updated data of the original of the first time-consuming task in the second area. By running the time-consuming task copy, the data of the time-consuming task original is not always changed, but only after the time-consuming task is determined to be finished, the data of the finished time-consuming task copy is used for assigning the time-consuming task original. Only after the data of the original of the time-consuming task is updated, the entry corresponding to the first time-consuming task in the list of the information system, the data of which is updated, is rendered. In this way, the likelihood of the problem of the list being frequently refreshed and rendered causing a complex interface to become unstable is reduced, and unnecessary resource overhead due to the list being frequently refreshed is reduced.
In an optional embodiment, before step S101, the method further comprises:
storing data of the list display task acquired from the remote server into the second area in which the stored data has been emptied, when a request to acquire data to be displayed in the list is received; the list display task comprises a first time-consuming task;
screening out a first time-consuming task according to the data in the second area;
a copy of the first time consuming task is created in the first region.
Based on the above optional embodiment, the step of filtering out the first time-consuming task according to the data in the second area includes:
and if the data acquired from the remote server comprises the data of the characteristic data belonging to the first time-consuming task, screening out that the task corresponding to the acquired data is the first time-consuming task.
Here, the feature data of each time-consuming task may be predetermined, and when the time-consuming tasks are screened, the acquired data may be compared with the predetermined feature data of each time-consuming task, and if the acquired data includes data belonging to the feature data of the first time-consuming task, it may be determined that the task corresponding to the acquired data is the first time-consuming task.
In an optional embodiment, the method further comprises:
when the copy of the first time-consuming task is refreshed at regular time so as to obtain updated data of the first time-consuming task, if a request for obtaining the data to be displayed in the list is received again, the refresh of the copy of the first time-consuming task is stopped at regular time, and the data of the first area and the second area are emptied;
storing the data of the list display task acquired again from the remote server into a second area in which the stored data has been emptied;
screening out a second time-consuming task according to the data in the second area;
a copy of the second time-consuming task is created in the first region.
In an optional embodiment, after determining that the first time-consuming task is completed according to the updated data of the first time-consuming task, the method further comprises:
the time consuming tasks that have been completed in the first area are deleted.
In order to solve the above problem, an embodiment of the present invention provides a list refresh apparatus of an information system, which includes a memory 10 and a processor 20, as shown in fig. 2.
A memory 10 for storing computer readable instructions;
a processor 20 for executing computer readable instructions to perform the following operations:
in a first area where the copy of the first time-consuming task is stored, regularly refreshing the copy of the first time-consuming task to obtain updated data of the first time-consuming task until the first time-consuming task is determined to be completed according to the updated data of the first time-consuming task;
assigning data of the first time-consuming task, which is determined to be completed by the first time-consuming task, to the second area so as to update the original of the first time-consuming task in the second area;
rendering an entry in the list of information systems corresponding to the first time-consuming task according to the updated data in the second region.
The embodiment of the invention has the advantages that by running the time-consuming task copy, the data of the time-consuming task original is not changed all the time, but only after the time-consuming task is determined to be finished, the data of the finished time-consuming task copy is used for assigning the time-consuming task original. Only after the data of the original of the time-consuming task is updated, the entry corresponding to the first time-consuming task in the list of the information system, the data of which is updated, is rendered. In this way, the likelihood of the problem of the list being frequently refreshed and rendered causing a complex interface to become unstable is reduced, and unnecessary resource overhead due to the list being frequently refreshed is reduced.
In an alternative embodiment, prior to timing the refresh operation for the copy of the first time-consuming task, processor 20 further performs the following operations:
storing data of the list display task acquired from the remote server into the second area in which the stored data has been emptied, when a request to acquire data to be displayed in the list is received; the list display task comprises a first time-consuming task;
screening out a first time-consuming task according to the data in the second area;
a copy of the first time consuming task is created in the first region.
In an alternative embodiment, processor 20 also performs the following operations:
when the copy of the first time-consuming task is refreshed at regular time so as to acquire updated data of the first time-consuming task, if a request for acquiring data to be displayed in the list is received again, the refresh of the copy of the first time-consuming task is terminated at regular time, and the data of the first area and the second area are emptied;
storing the data of the list display task acquired from the remote server again into a second area in which the stored data has been emptied;
screening out a second time-consuming task according to the data in the second area;
a copy of the second time-consuming task is created in the first region.
In an alternative embodiment, after determining that the first time-consuming task is completed based on the updated data of the first time-consuming task, the processor 20 further performs the following operations:
the time consuming tasks that have been completed in the first area are deleted.
In an alternative embodiment, the operation of screening out the first time-consuming task based on the data in the second region comprises:
and if the data which belongs to the characteristic data of the first time-consuming task is included in the data acquired from the remote server, screening out that the task corresponding to the acquired data is the first time-consuming task.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for refreshing a list of an information system, comprising:
in a first area where a copy of a first time-consuming task is stored, regularly refreshing the copy of the first time-consuming task to obtain updated data of the first time-consuming task until the first time-consuming task is determined to be completed according to the updated data of the first time-consuming task;
assigning data of the first time-consuming task, which determines that the first time-consuming task is completed, to a second area to update an original of the first time-consuming task in the second area;
rendering an entry in a list of information systems corresponding to the first time-consuming task according to the updated data in the second region.
2. The method of claim 1, wherein prior to the step of timing the refreshing of the copy of the first time-consuming task, the method further comprises:
storing data of the list display task acquired from the remote server into the second area in which the stored data has been emptied, when a request to acquire data to be displayed in the list is received; wherein the list display task comprises the first time consuming task;
screening out a first time-consuming task according to the data in the second area;
creating a copy of the first time consuming task in the first region.
3. The method of claim 1, further comprising:
when the copy of the first time-consuming task is refreshed at regular time so as to obtain updated data of the first time-consuming task, if a request for obtaining the data to be displayed in the list is received again, the refresh of the copy of the first time-consuming task is stopped at regular time, and the data of the first area and the second area are emptied;
storing the data of the list display task acquired again from the remote server into a second area in which the stored data has been emptied;
screening out a second time-consuming task according to the data in the second area;
creating a copy of the second time consuming task in the first region.
4. The method of claim 1, wherein after determining that the first time-consuming task is complete based on the updated data for the first time-consuming task, the method further comprises:
deleting the time-consuming tasks that have been completed in the first region.
5. The method of claim 2, wherein the step of screening out the first time-consuming task based on the data in the second region comprises:
and if the data acquired from the remote server comprises the data of the characteristic data belonging to the first time-consuming task, screening out that the task corresponding to the acquired data is the first time-consuming task.
6. A list refreshing apparatus of an information system includes a memory and a processor,
the memory to store computer readable instructions;
the processor to execute the computer-readable instructions to perform operations comprising:
in a first area where a copy of a first time-consuming task is stored, regularly refreshing the copy of the first time-consuming task to obtain updated data of the first time-consuming task until the first time-consuming task is determined to be completed according to the updated data of the first time-consuming task;
assigning data of the first time-consuming task, which determines that the first time-consuming task is completed, to a second area to update an original of the first time-consuming task in the second area;
rendering an entry in a list of information systems corresponding to the first time-consuming task according to the updated data in the second region.
7. The apparatus of claim 6, wherein prior to the operation of the timing to refresh the copy of the first time-consuming task, the processor is further to:
storing data of the list display task acquired from the remote server into the second area in which the stored data has been emptied, when a request to acquire data to be displayed in the list is received; wherein the list display task comprises the first time consuming task;
screening out a first time-consuming task according to the data in the second area;
creating a copy of the first time-consuming task in the first area.
8. The apparatus of claim 6, wherein the processor further performs the following:
when the copy of the first time-consuming task is refreshed at regular time so as to acquire updated data of the first time-consuming task, if a request for acquiring data to be displayed in a list is received again, the refresh of the copy of the first time-consuming task is terminated at regular time, and the data of the first area and the second area are emptied;
storing the data of the list display task acquired again from the remote server into a second area in which the stored data has been emptied;
screening out a second time-consuming task according to the data in the second area;
creating a copy of the second time consuming task in the first region.
9. The apparatus of claim 6, wherein after determining that the first time-consuming task is complete based on the updated data for the first time-consuming task, the processor further performs the following:
deleting the time-consuming tasks that have been completed in the first area.
10. The apparatus of claim 7, wherein the operation of filtering out a first time-consuming task based on data in the second region comprises:
and if the data acquired from the remote server comprise the data of the characteristic data belonging to the first time-consuming task, screening out that the task corresponding to the acquired data is the first time-consuming task.
CN201910569118.9A 2019-06-27 2019-06-27 List refreshing method and device for information system Active CN110377381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910569118.9A CN110377381B (en) 2019-06-27 2019-06-27 List refreshing method and device for information system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910569118.9A CN110377381B (en) 2019-06-27 2019-06-27 List refreshing method and device for information system

Publications (2)

Publication Number Publication Date
CN110377381A CN110377381A (en) 2019-10-25
CN110377381B true CN110377381B (en) 2022-09-20

Family

ID=68251171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910569118.9A Active CN110377381B (en) 2019-06-27 2019-06-27 List refreshing method and device for information system

Country Status (1)

Country Link
CN (1) CN110377381B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302625B (en) * 2015-06-26 2019-10-25 阿里巴巴集团控股有限公司 Data-updating method, device and related system
CN106790258B (en) * 2017-01-25 2019-09-06 福建天泉教育科技有限公司 A kind of method and system of screening server network request

Also Published As

Publication number Publication date
CN110377381A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
US20180027061A1 (en) Method and apparatus for elastically scaling virtual machine cluster
CN110263275A (en) A kind of method, apparatus, mobile terminal and storage medium accessing webpage
EP3260993A1 (en) File operation method and device
CN108255620B (en) Service logic processing method, device, service server and system
CN108304408B (en) Cache data refreshing method and device
CN110677462A (en) Access processing method, system, device and storage medium for multi-block chain network
CN111125057B (en) Method and device for processing service request and computer system
CN111932656A (en) Method, device and equipment for indexing information of operation diagram
CN105354090A (en) Management method and device of virtual equipment
CN115599300A (en) Task allocation method, device, equipment and medium
CN111913793A (en) Distributed task scheduling method, device, node equipment and system
CN110609807A (en) Method, apparatus, and computer-readable storage medium for deleting snapshot data
CN110377381B (en) List refreshing method and device for information system
CN112328602A (en) Method, device and equipment for writing data into Kafka
CN109167830B (en) Method and device for acquiring monitoring data
CN111126604A (en) Model training method, device, server and storage medium
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
CN114281872A (en) Method, device and equipment for generating distributed serial number and readable storage medium
CN114721876A (en) Data backup method, device and medium
CN114237775A (en) Parallel execution method and device, electronic equipment and storage medium
CN114675954A (en) Task scheduling method and device
CN111858234A (en) Task execution method, device, equipment and medium
CN112860719B (en) Data processing method and device and electronic equipment
CN115174483B (en) Time window based current limiting method, device, server and storage medium
CN115328978B (en) Connection method of connection pool and server

Legal Events

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