CN110377381A - A kind of the list method for refreshing and device of information system - Google Patents
A kind of the list method for refreshing and device of information system Download PDFInfo
- Publication number
- CN110377381A CN110377381A CN201910569118.9A CN201910569118A CN110377381A CN 110377381 A CN110377381 A CN 110377381A CN 201910569118 A CN201910569118 A CN 201910569118A CN 110377381 A CN110377381 A CN 110377381A
- Authority
- CN
- China
- Prior art keywords
- consuming task
- data
- task
- area
- consuming
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/466—Transaction 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 the list method for refreshing of information system.This method comprises: in the first area of copy for being stored with the first consuming task, timing refreshes the copy of the first consuming task, to obtain the data of the update of the first consuming task, until the updated data according to the first consuming task, until determining that the first consuming task is completed;The data assignment of the first consuming task of the first consuming task completion will be determined into second area, to update the original of the first consuming task in the second area;According to updated data in the second area, the corresponding entry of the first consuming task in the list of spatial cue system.By the above-mentioned means, the data of the original of consuming task are not changing always, only after the data of the original of consuming task update, the corresponding entry of the first consuming task that data are had updated in the list of information system can be just rendered.Also disclose the list refreshing apparatus of corresponding information system.
Description
Technical field
The present invention relates to data processing technique, the list method for refreshing and device of espespecially a kind of information system.
Background technique
In numerous management functions of information system, list is always the entrance of most of function, wherein being no lack of has pole
For task that is time-consuming, needing to wait.Meanwhile a list may have up to a hundred even more data.It needs to wait until when encountering
When data, past consistent method is entire list refresh all, does not only take up network, server resource in this way, also can be to clear
Device of looking at rendering causes biggish pressure.By this method, the refreshings of the time-consuming data in part by with the refreshing of whole page data separate into
Row, after whole page data is got, is screened out from it the data for needing subsequent refreshing, then this part number of periodic refreshing again
According to, and rendered, until all consuming tasks are completed.
Due to often there is consuming task in system, some list interfaces can largely be grasped after refresh all again
Make (such as resetting of load item and paging device), therefore frequently refresh list can make complicated interface become unstable, and
Generate unnecessary resource overhead.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides the list method for refreshing and device of information system, can
Reduce and frequently refresh a possibility that becoming unstable problem with the interface of complexity caused by render list, and reduces
The unnecessary resource overhead generated because of frequent refresh list.
In order to reach the purpose of the present invention, the embodiment of the invention provides a kind of list method for refreshing of information system, should
Method includes:
In the first area of copy for being stored with the first consuming task, periodically the copy of the first consuming task is brushed
Newly, first is determined until the updated data according to the first consuming task with the data for obtaining the update of the first consuming task
Until consuming task is completed;
The data assignment for the first consuming task that the first consuming task is completed will be determined into second area, to update the
The original of the first consuming task in two regions;
According to updated data in the second area, the first consuming task is corresponding in the list of spatial cue system
Entry.
It in an alternative embodiment, should before the step of copy of the timing to the first consuming task refreshes
Method further include:
When receiving the request for obtaining the data that will be shown in lists, the column obtained from remote server
Table shows that the data of task are stored into the second area for having emptied stored data;Wherein, list display task includes the
One consuming task;
According to data in the second area, the first consuming task is filtered out;
The copy of the first consuming task is created in the first region.
In an alternative embodiment, this method further include:
Refresh in copy of the timing to the first consuming task, with obtain the first consuming task update data when
It waits, if receiving the request for obtaining the data that will be shown in lists again, terminates timing to the first consuming task
Copy is refreshed, and empties the data of first area and second area;
By the data storage of the list display task obtained again from remote server to having emptied stored data
In second area;
According to data in the second area, the second consuming task is filtered out;
The copy of the second consuming task is created in the first region.
In an alternative embodiment, in the updated data according to the first consuming task, first time-consuming is determined
After business is completed, this method further include:
Delete the consuming task completed in the first region.
In an alternative embodiment, according to data in the second area, the step of filtering out the first consuming task
Include:
If from the data that remote server obtains, the data of the characteristic including belonging to the first consuming task,
Then filtering out the acquired corresponding task of data is the first consuming task.
In order to reach the purpose of the present invention, the embodiment of the invention provides a kind of list refreshing apparatus of information system, packets
Memory and processor are included,
Memory, for storing computer-readable instruction;
Processor, for executing computer-readable instruction, to perform the following operations:
In the first area of copy for being stored with the first consuming task, periodically the copy of the first consuming task is brushed
Newly, first is determined until the updated data according to the first consuming task with the data for obtaining the update of the first consuming task
Until consuming task is completed;
The data assignment for the first consuming task that the first consuming task is completed will be determined into second area, to update the
The original of the first consuming task in two regions;
According to updated data in the second area, the first consuming task is corresponding in the list of spatial cue system
Entry.
In an alternative embodiment, before the operation that copy of the timing to the first consuming task is refreshed, place
Reason device also performs the following operations:
When receiving the request for obtaining the data that will be shown in lists, the column obtained from remote server
Table shows that the data of task are stored into the second area for having emptied stored data;Wherein, list display task includes the
One consuming task;
According to data in the second area, the first consuming task is filtered out;
The copy of the first consuming task is created in the first region.
In an alternative embodiment, processor also performs the following operations:
Refresh in copy of the timing to the first consuming task, with obtain the first consuming task update data when
It waits, if receiving the request for obtaining the data that will be shown in lists again, terminates timing to the first consuming task
Copy is refreshed, and empties the data of first area and second area;
By the data storage of the list display task obtained again from remote server to having emptied stored data
In second area;
According to data in the second area, the second consuming task is filtered out;
The copy of the second consuming task is created in the first region.
In an alternative embodiment, in the updated data according to the first consuming task, first time-consuming is determined
After business is completed, processor is also performed the following operations:
Delete the consuming task completed in the first region.
In an alternative embodiment, according to data in the second area, the operation of the first consuming task is filtered out
Include:
If from the data that remote server obtains, the data of the characteristic including belonging to the first consuming task,
Then filtering out the acquired corresponding task of data is the first consuming task.
The beneficial effect of the embodiment of the present invention is that by way of running the copy of consuming task, consuming task is just
This data are not changing always, but only after assert that consuming task terminates, the time-consuming that Cai Huiyong is over is appointed
The data of the copy of business carry out the original of assignment consuming task.Only after the data of the original of consuming task update, Cai Huixuan
Dye has updated the corresponding entry of the first consuming task of data in the list of information system.In this way, reduce frequently refresh and
The interface of complexity caused by render list becomes a possibility that unstable problem, and reduces because of frequent refresh list
And the unnecessary resource overhead generated.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the list method for refreshing of information system provided in an embodiment of the present invention;
Fig. 2 is the block diagram of the list refreshing apparatus of information system provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
In numerous management functions of information system, list is always the entrance of most of function, wherein being no lack of has pole
For task that is time-consuming, needing to wait.Meanwhile a list may have up to a hundred even more data.It needs to wait until when encountering
When data, past consistent method is entire list refresh all, does not only take up network, server resource in this way, also can be to clear
Device of looking at rendering causes biggish pressure.By this method, the refreshings of the time-consuming data in part by with the refreshing of whole page data separate into
Row, after whole page data is got, is screened out from it the data for needing subsequent refreshing, then this part number of periodic refreshing again
According to, and rendered, until all consuming tasks are completed.
Due to often there is consuming task in system, some list interfaces can largely be grasped after refresh all again
Make (such as resetting of load item and paging device), therefore frequently refresh list can make complicated interface become unstable, and
Generate unnecessary resource overhead.
To solve the above-mentioned problems, on the one hand, the embodiment provides a kind of list refreshing sides of information system
Method, as shown in Figure 1, the method comprising the steps of S101- step S105.
Step S101, in the first area of copy for being stored with the first consuming task, periodically to the first consuming task
Copy is refreshed, to obtain the data of the update of the first consuming task, until the updated number according to the first consuming task
According to until determining that the first consuming task is completed.
Wherein, first area is the region for storing the copy of consuming task.First consuming task mentioned herein is simultaneously
It is non-to refer exclusively to a consuming task, but can be multiple consuming tasks.When the multiple consuming tasks of refreshing in the first region
When, it is that consuming task is refreshed one by one with identical frequency.In one embodiment, the copy of the first consuming task is constantly
Periodic refreshing is carried out, to get the data of the update of the first consuming task;When the update of the first consuming task got
Data in include indicate the first consuming task completed label when, then assert that first task consuming task is complete
At.
Step S103, will determine the first consuming task complete the first consuming task data assignment into second area,
To update the original of the first consuming task in the second area.
When assert that the first consuming task is completed, at this point, the data of the copy of the first consuming task are to determine first
The data for the first consuming task that consuming task is completed, by the data assignment of the copy of the first consuming task at this time to the secondth area
Domain, to update the original of the first consuming task in second area.The original of first consuming task refers to the energy of the first consuming task
It is opposite with the copy of the first consuming task as the portion of formal foundation, that is to say, that, it will just according to the first consuming task
The corresponding entry of the first consuming task in the list of original spatial cue system.Second area is the original for storing consuming task
Region.The original storage of first consuming task is in the second area.
Step S105, according to updated data in the second area, first is time-consuming in the list of spatial cue system
The corresponding entry of task.
Due to having had updated the data of the original of the first consuming task in the second area in step s 103, so
In step s105 according to the updated data of the original of the first consuming task in the second area, render in information system
List in the corresponding entry of the first consuming task.By way of running the copy of consuming task, the original of consuming task
Data are not changing always, but only after assert that consuming task terminates, the consuming task that Cai Huiyong is over
The data of copy carry out the original of assignment consuming task.Only after the data of the original of consuming task update, can just it render
The corresponding entry of the first consuming task of data is had updated in the list of information system.Frequently refresh and render in this way, reducing
The interface of complexity caused by list becomes a possibility that unstable problem, and reduces and produce because of frequent refresh list
Raw unnecessary resource overhead.
In an alternative embodiment, before step S101, this method further include:
When receiving the request for obtaining the data that will be shown in lists, the column obtained from remote server
Table shows that the data of task are stored into the second area for having emptied stored data;Wherein, list display task includes the
One consuming task;
According to data in the second area, the first consuming task is filtered out;
The copy of the first consuming task is created in the first region.
The step of the first consuming task is filtered out according to data in the second area based on above optional embodiment
Suddenly, comprising:
If from the data that remote server obtains, the data of the characteristic including belonging to the first consuming task,
Filtering out the acquired corresponding task of data is the first consuming task.
Herein, it may be predetermined that the characteristic of each consuming task, and when screening consuming task, it can be with
Acquired data are compared with the characteristic of predetermined each consuming task, if acquired data include
Belong to the data of the characteristic of the first consuming task, then can determine that the acquired corresponding task of data is first time-consuming
Business.
In an alternative embodiment, this method further include:
Refresh in copy of the timing to the first consuming task, with obtain the first consuming task update data when
It waits, if receiving the request for obtaining the data that will be shown in lists again, terminates timing to the first consuming task
Copy is refreshed, and empties the data of first area and second area;
By the data storage of the list display task obtained again from remote server to having emptied stored data
In second area;
According to data in the second area, the second consuming task is filtered out;
The copy of the second consuming task is created in the first region.
In an alternative embodiment, in the updated data according to the first consuming task, first time-consuming is determined
After business is completed, this method further include:
Delete the consuming task completed in the first region.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of list refreshing apparatus of information system, such as Fig. 2 institute
Show, which includes memory 10 and processor 20.
Memory 10, for storing computer-readable instruction;
Processor 20, for executing computer-readable instruction, to perform the following operations:
In the first area of copy for being stored with the first consuming task, periodically the copy of the first consuming task is brushed
Newly, first is determined until the updated data according to the first consuming task with the data for obtaining the update of the first consuming task
Until consuming task is completed;
The data assignment for the first consuming task that the first consuming task is completed will be determined into second area, to update the
The original of the first consuming task in two regions;
According to updated data in the second area, the first consuming task is corresponding in the list of spatial cue system
Entry.
The beneficial effect of the embodiment of the present invention is that by way of running the copy of consuming task, consuming task is just
This data are not changing always, but only after assert that consuming task terminates, the time-consuming that Cai Huiyong is over is appointed
The data of the copy of business carry out the original of assignment consuming task.Only after the data of the original of consuming task update, Cai Huixuan
Dye has updated the corresponding entry of the first consuming task of data in the list of information system.In this way, reduce frequently refresh and
The interface of complexity caused by render list becomes a possibility that unstable problem, and reduces because of frequent refresh list
And the unnecessary resource overhead generated.
In an alternative embodiment, before the operation that copy of the timing to the first consuming task is refreshed, place
Reason device 20 also performs the following operations:
When receiving the request for obtaining the data that will be shown in lists, the column obtained from remote server
Table shows that the data of task are stored into the second area for having emptied stored data;Wherein, list display task includes the
One consuming task;
According to data in the second area, the first consuming task is filtered out;
The copy of the first consuming task is created in the first region.
In an alternative embodiment, processor 20 also performs the following operations:
Refresh in copy of the timing to the first consuming task, with obtain the first consuming task update data when
It waits, if receiving the request for obtaining the data that will be shown in lists again, terminates timing to the first consuming task
Copy is refreshed, and empties the data of first area and second area;
By the data storage of the list display task obtained again from remote server to having emptied stored data
In second area;
According to data in the second area, the second consuming task is filtered out;
The copy of the second consuming task is created in the first region.
In an alternative embodiment, in the updated data according to the first consuming task, first time-consuming is determined
After business is completed, processor 20 is also performed the following operations:
Delete the consuming task completed in the first region.
In an alternative embodiment, according to data in the second area, the operation of the first consuming task is filtered out,
Include:
If from the data that remote server obtains, the data of the characteristic including belonging to the first consuming task,
Then filtering out the acquired corresponding task of data is the first consuming task.
Although disclosed herein embodiment it is as above, above-mentioned content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (10)
1. a kind of list method for refreshing of information system characterized by comprising
In the first area of copy for being stored with the first consuming task, periodically the copy of first consuming task is brushed
Newly, to obtain the data of the update of first consuming task, until the updated data according to first consuming task,
Until determining that first consuming task is completed;
The data assignment for first consuming task that determination first consuming task is completed is into second area, to update
The original of the first consuming task in the second area;
According to updated data in the second area, the first consuming task described in the list of spatial cue system is corresponding
Entry.
2. the method according to claim 1, wherein the timing to the copy of first consuming task into
Before the step of row refreshes, the method also includes:
When receiving the request for obtaining the data that will be shown in lists, the list obtained from remote server is shown
Show that the data of task are stored into the second area for having emptied stored data;Wherein, list display task includes described
One consuming task;
According to data in the second region, the first consuming task is filtered out;
The copy of first consuming task is created in the first area.
3. the method according to claim 1, wherein the method also includes:
Refresh in copy of the timing to first consuming task, to obtain the data of the update of first consuming task
When, if receiving the request for obtaining the data that will be shown in lists again, timing is terminated to first consumption
When task copy refreshed, and empty the data of the first area and the second area;
By the data storage of the list display task obtained again from remote server to having emptied the second of stored data
In region;
According to data in the second region, the second consuming task is filtered out;
The copy of second consuming task is created in the first area.
4. the method according to claim 1, wherein in the updated number according to first consuming task
According to, after determining that first consuming task is completed, the method also includes:
Delete the consuming task completed in the first area.
5. according to the method described in claim 2, it is characterized in that, the data of the basis in the second region, screening
The step of first consuming task out, comprising:
If from the data that the remote server obtains, the number of the characteristic including belonging to first consuming task
According to then filtering out the acquired corresponding task of data is the first consuming task.
6. a kind of list refreshing apparatus of information system, including memory and processor,
The memory, for storing computer-readable instruction;
The processor, for executing the computer-readable instruction, to perform the following operations:
In the first area of copy for being stored with the first consuming task, periodically the copy of first consuming task is brushed
Newly, to obtain the data of the update of first consuming task, until the updated data according to first consuming task,
Until determining that first consuming task is completed;
The data assignment for first consuming task that determination first consuming task is completed is into second area, to update
The original of the first consuming task in the second area;
According to updated data in the second area, the first consuming task described in the list of spatial cue system is corresponding
Entry.
7. device according to claim 6, which is characterized in that the timing to the copy of first consuming task into
Before the operation that row refreshes, the processor is also performed the following operations:
When receiving the request for obtaining the data that will be shown in lists, the list obtained from remote server is shown
Show that the data of task are stored into the second area for having emptied stored data;Wherein, list display task includes described
One consuming task;
According to data in the second region, the first consuming task is filtered out;
The copy of first consuming task is created in the first area.
8. device according to claim 6, which is characterized in that the processor also performs the following operations:
Refresh in copy of the timing to first consuming task, to obtain the data of the update of first consuming task
When, if receiving the request for obtaining the data that will be shown in lists again, timing is terminated to first consumption
When task copy refreshed, and empty the data of the first area and the second area;
By the data storage of the list display task obtained again from remote server to having emptied the second of stored data
In region;
According to data in the second region, the second consuming task is filtered out;
The copy of second consuming task is created in the first area.
9. device according to claim 6, which is characterized in that in the updated number according to first consuming task
According to after determining that first consuming task is completed, the processor is also performed the following operations:
Delete the consuming task completed in the first area.
10. device according to claim 7, which is characterized in that the data of the basis in the second region, screening
The operation of first consuming task out, comprising:
If from the data that the remote server obtains, the number of the characteristic including belonging to first consuming task
According to then filtering out the acquired corresponding task of data is the first consuming task.
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 true CN110377381A (en) | 2019-10-25 |
CN110377381B 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) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302625A (en) * | 2015-06-26 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Data-updating method, device and related system |
CN106790258A (en) * | 2017-01-25 | 2017-05-31 | 福建天泉教育科技有限公司 | A kind of method and system of screening server network request |
-
2019
- 2019-06-27 CN CN201910569118.9A patent/CN110377381B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302625A (en) * | 2015-06-26 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Data-updating method, device and related system |
CN106790258A (en) * | 2017-01-25 | 2017-05-31 | 福建天泉教育科技有限公司 | A kind of method and system of screening server network request |
Also Published As
Publication number | Publication date |
---|---|
CN110377381B (en) | 2022-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9619275B2 (en) | Data processing method, apparatus and mobile terminal | |
US10606806B2 (en) | Method and apparatus for storing time series data | |
US10152773B2 (en) | Creating a blurred area for an image to reuse for minimizing blur operations | |
CN104572845B (en) | Document distribution method, device, equipment and system | |
WO2019047441A1 (en) | Communication optimization method and system | |
US8464269B2 (en) | Handling and reporting of object state transitions on a multiprocess architecture | |
CN104423982B (en) | The processing method and processing equipment of request | |
CN110445828B (en) | Data distributed processing method based on Redis and related equipment thereof | |
CN112363913B (en) | Parallel test task scheduling optimizing method, device and computing equipment | |
WO2023201947A1 (en) | Methods, systems, and storage media for task dispatch | |
CN109062697A (en) | It is a kind of that the method and apparatus of spatial analysis service are provided | |
US20130311480A1 (en) | Sensor data locating | |
CN103019859A (en) | Method and system for calling service request | |
CN103377292B (en) | Database result set caching method and device | |
CN106021512A (en) | Page refresh method and apparatus | |
CN109543127B (en) | Page refreshing method, device and equipment and readable storage medium | |
CN109710679A (en) | Data pick-up method and device | |
CN106095417A (en) | A kind of prospect Application Program Interface refresh synchronization method and system | |
US20230325242A1 (en) | Fast shutdown of large scale-up processes | |
CN110377381A (en) | A kind of the list method for refreshing and device of information system | |
CN116304079A (en) | Timing-based profile data management method, apparatus, and readable storage medium | |
CN107193891B (en) | Content recommendation method and device | |
CN109240773A (en) | Solve method, apparatus, terminal and the readable storage medium storing program for executing of room string data | |
CN111209311A (en) | Method and apparatus for processing data | |
CN114048847A (en) | Method, device and equipment for caching graph neural network data and storage medium |
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 |