CN113868315A - Data rolling loading method, device, equipment and storage medium - Google Patents
Data rolling loading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113868315A CN113868315A CN202111146164.1A CN202111146164A CN113868315A CN 113868315 A CN113868315 A CN 113868315A CN 202111146164 A CN202111146164 A CN 202111146164A CN 113868315 A CN113868315 A CN 113868315A
- Authority
- CN
- China
- Prior art keywords
- data
- page
- loading
- supplemented
- time
- 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
- 238000011068 loading method Methods 0.000 title claims abstract description 160
- 238000005096 rolling process Methods 0.000 title claims abstract description 65
- 238000000034 method Methods 0.000 claims abstract description 82
- 238000012217 deletion Methods 0.000 claims abstract description 75
- 230000037430 deletion Effects 0.000 claims abstract description 75
- 230000008569 process Effects 0.000 claims abstract description 59
- 238000004590 computer program Methods 0.000 claims description 10
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000036316 preload Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 9
- 230000009471 action Effects 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
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
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a data rolling loading method, which can determine the deleted quantity of loaded data in the rolling loading process according to a deletion time identifier and deletion position information in data deletion information, then pre-loads data of a page during loading, and takes out the same quantity of data from the end of the data of the page, wherein the taken out data is the data which cannot be displayed when the next page is loaded. At the moment, when the next page is loaded again, the data which is taken out is loaded preferentially according to the quantity when the next page is loaded, and the accuracy of data display can be ensured. The invention also provides a data rolling loading device, data rolling loading equipment and a computer readable storage medium, and the data rolling loading device, the data rolling loading equipment and the computer readable storage medium also have the beneficial effects.
Description
Technical Field
The present invention relates to the field of data rolling loading technologies, and in particular, to a data rolling loading method, a data rolling loading apparatus, a data rolling loading device, and a computer-readable storage medium.
Background
The current scheme is mainly to monitor the behaviors by monitoring the scrolling operation of a user on a data display interface, such as mouse scrolling, keyboard up-down key scrolling or touch disk triggered scrolling, or scrolling of a scroll bar on a dragging interface, and the like, judge whether the scrolling operation scrolls to the bottom of an interface container displaying data, and if the scrolling operation reaches the bottom, send an HTTP (Hypertext Transfer Prtcl, Hypertext Transfer protocol) request to tell the database, take the data of the next page number, and splice the data after taking the data and the data which has been taken last time.
Since the paging strategy of the rolling load is real-time, when the operation on the interface needs to load more data, two key information need to be informed to the database: page number and how much data a page contains. For example, a second page of data is needed to be obtained, where one page includes 20 pieces of data, and at this time, querying the database will group all the data at that time according to 20 pieces of data per page, and then take the second group, that is, the second page of data, and return it to the interface.
Since the scheme of rolling loading is real-time query, the main disadvantage of the prior art scheme is that there is a defect in obtaining data accuracy. For example, if data is deleted halfway during browsing, the data in the database may change, and the database may be paged in real time, which may cause the data displayed on the interface to be missing. Therefore, how to provide a scheme for improving the accuracy of data acquisition in an interactive mode of maintaining rolling loading is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a data rolling loading method which can improve the accuracy of data acquisition in an interactive mode of maintaining rolling loading; the invention also provides a data rolling loading device, data rolling loading equipment and a computer readable storage medium, which can improve the accuracy of data acquisition under the condition of maintaining the interactive mode of rolling loading.
In order to solve the above technical problem, the present invention provides a data rolling loading method, including:
acquiring data deletion information; the data deleting information comprises a deleting time identifier when the data is deleted and deleting position information of the deleted data;
determining the number of deleted loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the number as the number to be supplemented;
acquiring a page turning-down instruction;
re-acquiring data required to be displayed on the current page according to the page-down instruction, and selecting data with the quantity equal to the quantity to be supplemented from back to front as data to be supplemented;
and filling the data to be supplemented to the front end of the page to be queried, and continuously loading the data on the page to be queried according to the downward page turning instruction.
Optionally, the re-obtaining the data required to be displayed on the current page according to the page-down instruction, and selecting data whose quantity is equal to the quantity to be supplemented from back to front as data to be supplemented includes:
and when the quantity to be supplemented is larger than zero, re-acquiring the data required to be displayed on the current page according to the downward page turning instruction, and selecting the data with the quantity equal to the quantity to be supplemented from back to front as the data to be supplemented.
Optionally, the determining, according to the deletion time identifier and the deletion position information, the number of deleted loaded data in the browsing process, and the recording as the number to be supplemented includes:
and comparing the deletion time identifier with the first loading time identifier in the browsing process, determining the deleted quantity of the loaded data in the browsing process by combining the deletion position information, and recording the deleted quantity as the quantity to be supplemented.
Optionally, the method further includes:
acquiring data adding information; the data adding information comprises an adding time identifier when data is added;
in the browsing process, when the data is loaded for the first time, taking the data with the time mark before the time of loading the data for the first time as the original data according to the time of loading the data for the first time and the adding time mark, and carrying out page loading on the original data;
and loading data on the page to be inquired based on the original data according to the downward page turning instruction.
Optionally, after the obtaining the data addition information, the method further includes:
when a first page loading instruction is obtained, updating the time for loading the data for the first time in the browsing process to be the current time for loading the first page data, and taking the data with the added time mark before the updated time for loading the data for the first time as original data to update the original data;
and after updating the original data, loading first page data according to the first page loading instruction.
Optionally, after the obtaining the data addition information, the method further includes:
and reminding the user of new data addition on the current page.
Optionally, the method further includes:
and when the length of the screen occupied by the data deleted from the current page to the data not displayed on the current page is less than a first threshold value, loading a preset amount of data at the tail of the current page according to the sequence of the data.
The invention also provides a data rolling loading device, which comprises:
the acquisition module is used for acquiring data deletion information; the data deleting information comprises a deleting time identifier when the data is deleted and deleting position information of the deleted data;
the quantity determining module is used for determining the quantity of the deleted loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the quantity as the quantity to be supplemented;
the instruction acquisition module is used for acquiring a page-down instruction;
the data determining module is used for re-acquiring the data required to be displayed on the current page according to the page-down instruction, and selecting the data with the quantity equal to the quantity to be supplemented from back to front as the data to be supplemented;
and the compensation module is used for filling the data to be supplemented to the front end of the page to be queried and continuously loading the data on the page to be queried according to the downward page turning instruction.
The invention also provides a data rolling loading device, which comprises:
a memory: for storing a computer program;
a processor: for implementing the steps of the data rolling loading method according to any one of the above when the computer program is executed.
The invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the data rolling loading method according to any one of the above.
The invention provides a data rolling loading method, which comprises the steps of obtaining data deleting information; the data deleting information comprises a deleting time identifier when the data is deleted and deleting position information of the deleted data; determining the number of deleted loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the number as the number to be supplemented; acquiring a page turning-down instruction; the data required to be displayed on the current page are obtained again according to the page turning-down instruction, and the data with the quantity equal to the quantity to be supplemented are selected from back to front to serve as the data to be supplemented; and filling the data to be supplemented to the front end of the page to be queried, and continuously loading the data on the page to be queried according to the page-down instruction.
The number of the deleted loaded data in the rolling loading process can be determined according to the deletion time identification and the deletion position information in the data deletion information, then the data of the current page is pre-loaded during loading, the same number of data are taken out from the end of the data of the current page, and the taken out data are data which cannot be displayed when the next page is loaded. At the moment, when the next page is loaded again, the data which is taken out is loaded preferentially according to the quantity when the next page is loaded, and the accuracy of data display can be ensured.
The invention also provides a data rolling loading device, data rolling loading equipment and a computer readable storage medium, which also have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating a prior art page display after deleting previous data during a scroll load process;
fig. 2 is a flowchart of a data rolling loading method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a page display after adding data during a scroll load process in the prior art;
fig. 4 is a flowchart of a specific data rolling loading method according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a data scrolling loading device according to an embodiment of the present invention;
fig. 6 is a block diagram of a data scrolling loading device according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a data rolling loading method. In the prior art, data is deleted midway during browsing, which may cause changes in the data of the database, and certainly, the real-time paging of the database may be inconsistent, and the final result may cause data displayed on the interface to be missing. Referring to fig. 1, fig. 1 is a schematic diagram illustrating a page display after deleting previous data in a scroll loading process in the prior art. Referring to fig. 1, before data is added and deleted, the database has 6 pieces of data in total, 3 pieces of data per page, and there are two pages of data, and the current user acquires the first page of data, and displays data 1, 2, and 3; even after deletion, the rolling load gets more data, which is to be taken to data 4, 5, 6. However, after the deletion operation occurs, the database becomes the right diagram in fig. 1, and at this time, the pages are changed into data 4, 5, which is divided into the first page, and the second page has only data 6, so that the second page data taken by the user has only data 6, and obviously, the missing of data 4, 5 shows.
The data rolling loading method provided by the invention comprises the steps of acquiring data deletion information; the data deleting information comprises a deleting time identifier when the data is deleted and deleting position information of the deleted data; determining the number of deleted loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the number as the number to be supplemented; acquiring a page turning-down instruction; the data required to be displayed on the current page are obtained again according to the page turning-down instruction, and the data with the quantity equal to the quantity to be supplemented are selected from back to front to serve as the data to be supplemented; and filling the data to be supplemented to the front end of the page to be queried, and continuously loading the data on the page to be queried according to the page-down instruction.
The number of the deleted loaded data in the rolling loading process can be determined according to the deletion time identification and the deletion position information in the data deletion information, then the data of the current page is pre-loaded during loading, the same number of data are taken out from the end of the data of the current page, and the taken out data are data which cannot be displayed when the next page is loaded. At the moment, when the next page is loaded again, the data which is taken out is loaded preferentially according to the quantity when the next page is loaded, and the accuracy of data display can be ensured.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 2, fig. 2 is a flowchart of a data rolling loading method according to an embodiment of the present invention.
Referring to fig. 2, in the embodiment of the present invention, a data scrolling loading method includes:
s101: and acquiring data deletion information.
In the embodiment of the present invention, the data deletion information includes a deletion time identifier when deleting data and deletion position information of deleted data. That is, in the embodiment of the present invention, when a certain data in the database is deleted, data deletion information is issued at the same time. The data deleting information specifically includes the time for deleting the data, namely, a deleting time identifier; and the position of the deleted data, for example, the number of pieces of deleted data, i.e., deletion position information. The data deletion information is information describing deleted data from a space dimension and a time dimension, and specific content of the data deletion information may be set according to an actual situation, which is not specifically limited herein. In general, the deletion time is identified as a time stamp of the deletion data.
S102: and determining the deleted quantity of the loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the deleted quantity as the quantity to be supplemented.
In the browsing process, that is, the browsing of the user, all processes from the first page loading to the present, specifically browsing in the browsing process, that is, loading a plurality of pages, or only loading the current page, may be performed, and is not specifically limited herein according to the specific situation. It should be noted that the loaded data does not only include data whose value is already loaded, but includes all data whose number of pages is less than the current number of pages. That is, if the browsing process is started from the third page, the data corresponding to the first page and the second page are also regarded as the loaded data in the embodiment of the present invention.
Because the unloaded data with the page number larger than the current page number does not influence the page display when some data in the unloaded data is deleted. Therefore, in this step, the number of deleted loaded data in the browsing process is specifically determined according to the deletion time identifier and the deletion position information. Specifically, this number is recorded as the number to be replenished in this step.
It should be noted that this step may also be executed after S103, that is, after the page down instruction is acquired, the amount to be replenished is calculated. In this case, the step may specifically be: and determining the quantity of the deleted loaded data in the browsing process based on the deletion time identifier and the deletion position information according to the downward page turning instruction, and recording the quantity as the quantity to be supplemented.
It should be further noted that, the present step is generally embodied as: and comparing the deletion time identifier with the first loading time identifier in the browsing process, determining the deleted quantity of the loaded data in the browsing process by combining the deletion position information, and recording the deleted quantity as the quantity to be supplemented. That is, in the embodiment of the present invention, when a certain page is loaded for the first time in the browsing process, a corresponding first loading time identifier, which is usually a first loading time stamp, is generated. In this step, the deletion time identifier in the data deletion information is compared with the first loading time identifier, and the deleted position information is combined to specifically determine the deleted number of the loaded data in the browsing process, and the deleted number is recorded as the number to be supplemented.
S103: and acquiring a page-down instruction.
In this step, the page down command is usually a user dragging a scroll bar to the bottom, or a command input through a preset button in the page, which is not specifically limited herein as the case may be. The page turning-down instruction represents that the user needs to load the data of the next page, and correspondingly, in the subsequent step, the data of the next page needs to be loaded according to the specific page number of the next page and the specific number of data pieces needing to be displayed on the page.
S104: and re-acquiring the data required to be displayed on the current page according to the page-down instruction, and selecting the data with the quantity equal to the quantity to be supplemented from back to front as the data to be supplemented.
In this step, after the page down instruction is obtained, the data loaded on the current page is reloaded, that is, the data required to be displayed on the current page is obtained again. Then, the last n pieces of data are selected from the reloaded current page, where n is equal to the number to be supplemented determined in S102. That is, in this step, the data whose amount is equal to the amount to be supplemented is selected from back to front as the data to be supplemented. It should be noted that the data to be supplemented is data that may be erased in the prior art and cannot be normally displayed on the next page.
It should be noted that this step generally needs to be executed when the amount to be supplemented is not zero, that is, this step generally includes: and when the quantity to be supplemented is not zero, re-acquiring the data required to be displayed on the current page according to the downward page turning instruction, and selecting the data with the quantity equal to the quantity to be supplemented from back to front as the data to be supplemented. When the number to be supplemented is zero, the corresponding data can be directly loaded according to the number of pages of the next page and the specific displayed data number of the next page by referring to the prior art. Thereby avoiding redundant steps to be performed when no loaded data is deleted.
It should be emphasized that, when the current page is reloaded, the data in the current page is only loaded according to the number of pages corresponding to the current page and the number of data pieces that can be actually loaded by the current page, without referring to the number to be supplemented. Correspondingly, in the browsing process, the number to be supplemented can be continuously accumulated.
S105: and filling the data to be supplemented to the front end of the page to be queried, and continuously loading the data on the page to be queried according to the page-down instruction.
And the page to be inquired is the next page to be displayed according to the page down turning instruction. In this step, the obtained data to be supplemented is filled to the front end of the page to be queried, and data continues to be loaded in the remaining space of the page to be queried in sequence, so as to fill the whole page to be queried. In general, when a page to be queried is loaded, data to be supplemented is filled to the front end of the page to be queried first, and then the number of pages corresponding to the page to be queried and the number of remaining loaded data of the page to be queried are sent to a database, so that loading of all data of the page to be queried is completed.
The data rolling loading method provided by the embodiment of the invention comprises the steps of acquiring data deletion information; the data deleting information comprises a deleting time identifier when the data is deleted and deleting position information of the deleted data; determining the number of deleted loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the number as the number to be supplemented; acquiring a page turning-down instruction; the data required to be displayed on the current page are obtained again according to the page turning-down instruction, and the data with the quantity equal to the quantity to be supplemented are selected from back to front to serve as the data to be supplemented; and filling the data to be supplemented to the front end of the page to be queried, and continuously loading the data on the page to be queried according to the page-down instruction.
The number of the deleted loaded data in the rolling loading process can be determined according to the deletion time identification and the deletion position information in the data deletion information, then the data of the current page is pre-loaded during loading, the same number of data are taken out from the end of the data of the current page, and the taken out data are data which cannot be displayed when the next page is loaded. At the moment, when the next page is loaded again, the data which is taken out is loaded preferentially according to the quantity when the next page is loaded, and the accuracy of data display can be ensured.
The following embodiments of the present invention will be described in detail with reference to a specific example of a data scrolling loading method provided by the present invention.
In the prior art, since the data returned to the interface each time the page is paged is not invariable, the data source grouped based on the page is constantly changed and may be increased. That is, even if the database is informed of the same page number and how much data is contained in each page, the results returned twice may not be the same because the number of data sources to be grouped increases, resulting in the different data contained in the paging group. Obviously, in such a scenario, the original page containing data is confused, and the data displayed on the interface may be duplicated.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a page display after adding data in a scroll loading process in the prior art. Referring to fig. 3, after data is newly added in the middle, the newly added data is usually at the initial position of the whole database in the actual display process, i.e. the data position corresponding to the first page. As can be seen from fig. 3, the database condition before adding data is shown on the left, which is total 6 pieces of data, and assuming that the user performs paging according to 3 pieces of data per page, the user has already obtained the first page of data, and "data 1, 2, 3" is shown on the interface, and two pieces of data a, B are added to the subsequent database, but the user also performs rolling loading on the original interface to obtain the data of the second page, and at this time, based on paging of the database condition of the right image, the data of the second page is data 2, 3, 4, and obviously, at this time, data 2, 3 appears on the interface repeatedly. In the following embodiments of the invention, the problem of repeated display of data can be solved for the above process.
Referring to fig. 4, fig. 4 is a flowchart illustrating a specific data rolling loading method according to an embodiment of the present invention.
Referring to fig. 4, in the embodiment of the present invention, a data scrolling loading method includes:
s201: and acquiring data adding information.
In the embodiment of the present invention, the data addition information includes an addition time identifier when data is added. Similar to the data deletion information, the data addition information is specifically information generated after the data is newly added to the database, and the information at least needs to include a time identifier when the data is added to the database, that is, an addition time identifier. Typically, the time stamp is a time stamp of the data added to the database. The specific content of the data addition information may be set according to the actual situation, and is not limited specifically herein.
S202: in the browsing process, when data is loaded for the first time, according to the time of loading the data for the first time and the adding time mark, the data with the adding time mark before the time of loading the data for the first time is used as the raw data, and paging loading is carried out on the raw data.
In this step, when a certain browsing starts, that is, when data is first loaded in the browsing, a corresponding time for first loading the data is generated, and the time is usually recorded as a first loading time identifier. In this step, the data in the database is divided into original data according to the time of first loading the data, i.e. the first loading time identifier, the original data, i.e. the data with the adding time between the times of first loading the data, is the original data, i.e. the adding time identifier corresponding to each original data is before the first loading time identifier. And the newly added data in the database in the browsing process is dispatched outside the original data according to the adding time mark, so that the influence of the newly added data in the database in the browsing process on the browsing process is avoided.
S203: and acquiring a page-down instruction.
This step is substantially the same as S103 in the above embodiment of the present invention, and for details, reference is made to the above embodiment of the present invention, which is not repeated herein.
S204: and loading data on the page to be inquired based on the original data according to the downward page turning instruction.
In this step, data is loaded on the page to be queried based on the original data range determined in S202 according to the page down instruction, and the specific loading process may refer to the prior art and is not described herein again. It should be noted that, in the embodiment of the present invention, the newly added data is not counted as the loaded data, and the loaded data specifically belongs to a part of the original data that has been locked. It is also emphasized that, when the amount to be supplemented is calculated in S209 described below, data outside the above-described original data range in the database is not counted.
S205: when a first page loading instruction is obtained, updating the time of loading data for the first time in the browsing process to the current time of loading the first page data, and taking the data with the added time mark before the updated time of loading the data for the first time as the original data to update the original data.
When a user wants to load data of a first page, a first page load instruction is input. In this step, when the first page loading instruction is obtained, firstly, the time for loading the data for the first time in the browsing process, that is, the first loading time identifier is updated to the time for loading the first page data at present, that is, the current time; and meanwhile, according to the adding time mark of each data, using the data before the time of the updated first loading data in the database as the original data, namely using the data added before the updated first loading time mark in the database as the original data, so as to realize the updating of the original data.
S206: after updating the original data, the first page data is loaded according to a first page load instruction.
In this step, after the original data is updated, the first page data is loaded according to the first page loading instruction, so that the data added in the database in the last browsing process can be loaded in the first page.
Before S205, the following steps may be further included: and reminding the user of new data addition on the current page. That is, in this step, after the obtained data deletion information is received in the browsing process, this step may be specifically executed, that is, when there is data addition in the browsing process, the user may be prompted to have new data addition on the current page, and specifically, the user may be prompted in a pop-up window or pop-up bubble manner.
S207: and acquiring data deletion information.
S208: and determining the deleted quantity of the loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the deleted quantity as the quantity to be supplemented.
S209: and re-acquiring the data required to be displayed on the current page according to the page-down instruction, and selecting the data with the quantity equal to the quantity to be supplemented from back to front as the data to be supplemented.
S210: and filling the data to be supplemented to the front end of the page to be queried, and continuously loading the data on the page to be queried according to the page-down instruction.
S207 to S210 are substantially the same as S101 to S102 and S104 to S105 in the above embodiments, and for details, reference is made to the above embodiments and no further description is given here.
Specifically, in the embodiment of the present invention, the method may further include: and when the length of the screen occupied by the data deleted from the current page to the data not displayed on the current page is less than a first threshold value, loading a preset amount of data at the tail of the current page according to the sequence of the data.
Specifically, in the embodiment of the present invention, the user may also delete part of the data in the current page. In this step, when the user deletes data in the current page, which causes the length of the screen occupied by the data not displayed in the current page to be smaller than the first threshold, that is, the length of the data not displayed is too short, a preset amount of data may be loaded at the tail of the current page according to the sequence of the data, that is, the data displayed in the current page is supplemented, where the loaded data is usually the data of the next page.
When the length of the data not displayed is too short, it is extremely easy to cause or may already cause the situation that the page side scroll bar disappears. In order to facilitate the operation of a user and the loading of the next page of data by dragging the scroll bar, the data is supplemented in the step, the data is supplemented to the tail part specifically, and the preset amount of data is loaded at the tail part of the current page according to the sequence of the data. The preset amount of the supplementary data may be set according to actual conditions, and is not limited specifically herein. The first threshold may be zero or any value, and may specifically be a length value or a number of pieces of data, which is not specifically limited herein as the case may be. It should be noted that the data amount reloaded in this step is not counted as the amount to be supplemented in the subsequent step, so as to ensure that the data is not repeatedly displayed.
According to the data rolling loading method provided by the embodiment of the invention, data display errors can be avoided no matter data increase or data decrease occurs in the browsing process, and a user can be ensured to browse data completely and smoothly.
In the following, a data rolling loading device provided by an embodiment of the present invention is introduced, and the data rolling loading device described below and the data rolling loading method described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a block diagram illustrating a data scrolling loading device according to an embodiment of the present invention. Referring to fig. 5, the data scroll loading apparatus may include:
an obtaining module 100, configured to obtain data deletion information; the data deletion information includes a deletion time identifier when the data is deleted and deletion position information of the deleted data.
And the quantity determining module 200 is configured to determine, according to the deletion time identifier and the deletion position information, a quantity of deleted loaded data in the browsing process, and record the quantity as a quantity to be supplemented.
The instruction obtaining module 300 is configured to obtain a page down instruction.
And the data determining module 400 is configured to reacquire data that needs to be displayed on the current page according to the page down instruction, and select data, the quantity of which is equal to the quantity to be supplemented, from back to front as data to be supplemented.
And the compensation module 500 is configured to fill the data to be supplemented to the front end of the page to be queried, and continue to load data on the page to be queried according to the downward page turning instruction.
Preferably, in the embodiment of the present invention, the data determining module 400 is specifically configured to:
and when the quantity to be supplemented is larger than zero, re-acquiring the data required to be displayed on the current page according to the downward page turning instruction, and selecting the data with the quantity equal to the quantity to be supplemented from back to front as the data to be supplemented.
Preferably, in the embodiment of the present invention, the quantity determining module 200 is specifically configured to:
and comparing the deletion time identifier with the first loading time identifier in the browsing process, determining the deleted quantity of the loaded data in the browsing process by combining the deletion position information, and recording the deleted quantity as the quantity to be supplemented.
Preferably, in the embodiment of the present invention, the method further includes:
the adding information acquisition module is used for acquiring data adding information; the data adding information comprises an adding time identifier when data is added;
the raw data module is used for paging loading the raw data according to the time for loading the data for the first time and the adding time identifier when the data is loaded for the first time in the browsing process;
and the original data loading module is used for loading data on the page to be inquired based on the original data according to the downward page turning instruction.
Preferably, in the embodiment of the present invention, the method further includes:
and the original data updating module is used for updating the time of loading the data for the first time in the browsing process to the current time of loading the first page data when a first page loading instruction is acquired, and taking the data with the added time mark before the updated time of loading the data for the first time as original data so as to update the original data.
And the first page loading module is used for loading the first page data according to the first page loading instruction after the original data is updated.
Preferably, in the embodiment of the present invention, the method further includes:
and the reminding module is used for reminding the user of adding new data on the current page.
Preferably, in the embodiment of the present invention, the method further includes:
and the supplement module is used for loading a preset amount of data at the tail of the current page according to the sequence of the data when the screen length occupied by the data deleted from the current page to the data not displayed on the current page is less than a first threshold value.
The data rolling loading device of this embodiment is used to implement the foregoing data rolling loading method, and therefore a specific implementation of the data rolling loading device may be found in the foregoing embodiment parts of the data rolling loading method, for example, the obtaining module 100, the number determining module 200, the instruction obtaining module 300, the data determining module 400, and the compensating module 500 are respectively used to implement steps S101 to S105 in the foregoing data rolling loading method, so that the specific implementation thereof may refer to descriptions of corresponding embodiments of each part, and details are not repeated here.
In the following, a data rolling loading device provided by an embodiment of the present invention is introduced, and the data rolling loading device described below, the data rolling loading method described above, and the data rolling loading apparatus described above may be referred to in a corresponding manner.
Referring to fig. 6, fig. 6 is a block diagram of a data scrolling loading device according to an embodiment of the present invention.
Referring to fig. 6, the data scroll loading apparatus may include a processor 11 and a memory 12.
The memory 12 is used for storing a computer program; the processor 11 is configured to implement the specific content of the data rolling loading method in the above embodiment of the invention when executing the computer program.
The processor 11 in the data rolling and loading device of this embodiment is used to install the data rolling and loading apparatus in the above embodiment of the invention, and meanwhile, the processor 11 and the memory 12 are combined to implement the data rolling and loading method in any embodiment of the invention. Therefore, the specific implementation manner of the data scrolling loading device can be seen in the foregoing embodiment section of the data scrolling loading method, and the specific implementation manner of the data scrolling loading device may refer to the description of each corresponding embodiment section, which is not described herein again.
The present invention further provides a computer-readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program implements a data rolling loading method introduced in any of the embodiments of the present invention. The rest can be referred to the prior art and will not be described in an expanded manner.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The data rolling loading method, the data rolling loading device, the data rolling loading equipment and the computer readable storage medium provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. A data rolling loading method is characterized by comprising the following steps:
acquiring data deletion information; the data deleting information comprises a deleting time identifier when the data is deleted and deleting position information of the deleted data;
determining the number of deleted loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the number as the number to be supplemented;
acquiring a page turning-down instruction;
re-acquiring data required to be displayed on the current page according to the page-down instruction, and selecting data with the quantity equal to the quantity to be supplemented from back to front as data to be supplemented;
and filling the data to be supplemented to the front end of the page to be queried, and continuously loading the data on the page to be queried according to the downward page turning instruction.
2. The method according to claim 1, wherein the retrieving the data required to be displayed on the current page according to the page-down instruction, and the selecting the data equal to the amount to be supplemented from back to front as the data to be supplemented comprises:
and when the quantity to be supplemented is larger than zero, re-acquiring the data required to be displayed on the current page according to the downward page turning instruction, and selecting the data with the quantity equal to the quantity to be supplemented from back to front as the data to be supplemented.
3. The method according to claim 2, wherein the determining, according to the deletion time identifier and the deletion position information, the number of deleted loaded data in the browsing process, and the number of deleted loaded data recorded as the number to be supplemented includes:
and comparing the deletion time identifier with the first loading time identifier in the browsing process, determining the deleted quantity of the loaded data in the browsing process by combining the deletion position information, and recording the deleted quantity as the quantity to be supplemented.
4. The method of any one of claims 1 to 3, further comprising:
acquiring data adding information; the data adding information comprises an adding time identifier when data is added;
in the browsing process, when the data is loaded for the first time, taking the data with the time mark before the time of loading the data for the first time as the original data according to the time of loading the data for the first time and the adding time mark, and carrying out page loading on the original data;
and loading data on the page to be inquired based on the original data according to the downward page turning instruction.
5. The method of claim 4, further comprising, after the obtaining data-adding information:
when a first page loading instruction is obtained, updating the time for loading the data for the first time in the browsing process to be the current time for loading the first page data, and taking the data with the added time mark before the updated time for loading the data for the first time as original data to update the original data;
and after updating the original data, loading first page data according to the first page loading instruction.
6. The method of claim 5, further comprising, after the obtaining data-adding information:
and reminding the user of new data addition on the current page.
7. The method of claim 1, further comprising:
and when the length of the screen occupied by the data deleted from the current page to the data not displayed on the current page is less than a first threshold value, loading a preset amount of data at the tail of the current page according to the sequence of the data.
8. A data rolling loading device, comprising:
the acquisition module is used for acquiring data deletion information; the data deleting information comprises a deleting time identifier when the data is deleted and deleting position information of the deleted data;
the quantity determining module is used for determining the quantity of the deleted loaded data in the browsing process according to the deletion time identifier and the deletion position information, and recording the quantity as the quantity to be supplemented;
the instruction acquisition module is used for acquiring a page-down instruction;
the data determining module is used for re-acquiring the data required to be displayed on the current page according to the page-down instruction, and selecting the data with the quantity equal to the quantity to be supplemented from back to front as the data to be supplemented;
and the compensation module is used for filling the data to be supplemented to the front end of the page to be queried and continuously loading the data on the page to be queried according to the downward page turning instruction.
9. A data scroll loading apparatus, characterized in that the apparatus comprises:
a memory: for storing a computer program;
a processor: steps for implementing a method of rolling loading of data as claimed in any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data rolling loading method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111146164.1A CN113868315B (en) | 2021-09-28 | 2021-09-28 | Data rolling loading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111146164.1A CN113868315B (en) | 2021-09-28 | 2021-09-28 | Data rolling loading method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113868315A true CN113868315A (en) | 2021-12-31 |
CN113868315B CN113868315B (en) | 2024-10-18 |
Family
ID=78992224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111146164.1A Active CN113868315B (en) | 2021-09-28 | 2021-09-28 | Data rolling loading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113868315B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115344184A (en) * | 2022-08-29 | 2022-11-15 | 杭州安司源科技有限公司 | Unlimited scrolling list control on computer |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110113365A1 (en) * | 2009-11-09 | 2011-05-12 | Microsoft Corporation | Scrolling large data sets |
CN104572912A (en) * | 2014-12-26 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for loading web pages |
CN104965914A (en) * | 2015-07-06 | 2015-10-07 | 无锡天脉聚源传媒科技有限公司 | Page display method and apparatus |
WO2017045410A1 (en) * | 2015-09-17 | 2017-03-23 | 中兴通讯股份有限公司 | Method and apparatus for dynamically loading data in a paging model |
CN106658218A (en) * | 2016-12-26 | 2017-05-10 | 深圳Tcl数字技术有限公司 | Information paging display type data loading method and apparatus |
CN106919639A (en) * | 2016-08-22 | 2017-07-04 | 阿里巴巴集团控股有限公司 | A kind of processing method and processing device of data loading |
CN109857962A (en) * | 2019-03-02 | 2019-06-07 | 深圳店匠科技有限公司 | Operating method, device, terminal and the storage medium of page info |
CN112035524A (en) * | 2020-09-02 | 2020-12-04 | 中国银行股份有限公司 | List data query method and device, computer equipment and readable storage medium |
CN112541140A (en) * | 2019-09-23 | 2021-03-23 | 北京国双科技有限公司 | List loading method, terminal device, electronic device and storage medium |
-
2021
- 2021-09-28 CN CN202111146164.1A patent/CN113868315B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110113365A1 (en) * | 2009-11-09 | 2011-05-12 | Microsoft Corporation | Scrolling large data sets |
CN104572912A (en) * | 2014-12-26 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for loading web pages |
CN104965914A (en) * | 2015-07-06 | 2015-10-07 | 无锡天脉聚源传媒科技有限公司 | Page display method and apparatus |
WO2017045410A1 (en) * | 2015-09-17 | 2017-03-23 | 中兴通讯股份有限公司 | Method and apparatus for dynamically loading data in a paging model |
CN106547754A (en) * | 2015-09-17 | 2017-03-29 | 中兴通讯股份有限公司 | A kind of method and device of the dynamic load data in paging model |
CN106919639A (en) * | 2016-08-22 | 2017-07-04 | 阿里巴巴集团控股有限公司 | A kind of processing method and processing device of data loading |
CN106658218A (en) * | 2016-12-26 | 2017-05-10 | 深圳Tcl数字技术有限公司 | Information paging display type data loading method and apparatus |
CN109857962A (en) * | 2019-03-02 | 2019-06-07 | 深圳店匠科技有限公司 | Operating method, device, terminal and the storage medium of page info |
CN112541140A (en) * | 2019-09-23 | 2021-03-23 | 北京国双科技有限公司 | List loading method, terminal device, electronic device and storage medium |
CN112035524A (en) * | 2020-09-02 | 2020-12-04 | 中国银行股份有限公司 | List data query method and device, computer equipment and readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115344184A (en) * | 2022-08-29 | 2022-11-15 | 杭州安司源科技有限公司 | Unlimited scrolling list control on computer |
Also Published As
Publication number | Publication date |
---|---|
CN113868315B (en) | 2024-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20100107104A1 (en) | Display of predicted storage state of target computing device during media file synchronization | |
CN107193880B (en) | Page jump method and device | |
CN107679136A (en) | The storage method and storage system of slide fastener table | |
CN113568582B (en) | Data management method, device and storage equipment | |
CN108647935B (en) | Financial voucher generation rule updating method and device | |
CN109388624A (en) | Distributed document delet method, device, system and computer readable storage medium | |
CN113868315A (en) | Data rolling loading method, device, equipment and storage medium | |
US20120159325A1 (en) | Delayed Progress Meter for Long Running Tasks in Web Applications | |
CN108089858B (en) | Method and device for creating visual interface | |
CN108762646A (en) | A kind of method for information display, device, readable medium and storage control | |
CN114201615A (en) | Scientific research data change review method based on data snapshot and server | |
CN111459593A (en) | Drawing method, device and equipment | |
CN112711726B (en) | Method, device, computer equipment and storage medium for caching video data | |
JP4252322B2 (en) | DATA MANAGEMENT DETERMINING METHOD, DATA MANAGEMENT DETERMINING DEVICE, DATA MANAGEMENT DETERMINING PROGRAM, AND RECORDING MEDIUM CONTAINING DATA MANAGEMENT DETERMINING PROGRAM | |
CN106294709B (en) | Cloud storage file display method and device | |
JP2011100419A (en) | File browser | |
CN112965988A (en) | Data interaction method, device and equipment and computer readable storage medium | |
CN108647198B (en) | Unity-based character editing method and terminal | |
JP4383584B2 (en) | Data storage device | |
CN116304117B (en) | Data processing method, system and storage medium for acquiring text information | |
CN117076725B (en) | Method, electronic device and medium for searching tree nodes based on underlying data | |
CN112948719B (en) | Target characteristic text browsing interaction method and device | |
AU2018339076B2 (en) | Method, apparatus and computer program product for document change management in original and tailored documents | |
CN111259621B (en) | Cloud font display method and device | |
EP2284749B1 (en) | Method, computer program and device for executing actions using data sets |
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 |