Movatterモバイル変換


[0]ホーム

URL:


CN109885729B - Method, device and system for displaying data - Google Patents

Method, device and system for displaying data
Download PDF

Info

Publication number
CN109885729B
CN109885729BCN201910131041.7ACN201910131041ACN109885729BCN 109885729 BCN109885729 BCN 109885729BCN 201910131041 ACN201910131041 ACN 201910131041ACN 109885729 BCN109885729 BCN 109885729B
Authority
CN
China
Prior art keywords
data
target
page
identifier
search result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910131041.7A
Other languages
Chinese (zh)
Other versions
CN109885729A (en
Inventor
崔显龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co LtdfiledCriticalBeijing QIYI Century Science and Technology Co Ltd
Priority to CN201910131041.7ApriorityCriticalpatent/CN109885729B/en
Publication of CN109885729ApublicationCriticalpatent/CN109885729A/en
Application grantedgrantedCritical
Publication of CN109885729BpublicationCriticalpatent/CN109885729B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The application provides a method, a device and a system for displaying data, which belong to the technical field of computers, wherein the method is applied to a server and comprises the following steps: receiving a first data request sent by a client; searching to obtain a search result list comprising the data identification of the target data according to the target search identification carried by the first data request, wherein the total number of the data identification in the search result list is greater than the loading number of each page; obtaining a data identifier of the display data of the first page according to the search result list and the loading number of each page; determining target data corresponding to the data identification of the home page display data as first data, and feeding back the first data and the search result list to the client; receiving a second data request sent by the client; determining target data corresponding to the data identifier of the page display data to be loaded carried by the second data request as second data; and feeding back the second data to the client. By the adoption of the method and the device, the efficiency of displaying data can be improved.

Description

Method, device and system for displaying data
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for displaying data.
Background
The user can send a data request to the server through the client to acquire the target data, when the number of the target data is too many, the server can send the target data to the client in batches, and then the client can display the received target data. One piece of target data may be a video file.
In the prior art, the specific processing procedure of the server is as follows: a server receives a data request sent by a client, wherein the data request carries a target search identifier, and the target search identifier is a comedy movie; the server determines data identifiers of a plurality of target data according to the target search identifiers, then the server can sort the data identifiers of the plurality of target data according to a preset sorting rule to obtain a search result list, and then the server can determine a preset number of data identifiers in the search result list according to the sorting order and send the target data corresponding to the preset number of data identifiers to the client. The data identifier may be a primary key value of the data, and the sorting rules, such as the order of click rate, are from large to small.
However, the order of the data identifiers in the search result list may change in real time, and for data requests received at different times, the server determines that the same data may exist among a preset number of target data based on the changed search result list. Therefore, the server needs to detect whether data overlapping with the data already sent to the client exists in the target data corresponding to each data request, the processing procedure of the server is complicated, and the response speed of the data request is low, which results in low efficiency of displaying data.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, and a device for displaying data, so as to improve efficiency of displaying data. The specific technical scheme is as follows:
in a first aspect, a system for displaying data is provided, the system comprising a server and a client, wherein,
the client sends a first data request to the server, wherein the first data request carries a target search identifier;
the server searches to obtain a search result list according to the received target search identifier; the search result list comprises data identifications of target data, and the total number of the data identifications in the search result list is greater than the loading number of each page;
the server obtains a data identifier of the display data of the first page according to the search result list and the loading number of each page; determining target data corresponding to the data identification of the home page display data as first data; feeding the first data back to the client;
the server feeds the search result list back to the client;
the client displays the received first data;
when the client receives a trigger instruction for loading page data corresponding to other page numbers, the client obtains a data identifier of the page display data to be loaded according to the search result list and sends a second data request to the server, wherein the second data request carries the data identifier of the page display data to be loaded;
the server determines that target data corresponding to the data identifier in the second data request is second data according to the data identifier in the received second data request; and feeding back the second data to the client.
Optionally, the server is further configured to:
acquiring a historical browsing data set in a preset processing period, wherein the preset processing period comprises a plurality of receiving time periods, and the historical browsing data set comprises third data requests received in each receiving time period, the number of data sent in response to the third data requests and first receiving time of the third data requests;
determining the corresponding relation between the receiving time periods and the number of the historical browsing data according to the number of the data sent by responding to the third data request in each receiving time period;
when the server performs the step of obtaining the search result list by searching according to the received target search identifier, the server is specifically configured to:
the server determines the target number of the historical browsing data corresponding to the receiving time period to which the second receiving time belongs according to the second receiving time of the first data request and the corresponding relation between the receiving time period and the number of the historical browsing data;
and the server generates a search result list containing the data identifications of the target number according to the received target search identification.
In a second aspect, there is provided a system for displaying data, the system comprising a server and a client, wherein,
the client sends a first data request to the server, wherein the first data request carries a target search identifier;
the server searches to obtain a search result list according to the received target search identifier; the search result list comprises data identifications of target data, and the total number of the data identifications in the search result list is greater than the loading number of each page;
the server divides the search result list into at least two sub-lists according to the loading number of each page, and determines the page number corresponding to the sub-lists;
the server determines a sub-list corresponding to a home page, and determines target data corresponding to a data identifier as first data according to the data identifier in the sub-list corresponding to the home page; feeding the first data back to the client;
the client displays the received first data;
when the client receives a trigger instruction for loading page data corresponding to other page numbers, the client sends a second data request to the server, wherein the second data request carries the page number of the page data to be loaded;
the server obtains a sub-list corresponding to the page number according to the page number of the page data to be loaded; determining target data corresponding to the data identification in the sub-list as second data according to the data identification in the obtained sub-list; and feeding back the second data to the client.
Optionally, the server is further configured to:
acquiring a historical browsing data set in a preset processing period, wherein the preset processing period comprises a plurality of receiving time periods, and the historical browsing data set comprises third data requests received in each receiving time period, the number of data sent in response to the third data requests and first receiving time of the third data requests;
determining the corresponding relation between each receiving time period and the number of the historical browsing data according to the number of the data sent by responding to the third data request in each receiving time period;
when the server performs the step of obtaining the search result list by searching according to the received target search identifier, the server is specifically configured to:
the server determines the target number of the historical browsing data corresponding to the receiving time period to which the second receiving time belongs according to the second receiving time of the first data request and the corresponding relation between the receiving time period and the number of the historical browsing data;
and the server generates a search result list containing the data identifications of the target number according to the received target search identification.
In a third aspect, a method for displaying data is provided, where the method is applied to a server, and the method includes:
receiving a first data request sent by a client, wherein the first data request carries a target search identifier;
searching to obtain a search result list according to the received target search identification; the search result list comprises data identifications of target data, and the total number of the data identifications in the search result list is greater than the loading number of each page;
obtaining a data identifier of the display data of the first page according to the search result list and the loading number of each page;
determining target data corresponding to the data identifier of the home page display data as first data, and feeding back the first data and the search result list to the client;
receiving a second data request sent by the client, wherein the second data request carries a data identifier of page display data to be loaded;
determining target data corresponding to the data identifier in the second data request as second data according to the received data identifier in the second data request;
and feeding back the second data to the client.
Optionally, the searching to obtain the search result list according to the target search identifier includes:
acquiring second receiving time for receiving the first data request;
determining a target receiving time period to which the second receiving time belongs and a target number of the historical browsing data corresponding to the target receiving time period according to a corresponding relation between the pre-stored receiving time period and the number of the historical browsing data;
and selecting the data identifications of the target number from the data identifications of the target data corresponding to the target search identification to obtain a search result list.
In a fourth aspect, a method for displaying data is provided, where the method is applied to a client, and the method includes:
receiving a data search instruction, wherein the data search instruction carries a target search identifier;
sending a first data request carrying the target search identifier to a preset server;
receiving first data and a search result list fed back by the server;
when a trigger instruction for loading page data corresponding to other page numbers is received, obtaining a data identifier of the page display data to be loaded according to the search result list, and sending a second data request to the server, wherein the second data request carries the data identifier of the page display data to be loaded;
and receiving and displaying the second data sent by the server.
In a fifth aspect, a method for displaying data is provided, where the method is applied to a server, and the method includes:
receiving a first data request sent by a client, wherein the first data request carries a target search identifier;
searching to obtain a search result list according to the received target search identification; the search result list comprises data identifications of target data, and the total number of the data identifications in the search result list is greater than the loading number of each page;
according to the loading number of each page, sequentially dividing the search result list into at least two sub-lists, and determining page numbers corresponding to the sub-lists;
determining a sub-list corresponding to a home page, and determining target data corresponding to a data identifier as first data according to the data identifier in the sub-list corresponding to the home page;
feeding the first data back to the client;
receiving a second data request sent by the client, wherein the second data request carries a page number of page data to be loaded;
obtaining a sub-list corresponding to the page number according to the page number of the page data to be loaded;
determining target data corresponding to the data identification in the sub-list as second data according to the data identification in the obtained sub-list;
and feeding back the second data to the client.
Optionally, the searching to obtain the search result list according to the received target search identifier includes:
acquiring second receiving time for receiving the first data request;
determining a target receiving time period to which the second receiving time belongs and a target number of the historical browsing data corresponding to the target receiving time period according to a corresponding relation between the pre-stored receiving time period and the number of the historical browsing data;
and selecting the data identifications of the target number from the data identifications of the target data corresponding to the target search identification to obtain a search result list.
In a sixth aspect, a method for displaying data is provided, the method being applied to a client, and the method including:
receiving a data search instruction, wherein the data search instruction carries a target search identifier;
sending a first data request to a preset server, wherein the first data request carries the target search identifier;
receiving first data fed back by the server;
displaying the received first data;
when a trigger instruction for loading page data corresponding to other page numbers is received, sending a second data request to the server, wherein the second data request carries the page number of the page data to be loaded;
and displaying the received second data.
In a seventh aspect, an apparatus for displaying data is provided, where the apparatus is applied to a server, and the apparatus includes:
the system comprises a first receiving module, a second receiving module and a first sending module, wherein the first receiving module is used for receiving a first data request sent by a client, and the first data request carries a target search identifier;
the searching module is used for searching to obtain a searching result list according to the received target searching identification; the search result list comprises data identifications of target data, and the total number of the data identifications in the search result list is greater than the loading number of each page;
the first determining module is used for obtaining a data identifier of the display data of the first page according to the search result list and the loading number of each page;
the first sending module is used for determining that target data corresponding to the data identifier of the home page display data is first data and feeding back the first data and the search result list to the client;
the second receiving module is used for receiving a second data request sent by the client, wherein the second data request carries a data identifier of the page display data to be loaded;
the second determining module is used for determining target data corresponding to the data identifier in the second data request as second data according to the data identifier in the received second data request;
and the second sending module is used for feeding the second data back to the client.
Optionally, the search module includes:
the obtaining submodule is used for obtaining second receiving time for receiving the first data request;
the determining submodule is used for determining a target receiving time period to which the second receiving time belongs and the target number of the historical browsing data corresponding to the target receiving time period according to the corresponding relation between the pre-stored receiving time period and the number of the historical browsing data;
and the selection submodule is used for selecting the data identifications of the target number from the data identifications of the target data corresponding to the target search identification to obtain a search result list.
In an eighth aspect, an apparatus for displaying data is provided, where the apparatus is applied to a client, and the apparatus includes:
the first receiving module is used for receiving a data searching instruction, and the data searching instruction carries a target searching identifier;
the first sending module is used for sending a first data request carrying the target search identifier to a preset server;
the second receiving module is used for receiving the first data and the search result list fed back by the server;
the second sending module is used for obtaining a data identifier of the page display data to be loaded according to the search result list when receiving a trigger instruction for loading the page data corresponding to other page numbers, and sending a second data request to the server, wherein the second data request carries the data identifier of the page display data to be loaded;
and the display module is used for receiving and displaying the second data sent by the server.
In a ninth aspect, there is provided an apparatus for displaying data, the apparatus being applied to a server, the apparatus comprising:
the system comprises a first receiving module, a second receiving module and a first sending module, wherein the first receiving module is used for receiving a first data request sent by a client, and the first data request carries a target search identifier;
the searching module is used for searching to obtain a searching result list according to the received target searching identification; the search result list comprises data identifications of target data, and the total number of the data identifications in the search result list is greater than the loading number of each page;
the dividing module is used for sequentially dividing the search result list into at least two sub-lists according to the loading number of each page and determining page numbers corresponding to the sub-lists;
the first determining module is used for determining a sub-list corresponding to a home page and determining target data corresponding to a data identifier as first data according to the data identifier in the sub-list corresponding to the home page;
the sending module is used for feeding back the first data to the client;
the second receiving module is used for receiving a second data request sent by the client, wherein the second data request carries a page number of page data to be loaded;
the second determining module is used for obtaining a sub-list corresponding to the page number according to the page number of the page data to be loaded;
a third determining module, configured to determine, according to the data identifier in the obtained sub-list, that target data corresponding to the data identifier in the sub-list is second data;
and the sending module is further used for feeding the second data back to the client.
Optionally, the search module includes:
the obtaining submodule is used for obtaining second receiving time for receiving the first data request;
the determining submodule is used for determining a target receiving time period to which the second receiving time belongs and the target number of the historical browsing data corresponding to the target receiving time period according to the corresponding relation between the pre-stored receiving time period and the number of the historical browsing data;
and the selection submodule is used for selecting the data identifications of the target number from the data identifications of the target data corresponding to the target search identification to obtain a search result list.
In a tenth aspect, there is provided an apparatus for displaying data, the apparatus being applied to a client, the apparatus comprising:
the first receiving module is used for receiving a data searching instruction, and the data searching instruction carries a target searching identifier;
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a first data request to a preset server, and the first data request carries a target search identifier;
the second receiving module is used for receiving the first data fed back by the server;
the display module is used for displaying the received first data;
the second sending module is used for sending a second data request to the server when receiving a trigger instruction for loading page data corresponding to other page numbers, wherein the second data request carries the page number of the page data to be loaded;
and the display module is also used for displaying the received second data.
In an eleventh aspect, an electronic device is provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the third, fourth, fifth or sixth aspects when executing a program stored in the memory.
In a twelfth aspect, there is provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, carries out the method steps of any of the third, or fourth, or fifth, or sixth aspects.
When the method is applied to a server, a search result list comprising the data identifier of target data can be obtained by searching when a first data request carrying the target search identifier is received; feeding back the search result list to the client; and the client side sends the second data request based on the search result list, so that the second data can be determined directly based on the data identifier of the loaded page display data carried by the second data request, and the second data is sent to the client side. Since the server displays data based on the determined search result list, it is possible to achieve an improvement in the efficiency of displaying data.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for displaying data according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for displaying data according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for displaying data according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for displaying data according to an embodiment of the present disclosure;
FIG. 5 is a flowchart of a method for displaying data according to an embodiment of the present disclosure;
FIG. 6 is a flowchart of a method for displaying data according to an embodiment of the present disclosure;
FIG. 7 is a flowchart of a method for displaying data according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an apparatus for displaying data according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an apparatus for displaying data according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an apparatus for displaying data according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an apparatus for displaying data according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The embodiment of the application provides a method for displaying data, which is applied to a server, wherein the server can be a background server of an application program, and the application program can be an application program with a search function, such as Baidu or Aiqiyi; multiple groups of data can be stored in the server, and each group of data can contain information such as video files, generation time, click rate, data occupied memory amount and the like. The server can also store the data identification of each group of data, the corresponding relation between the data identification and the data, and the corresponding relation between the data identification and the keyword. The data identity may be a data primary key value.
The user can install the application program on the user terminal, and then sends a data request to the server through the application program, and the server can determine target data corresponding to the data request and send the target data to the client. The client can be an electronic device such as a mobile phone and a computer.
As shown in fig. 1, a specific processing flow of a method for displaying data provided by the present application includes:
step 101, receiving a first data request sent by a client.
The first data request carries a target search identifier, and the target search identifier comprises a target keyword.
In implementation, the server may receive a first data request sent by the client, and obtain a target search identifier carried by the first data request and a target keyword included in the target search identifier.
For example, when a user wants to obtain a comedy movie, the user may send a first data request to the server through a client installed with an application of the arcade video search engine. The server may obtain, after receiving the first data request, a target search identifier carried in the first data request and a target keyword, that is, a comedy movie, included in the target search identifier.
In a feasible implementation manner, the first data request may further carry a loading number per page, where the loading number per page may be the number of target data that can be displayed at a single time on a display page when the client displays the target data through a preset display page.
And 102, searching to obtain a search result list according to the received target search identification.
The search result list comprises data identifications of the target data, and the total number of the data identifications in the search result list is larger than the loading number of each page.
The server searches the target keywords in the target search identification from the stored data to obtain a search result containing the target keywords, and sorts the search result according to a preset sorting rule to generate a search result list, wherein the preset sorting rule can be a rule that the click rate of the data is from large to small, and can also be a rule that the data is generated from near to far.
The server may also store a total number of data identifiers included in the search result list in advance, and the total number of data identifiers may be preset by a technician, for example, the total number of data identifiers may be 200. Alternatively, the server may also determine the total number of the data identifiers included in the search result list according to the receiving time of the first data request, and the specific execution process will be described in detail later. Alternatively, the server may change the total number of data identifications according to the received number change instruction.
In a possible implementation manner, the first data request may also carry a user identifier. The server may obtain the user identifier carried by the first data request when receiving the first data request, and then determine the total number of the data identifiers corresponding to the user identifier according to the correspondence between the pre-stored user identifier and the total number of the data identifiers, to obtain the total number of the data identifiers corresponding to the first data request.
In implementation, the server may search the data identifier of the target data corresponding to the target search identifier in the locally stored data identifiers, and then, the server may obtain the total number of data identifiers from the data identifiers of the target data corresponding to the target search identifier according to a preset sorting rule, so as to obtain a search result list.
In the examples of this application, A is usediRepresenting data identifications, when the total number of the data identifications is 100, the search result list can be represented as A1~A100
And 103, obtaining a data identifier of the display data of the first page according to the search result list and the loading number of each page.
In implementation, when the first data request does not carry the number of loads per page, the server may obtain the preset number of local storage as the number of loads per page corresponding to the first data request. When the first data request carries the number of loads per page, the server may use the number of loads per page as the number of loads per page corresponding to the first data request.
In one possible implementation, when the user does not set the number of loads per page of the page display, the number of loads per page of the page display may be a default number, such as 10. At this time, the first data request may not carry the number of loads per page, and the server may obtain a preset number (that is, a default number) stored locally in advance as the number of loads per page corresponding to the first data request.
When the user sets the number of loads per page of the display page, for example, 20. At this time, the first data request may carry the loading number per page of 20, and then the server may obtain 20 as the loading number per page corresponding to the first data request.
After acquiring the loading number of each page, the server may sequentially select, according to the arrangement order of the data identifiers, the data identifiers of the top page loading number arranged in the search result list, so as to obtain the data identifiers of the top page display data.
And 104, determining that target data corresponding to the data identifier of the home page display data is first data, and feeding back the first data and the search result list to the client.
In implementation, the server may determine target data corresponding to the data identifier of the home page display data according to a pre-stored correspondence between the data identifier and the data, and use the determined target data as first data, and then, the server may feed back the search result list and the first data to the client.
For example, when the number of top page loads is 10, the server may sequentially select the top 10 data identifiers in the search result list to obtain the data identifier a of the top page display data1~A10The server may then identify the data as A1~A10Corresponding target data is taken as first data, and a search result list A is obtained1~A100And sending the first data to the client.
And step 105, receiving a second data request sent by the client.
And the second data request carries a data identifier of the page display data to be loaded. For example, the data identifier of the to-be-loaded page display data carried in the second data request may be the data identifier a11~A20
In implementation, when a user wants to browse data of other pages, the user may perform a preset operation to generate a trigger instruction, and the client may generate a second data request after receiving the trigger instruction and then send the second data request to the server. The specific process of the client generating the second data request will be described in detail later.
Thus, the server may receive the second data request sent by the client.
And step 106, according to the data identifier in the received second data request, determining that the target data corresponding to the data identifier in the second data request is second data, and feeding the second data back to the client.
In implementation, the server may obtain the data identifier carried in the second data request, then determine, according to a correspondence between the pre-stored data identifier and the data, data corresponding to the data identifier carried in the second data request, to obtain second data, and then the server may feed back the second data to the client.
For example, the server may identify the data as A11~A20Corresponding data is taken as second data, and the data is marked with A11~A20And sending the corresponding data to the client.
In the embodiment of the application, after receiving the first data request, the server searches to obtain a search result list according to the received target search identifier. And then, obtaining a data identifier of the display data of the home page according to the search result list and the loading number of each page, then determining that target data corresponding to the data identifier of the display data of the home page is first data, and feeding back the first data and the search result list to the client, so that the server can determine second data only by receiving the data identifier of the display data of the page to be loaded sent by the client. According to the method and the device, the problems that in the prior art, the search result list needs to be determined again when the server receives the data request every time, and the determined target data possibly have the same data are solved, meanwhile, the server does not need to detect the determined target data again, whether the data which are repeated with the data which are sent to the client side exist or not, and the efficiency of displaying the data can be effectively improved.
Optionally, as shown in fig. 2, an embodiment of the present application provides an implementation manner in which a server searches for a search result list according to a target search identifier, where a specific processing flow is as follows:
step 201, a second receiving time for receiving the first data request is obtained.
In an implementation, the server may record a time when the first data request is received, that is, the second receiving time, while receiving the first data request. The server may obtain the second reception time after receiving the first data request.
Step 202, according to the corresponding relationship between the pre-stored receiving time period and the number of the historical browsing data, determining a target receiving time period to which the second receiving time belongs and the target number of the historical browsing data corresponding to the target receiving time period.
In implementation, the server may store a corresponding relationship between a receiving time period and the number of the historical browsing data in advance, so that the server can determine, according to the receiving time periods to which different receiving times belong, the target number of the historical browsing data that can meet the browsing requirements of the user in the receiving time period, thereby generating a search result list including the data identifiers of the target number. The specific process of the server acquiring the corresponding relationship between the receiving time period and the number of the historical browsing data will be described in detail later.
After obtaining the second receiving time, the server may determine, according to the corresponding relationship between the receiving time period and the number of the historical browsing data, a receiving time period (that is, a target receiving time period) to which the second receiving time belongs, and use the target number of the historical browsing data corresponding to the receiving time period as the total number of the data identifiers included in the search result list.
For example, the second receiving time of the server receiving the first data request is 9 o 'clock 16 minutes, and in the corresponding relationship between the receiving time period and the number of the historical browsing data, the target number of the historical browsing data corresponding to 9 o' clock-10 points of the receiving time period is 100, then the server may determine, according to the corresponding relationship between the receiving time period and the number of the historical browsing data, that the target receiving time period to which the first receiving time 9 o 'clock 16 minutes belongs is 9 o' clock-10 points, and the target number of the historical browsing data corresponding to the target receiving time period is 100.
Step 203, selecting a target number of data identifications from the data identifications of the target data corresponding to the target search identification to obtain a search result list.
In implementation, the server may determine the data identifier of the target data corresponding to the target keyword according to the target keyword included in the target search identifier and the corresponding relationship between the keyword and the data identifier, and then the server may select a target number of data identifiers from the data identifiers of the target data to obtain the search result list.
In a feasible implementation manner, the server may sort the data identifiers of the target data according to a preset sorting rule to obtain an arrangement order of the data identifiers of the target data, and then the server may sequentially select the data identifiers of the number of targets arranged in the front from the arrangement order to obtain the search result list.
In the embodiment of the application, after the data identification of the target data is determined, the server determines the target number of the historical browsing data corresponding to the first data request according to the corresponding relationship between the pre-stored receiving time period and the number of the historical browsing data, selects the data identification of the target number from the data identification of the target data, and generates the search result list. The server generates a search result list containing a target number of data identifications of the historical browsing data, so that the server can determine the target data based on the data identifications in the search result list in a target receiving time period, and repeated target data are prevented from being sent to the client.
An embodiment of the present application further provides a method for displaying data, where the method is applied to a client, where the client may be an electronic device installed with an application program, and the client maintains a communication connection with a preset server, as shown in fig. 3, a specific processing flow of the method includes:
step 301, receiving a data search instruction.
The data search instruction carries a target search identifier, and the target search identifier comprises a target keyword searched by a user.
In implementation, when a user needs to search for a certain keyword, the keyword may be input in a search bar of a preset display page of the client, and a search icon in the preset display page is clicked, so that the client may receive a data search instruction.
In a possible implementation manner, when the user enters a preset display page of the application program, the client may also receive a data search instruction. For example, the preset display page may be a home page of the application.
Step 302, sending a first data request carrying a target search identifier to a preset server.
In implementation, the client may obtain a target search identifier carried by the data search instruction, then the client may generate a first data request including the target search identifier, and then the client may send the first data request to a preset server.
In a possible implementation manner, the first data request may further include a loading number per page, that is, the number of target data that can be displayed at a single time on the client-side preset display interface. The client can change the loading number of each page according to the received change instruction. The client can generate a first data request containing the loading number of each page after receiving the data searching instruction each time; the client may also generate the first data request including the number of loads per page only when receiving the change instruction, which is not specifically limited in the embodiment of the present application.
Step 303, receiving the first data and the search result list fed back by the server.
In implementation, the client may receive the first data and the search result list sent by the server, and then the client may store the search result list locally and display the first data on a preset display interface.
And step 304, when a trigger instruction for loading the page data corresponding to the other page numbers is received, obtaining the data identifier of the page display data to be loaded according to the search result list, and sending a second data request to the server.
And the second data request carries a data identifier of the page display data to be loaded. When a user wants to browse other target data except the target data currently displayed on the preset display page of the client, a trigger instruction may be sent to the client, where the trigger instruction may carry a page number, for example, 3, of the page that the user wants to browse.
In implementation, the client may obtain the page number carried by the trigger instruction when receiving the trigger instruction for loading the page data corresponding to the other page number. Then, the client may determine the data identifier corresponding to the trigger instruction, that is, the data identifier of the display data of the page to be loaded, according to the page number, the loading number of each page, and the search result list stored locally. And then, the client can send a second data request carrying the data identifier of the page display data to be loaded to the server.
For example, when the trigger instruction contains a page number of 3, the client may determine, according to the page number of 3 and the loading number per page of 10, that the data identifier of the display data of the page to be loaded is the data identifier arranged at 21-30 in the search result list, and obtain that the data identifier of 21-30 is a21~A30A second data request is generated, and the client may then send the second data request to the server.
And step 305, receiving and displaying the second data sent by the server.
In the embodiment of the application, the client can receive a data search instruction and send a first data request carrying a target search identifier to a preset server, and then receive first data and a search result list fed back by the server, so that when a trigger instruction for loading page data corresponding to other page numbers is received, a data identifier of the page display data to be loaded can be obtained according to the search result list, and a second data request is sent to the server, so that the server can determine second data only by receiving the data identifier of the page display data to be loaded. Because the client directly sends the data identifier of the data to be displayed, no repeated data exists between the received second data and the received target data, and the display efficiency can be improved.
Optionally, after receiving the search result list sent by the server, the client may determine a target page number corresponding to the search result list, and determine whether to update the search result list stored locally by comparing the page number carried in the trigger instruction with the target page number, specifically including the following steps:
step one, determining a target page number corresponding to a search result list according to the total number of data identifications contained in the search result list and the loading number of each page.
In implementation, the client may obtain the total number of the data identifiers and the number of loads per page included in the search result list, and then, the client may determine the target page number corresponding to the search result list according to the total number of the data identifiers and the number of loads per page.
For example, when the total number of the data identifiers is 100 and the number of loads per page is 10, the client may divide the total number of the data identifiers by the number of loads per page by 10 to obtain a quotient of 10, and the client may use 10 as the maximum value of the page numbers that can be displayed, thereby determining that the target page numbers corresponding to the search result list are 1-10.
Step two, when a trigger instruction is received, judging whether a page number contained in the trigger instruction is a target page number, and if the page number contained in the trigger instruction is not the target page number, sending a first data request to a server; and if the page number contained in the trigger instruction is the target page number, sending a second data request to the server.
The target search identification carried by the first data request comprises a page number. And the second data request carries the data identifier of the page display data to be loaded.
In implementation, when receiving the trigger instruction, the client may obtain a page number carried by the display instruction, and determine whether the page number is a target page number.
If the page number contained in the trigger instruction is the target page number, the client may determine the data identifier of the page display data to be loaded in a search result list stored locally according to the page number and the loading number of each page, and then the client may generate a second data request containing the data identifier of the page display data to be loaded and send the second data request to the server.
If the page number included in the trigger instruction is not the target page number, the client may determine that all data corresponding to the data identifier included in the search result list stored locally are displayed, and at this time, the client may generate and send a first data request including the page number and the target search identifier, so that the server may determine the data identifier of the target data corresponding to the target search identifier. Then, the server may sort the data identifiers of the target data corresponding to the target search identifier according to a preset sorting rule, so as to obtain a sorting order of the data identifiers of the target data. Then, the server may sequentially select the unsent data identifiers of the target number of the historical browsing data from the arrangement sequence to obtain a new search result list, and then send the new search result list to the client.
For example, if the trigger instruction includes a page number of 11, the client may determine that the page number 11 is not the target page number, and then the client may generate a first data request carrying the page number 11 and a target search identifier (the target keyword included is a comedy movie). Thus, the server can determine the data identification of the target data corresponding to the target search identification according to the comedy movie. Then, the server may sort the data identifiers of the target data according to the sorting rule, so as to obtain the arrangement order of the data identifiers of the target data. The server can mark that the data identifier sent to the client in the current receiving time period is A1~A100Then, the server can select 100 unsent data identifications (which can be A) of the target number of the historical browsing data from the arrangement sequence101~A200) Obtaining a search result list A101~A200
In the embodiment of the application, the client determines a target page number corresponding to the search result list according to the total number of the data identifiers and the loading number of each page included in the search result list, so that whether a first data request needs to be sent to the server or not is determined by judging whether the page number included in the trigger instruction is the target page number or not, that is, whether the search result list stored locally needs to be updated or not is determined. Therefore, the client can obtain a new search result list from the server after all target data corresponding to the data identification in the search result list are displayed, and a user can conveniently obtain real-time data.
Optionally, the server may send the receiving time period to which the receiving time of the first data request belongs while sending the search result list, and the client may use the receiving time period as a target receiving time period corresponding to the search result list.
When the user executes the preset refresh operation, the client may receive the refresh instruction, and then, the client may determine whether the reception time of the refresh instruction belongs to the target reception time period corresponding to the search result list. If the receiving time belongs to the target receiving time period, the client can generate a second data request and send the second data request to the server; and if the receiving time does not belong to the target receiving time period, the client executes the step to generate a first data request and sends the first data request to the server.
For example, the receiving time of the refresh instruction received by the client is 10 points and 20 minutes, the target receiving time period corresponding to the locally stored search result list is 9 points to 10 points, and the client may determine that 10 points and 20 minutes do not belong to the target receiving time period, at this time, the client may generate the first data request and send the first data request to the server.
In the embodiment of the application, when the refresh command is received, the client may determine whether the first data request needs to be sent to the server by judging whether the receiving time of the refresh command is received and whether the receiving time belongs to a target receiving time period corresponding to the locally stored search result list, that is, whether the locally stored search result list needs to be updated. Therefore, the method for displaying data provided by the embodiment of the application can realize the timely update of the search result list, and is convenient for a user to obtain real-time data.
The embodiment of the present application further provides a system for displaying data, where the system includes a server and a client, where the server may perform the method steps ofstep 101 to step 106, and the client may perform the method steps ofstep 301 to step 305. As shown in fig. 4, the specific processing procedure of the system includes:
instep 401, a client sends a first data request to a server.
In the implementation, the specific processing procedure of this step may refer to the descriptions ofstep 301 and step 302, and is not described herein again.
Step 402, the server searches to obtain a search result list according to the received target search identifier.
In the implementation, the specific processing procedure of this step may refer to the descriptions ofstep 101 and step 102, which are not described herein again.
Step 403, the server obtains the data identifier of the display data of the first page according to the search result list and the loading number of each page; determining target data corresponding to the data identification of the home page display data as first data; and feeding back the first data and the search result list to the client.
In the implementation, the specific processing procedure of this step may refer to the descriptions ofstep 103 and step 104, which are not described herein again.
Instep 404, the client displays the received first data.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 303, which is not described herein again.
Step 405, when the client receives a trigger instruction for loading page data corresponding to other page numbers, the client obtains a data identifier of the page display data to be loaded according to the search result list, and sends a second data request to the server.
And the second data request carries a data identifier of the page display data to be loaded.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 304, which is not described herein again.
Step 406, the server determines, according to the data identifier in the received second data request, that the target data corresponding to the data identifier in the second data request is second data; and feeding back the second data to the client.
In the implementation, the specific processing procedure of this step may refer to the descriptions ofstep 105 and step 106, which are not described herein again.
Step 407, the client receives and displays the second data sent by the server.
The embodiment of the application provides a data display system, which comprises a server and a client, wherein the server can search to obtain a search result list comprising a data identifier of target data when receiving a first data request carrying a target search identifier; feeding back the search result list to the client; and the client side sends the second data request based on the search result list, so that the second data can be determined directly based on the data identifier of the loaded page display data carried by the second data request, and the second data is sent to the client side. Since the server displays data based on the determined search result list, it is possible to achieve an improvement in the efficiency of displaying data.
Optionally, the server may determine the search result list according to a pre-stored correspondence between the reception time period and the number of the historical browsing data, and the target search identifier carried in the received first data request. For a specific processing procedure, reference may be made to theabove step 201 to step 203, which are not described herein again.
The way for the server to obtain the corresponding relation between the receiving time period and the number of the historical browsing data is various, and the embodiment of the application provides two ways, including:
in the first mode, the server performs offline analysis on the historical browsing data set in a preset processing period to obtain a corresponding relationship between a receiving time period and the number of the historical browsing data, and the specific processing flow is as follows:
step one, acquiring a historical browsing data set in a preset processing period.
The preset processing cycle comprises a plurality of receiving time periods, the preset processing cycle can be a week, the receiving time period can be a time period with the preset time length, and the historical browsing data set comprises third data requests received in the receiving time periods of the preset processing cycle and first receiving time of the third data requests. The third data request may be the first data request or the second data request. The historical browsing data set may further include the number of data sent by the server in response to each third data request.
In implementation, the server may obtain a historical browsing data set in a preset processing period when a current running time reaches a start time of the preset processing period; the server can also obtain the historical browsing data set in the preset processing period according to the received obtaining instruction.
And step two, determining the corresponding relation between each receiving time period and the number of the historical browsing data according to the number of the data sent by responding to the third data request in each receiving time period.
In implementation, the server may determine, for each third data request, a receiving time period to which the first receiving time of the third data request belongs, and obtain a corresponding relationship between the receiving time period and the third data request. Then, the server may determine, for each reception period, the number of the history browsing data according to the number of data transmitted in response to the third data request within the reception period, thereby obtaining a correspondence relationship between the reception period and the number of the history browsing data.
For example, for a third data request responded within 9-10 points of the receiving time period, the target keywords included in the third data request are "comedy movie", "action movie", and "natural documentary", respectively, and when the server responds to the third data request corresponding to "comedy movie", "action movie", and "natural documentary" within the receiving time period, the numbers of the transmitted data are 50, 70, and 60, respectively, and the server may set the maximum number of the transmitted data as the number of the history browsing data corresponding to the receiving time period, that is, the number of the history browsing data corresponding to 9-10 points of the receiving time period to 70.
In a second mode, the server performs offline analysis on historical browsing data sets in a plurality of preset processing cycles to obtain a corresponding relationship between a receiving time period and the number of the historical browsing data, and the specific processing flow is as follows:
step 1, obtaining a historical browsing data set in a preset processing period.
The preset processing cycle comprises a plurality of receiving time periods, the preset processing cycle can be a week, the receiving time period can be a time period with the preset time length, and the historical browsing data set comprises third data requests received in the receiving time periods of the preset processing cycle and first receiving time of the third data requests. The third data request may be the first data request or the second data request. The historical browsing data set may further include the number of data sent by the server in response to each third data request.
In implementation, the server may obtain a historical browsing data set in a preset processing period when a current running time reaches a start time of the preset processing period; the server can also obtain the historical browsing data set in the preset processing period according to the received obtaining instruction.
And 2, determining a first corresponding relation between each receiving time period and the number of the historical browsing data according to the number of data sent by responding to the third data request in each receiving time period.
In implementation, the server may determine, for each third data request, a receiving time period to which the first receiving time of the third data request belongs, and obtain a corresponding relationship between the receiving time period and the third data request. Then, the server may determine, for each reception period, the number of the history browsing data according to the number of data transmitted in response to the third data request within the reception period, thereby obtaining a first correspondence relationship between the reception period and the number of the history browsing data.
And 3, acquiring a second corresponding relation between a pre-stored receiving time period and the number of the historical browsing data.
The second corresponding relationship is the corresponding relationship between the receiving time period and the number of the historical browsing data determined in the last preset processing period.
In implementation, the server may store in advance a corresponding relationship between the received time period and the number of the historical browsing data in the last preset processing period. The server may obtain a correspondence between the reception time period and the number of the historical browsing data in the previous preset processing cycle, and use the correspondence as a second correspondence between the reception time period and the number of the historical browsing data.
And 4, determining the corresponding relation between the receiving time period and the number of the historical browsing data according to the first corresponding relation, the second corresponding relation, the preset first weight corresponding to the first corresponding relation and the preset second weight corresponding to the second corresponding relation.
In implementation, a preset first weight corresponding to the first corresponding relationship and a preset second weight corresponding to the second corresponding relationship may also be preset in the server, and the server may determine, for each reception time period, the target number of the historical browsing data corresponding to the reception time period in the first corresponding relationship and the second corresponding relationship, respectively. Then, the server may calculate a sum of a product of the target number of the historical browsing data in the first corresponding relationship and a preset first weight and a product of the target number of the historical browsing data in the second corresponding relationship and a preset second weight, to obtain the target number of the historical browsing data corresponding to the receiving time period in the corresponding relationship between the receiving time period and the number of the historical browsing data. Therefore, the server can determine the target number of the historical browsing data corresponding to each receiving time period, and obtain the corresponding relation between the receiving time period and the number of the historical browsing data.
For example, the preset first weight of the first corresponding relation is 0.6, and the preset second weight of the second corresponding relation is 0.4. The server may determine, for 9-10 points of the receiving time period, that the target number of the historical browsing data corresponding to the receiving time period is 100 in the first corresponding relationship, and that the target number of the historical browsing data corresponding to the receiving time period is 150 in the second corresponding relationship. Then, the server may multiply the target number 100 of the historical browsing data in the first corresponding relationship by the preset first weight 0.6 and multiply the target number 150 of the historical browsing data in the second corresponding relationship by the sum 120 of the preset second weight 0.4 as the target number of the historical browsing data corresponding to the reception time period 9-10 points in the corresponding relationship.
In the embodiment of the application, in the corresponding relationship between the receiving time period and the number of the historical browsing data, the receiving time period may be composed of a non-operating time period and an operating time period, the non-operating time period includes a plurality of first time periods, the operating time period includes a plurality of second time periods, and the duration of the first time period is less than the duration of the second time period.
For example, the non-operating periods include 0:00-9:00 and 17:00-24:00, and the operating periods include 9:00-17: 00. The first time period may be 19:00-20:00, the first time period being 1 hour in duration, the second time period may be 9:00-11:00, the second time period being 2 hours in duration.
In the embodiment of the application, the server can finely divide the receiving time period of the data request according to the actual data display requirements of the user at different times, so that the historical browse data set is subjected to offline analysis according to the receiving time period, the obtained corresponding relation between the receiving time period and the number of the historical browse data is closer to the actual requirements of the user, and the data display efficiency can be improved.
An embodiment of the present application further provides a method for displaying data, where the method is applied to a server, and as shown in fig. 5, a specific processing procedure includes:
step 501, a first data request sent by a client is received.
The first data request carries a target search identifier.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 101, and is not described herein again.
Step 502, according to the received target search identifier, a search result list is obtained through searching.
The search result list comprises data identifications of the target data, and the total number of the data identifications in the search result list is larger than the loading number of each page.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 102, and is not described herein again.
Step 503, according to the number of loads per page, sequentially dividing the search result list into at least two sub-lists, and determining the page number corresponding to the sub-lists.
In implementation, the server may divide the data identifiers included in the search result list by using the loading number of each page as a dividing node according to the arrangement order of the data identifiers in the search result list, so as to obtain at least two sub-lists. Then, the server may determine the page number corresponding to the sub-list, and obtain the corresponding relationship between the sub-list and the page number.
For example, the server may use 10 loading numbers per page as dividing nodes according to the arrangement order of the data identifiers in the search result list, and perform the data identifier a included in the search result list1~A100And dividing to obtain 10 sub-lists, and determining that the page number corresponding to the sub-lists is 1-10.
Step 504, determining a sub-list corresponding to the home page, and determining that the target data corresponding to the data identifier is the first data according to the data identifier in the sub-list corresponding to the home page.
In an implementation, the server may determine the sub-list with the corresponding page number 1 as the sub-list corresponding to the top page. Then, the server may determine target data corresponding to the data identifier according to the data identifier included in the sub-list corresponding to the home page and a correspondence between the pre-stored data identifier and the data, so as to obtain the first data.
And step 505, feeding back the first data to the client.
Step 506, receiving a second data request sent by the client.
And the second data request carries the page number of the page data to be loaded.
In implementation, when a user wants to browse data of other pages, the user may perform a preset operation to generate a trigger instruction, where the preset operation may be to click a page identifier in a preset display page; the preset operation may also be clicking a page turning identifier for representing the next page in the preset display page. The client may receive the trigger instruction and generate a second data request containing the page number of the page data to be loaded, and then the client may send the second data request to the server. The specific process of the client generating the second data request will be described in detail later.
The server may then receive a second data request sent by the client.
Step 507, obtaining a sub-list corresponding to the page number according to the page number of the page display data to be loaded.
In implementation, the server may determine the sub-list corresponding to the page number of the page data to be loaded according to the correspondence between the sub-list and the page number.
And step 508, determining that the target data corresponding to the data identifier in the sub-list is the second data according to the data identifier in the obtained sub-list.
In implementation, the server may obtain the data identifier included in the obtained sub-list, and determine, as the second data, the target data corresponding to the data identifier in the sub-list in the correspondence between the pre-stored data identifier and the data.
Step 509, feeding back the second data to the client.
In the embodiment of the application, after receiving the first data request, the server may search to obtain a search result list according to the received target search identifier, then sequentially divide the search result list into at least two sub-lists according to the loading number of each page, and determine the page number corresponding to the sub-lists, so that the server may determine the second data only by receiving the page number of the page display data to be loaded sent by the client. According to the method and the device, the problems that in the prior art, the search result list needs to be determined again when the server receives the data request every time, and the determined target data possibly have the same data are solved, meanwhile, the server does not need to detect the determined target data again, whether the data which are repeated with the data which are sent to the client side exist or not, and the efficiency of displaying the data can be effectively improved.
Optionally, an embodiment of the present application provides an implementation manner in which a server searches for a search result list according to a target search identifier, where a specific processing flow is as follows:
step 1, obtaining a second receiving time for receiving the first data request.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 201, and is not described herein again.
And 2, determining a target receiving time period to which the second receiving time belongs and the target number of the historical browsing data corresponding to the target receiving time period according to the corresponding relation between the pre-stored receiving time period and the number of the historical browsing data.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 202, and is not described herein again.
And 3, selecting a target number of data identifications from the data identifications of the target data corresponding to the target search identification to obtain a search result list.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 203, and is not described herein again.
In the embodiment of the application, after the data identification of the target data is determined, the server determines the target number of the historical browsing data corresponding to the first data request according to the corresponding relationship between the pre-stored receiving time period and the number of the historical browsing data, selects the data identification of the target number from the data identification of the target data, and generates the search result list. The server generates a search result list containing a target number of data identifications of the historical browsing data, so that the server can determine the target data based on the data identifications in the search result list in a target receiving time period, and repeated target data are prevented from being sent to the client.
An embodiment of the present application further provides a method for displaying data, where the method is applied to a client, where the client may be an electronic device installed with an application program, and the client maintains a communication connection with a preset server, as shown in fig. 6, a specific processing flow of the method includes:
step 601, receiving a data search instruction.
The data search instruction carries a target search identifier, and the target search identifier comprises a target keyword searched by a user.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 301, and is not described herein again.
Step 602, a first data request is sent to a preset server.
The first data request carries a target search identifier.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 302, which is not described herein again.
Step 603, receiving the first data fed back by the server, and displaying the received first data.
Step 604, when receiving a trigger instruction for loading page data corresponding to other page numbers, sending a second data request to the server.
And the second data request carries the page number of the page data to be loaded. When a user wants to browse other target data except the target data currently displayed on the preset display page of the client, a trigger instruction may be sent to the client, where the trigger instruction may carry a page number, for example, 3, of the page that the user wants to browse.
In implementation, the client may obtain the page number carried by the trigger instruction when receiving the trigger instruction for loading the page data corresponding to the other page numbers, and then the client may generate a second data request including the page number of the page display data to be loaded, and send the second data request to the server.
Step 605, displaying the received second data.
In the embodiment of the application, the client can receive a data search instruction and send a first data request carrying a target search identifier to a preset server, so that the server generates a search result list and a sub-list corresponding to a page number. Subsequently, when receiving the trigger instruction, the client may send a second data request carrying the page number of the page data to be loaded to the server, so that the server only needs to acquire the data identifier included in the sub-list corresponding to the page number, and thus the second data can be determined. Therefore, the display efficiency can be improved by ensuring that no repeated data exists between the received second data and the received target data.
The embodiment of the present application further provides a system for displaying data, where the system includes a server and a client, where the server may perform the method steps ofsteps 501 to 509, and the client may perform the method steps ofsteps 601 to 605. As shown in fig. 7, the specific processing procedure of the system includes:
instep 701, a client sends a first data request to a server.
The first data request carries a target search identifier.
In the implementation, the specific processing procedure of this step can refer to the descriptions ofstep 601 and step 602, and is not described herein again.
Step 702, the server searches to obtain a search result list according to the received target search identifier.
The search result list comprises data identifications of the target data, and the total number of the data identifications in the search result list is larger than the loading number of each page.
In the implementation, the specific processing procedure of this step may refer to the descriptions ofstep 501 and step 502, which are not described herein again.
Step 703, the server divides the search result list into at least two sub-lists according to the loading number of each page, and determines the page number corresponding to the sub-lists.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 503, which is not described herein again.
Step 704, the server determines a sub-list corresponding to the home page, and determines target data corresponding to the data identifier as first data according to the data identifier in the sub-list corresponding to the home page; and feeding back the first data to the client.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 504 and step 505, which is not described herein again.
Step 705, the client displays the received first data.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 603, and is not described herein again.
Step 706, when the client receives a trigger instruction for loading page data corresponding to other page numbers, the client sends a second data request to the server.
And the second data request carries the page number of the page data to be loaded.
In the implementation, the specific processing procedure of this step may refer to the description ofstep 604, which is not described herein again.
Step 707, the server obtains a sub-list corresponding to the page number according to the page number of the page data to be loaded; determining target data corresponding to the data identification in the sub-list as second data according to the data identification in the obtained sub-list; and feeding back the second data to the client.
In the implementation, the specific processing procedure of this step may refer to the descriptions ofstep 506,step 507,step 508, and step 509, which are not described herein again.
Instep 708, the client displays the received second data.
The embodiment of the application provides a display data system, which comprises a server and a client, wherein the client can generate and send a first data request with a target search identifier to the server. Then, the server may determine a search result list according to the target search identifier, sequentially divide the search result list into at least two sub-lists according to the number of loads per page, and determine page numbers corresponding to the sub-lists. Subsequently, when a trigger instruction is received, the client only needs to generate and send a second data request carrying the page number of the page display data to be loaded to the server, and the server can determine the sub-list corresponding to the page number, then determine the data identifier contained in the sub-list as second data, and send the second data to the client. Since the server displays data based on the determined search result list, it is possible to achieve an improvement in the efficiency of displaying data.
Optionally, the server may determine the search result list according to a pre-stored correspondence between the reception time period and the number of the historical browsing data, and the target search identifier carried in the received first data request. For a specific processing procedure, reference may be made to theabove step 201 to step 203, which are not described herein again.
The manner in which the server obtains the corresponding relationship between the receiving time period and the number of the historical browsing data is various, and specific implementation manners may refer to the description of the first manner and the second manner, which is not described herein again.
An embodiment of the present application further provides an apparatus for displaying data, where the apparatus is applied to a server, and as shown in fig. 8, the apparatus includes:
afirst receiving module 810, configured to receive a first data request sent by a client, where the first data request carries a target search identifier;
a searchingmodule 820, configured to search to obtain a search result list according to the received target search identifier; the search result list comprises data identifications of target data, and the total number of the data identifications in the search result list is greater than the loading number of each page;
a first determiningmodule 830, configured to obtain a data identifier of the display data of the home page according to the search result list and the loading number of each page;
afirst sending module 840, configured to determine that target data corresponding to a data identifier of the home page display data is first data, and feed back the first data and the search result list to the client;
asecond receiving module 850, configured to receive a second data request sent by the client, where the second data request carries a data identifier of page display data to be loaded;
a second determiningmodule 860, configured to determine, according to the data identifier in the received second data request, that the target data corresponding to the data identifier in the second data request is second data;
asecond sending module 870, configured to feed back the second data to the client.
Optionally, the search module includes:
the obtaining submodule is used for obtaining second receiving time for receiving the first data request;
the determining submodule is used for determining a target receiving time period to which the second receiving time belongs and the target number of the historical browsing data corresponding to the target receiving time period according to the corresponding relation between the pre-stored receiving time period and the number of the historical browsing data;
and the selection submodule is used for sequentially selecting the data identifications of the target number according to a preset sorting rule from the data identifications of the target data corresponding to the target search identification to obtain a search result list.
The data display device is applied to a server, and the server can search to obtain a search result list comprising a data identifier of target data when receiving a first data request carrying a target search identifier; feeding back the search result list to the client; and the client side sends the second data request based on the search result list, so that the second data can be determined directly based on the data identifier of the loaded page display data carried by the second data request, and the second data is sent to the client side. Since the server displays data based on the determined search result list, it is possible to achieve an improvement in the efficiency of displaying data.
An embodiment of the present application further provides a device for displaying data, where the device is applied to a client, and as shown in fig. 9, the device includes:
afirst receiving module 910, configured to receive a data search instruction, where the data search instruction carries a target search identifier;
afirst sending module 920, configured to send a first data request carrying the target search identifier to a preset server;
asecond receiving module 930, configured to receive the first data and the search result list fed back by the server;
asecond sending module 940, configured to, when receiving a trigger instruction for loading page data corresponding to another page number, obtain a data identifier of the page display data to be loaded according to the search result list, and send a second data request to the server, where the second data request carries the data identifier of the page display data to be loaded;
adisplay module 950, configured to receive and display the second data sent by the server.
The embodiment of the application provides a device for displaying data, which is applied to a client, wherein the client can receive a data search instruction and send a first data request carrying a target search identifier to a preset server, and then receive first data and a search result list fed back by the server, so that when a trigger instruction for loading page data corresponding to other page numbers is received, a data identifier of the page display data to be loaded is obtained according to the search result list, and a second data request is sent to the server, so that the server can determine second data only by receiving the data identifier of the page display data to be loaded. Because the client directly sends the data identifier of the data to be displayed, no repeated data exists between the received second data and the received target data, and the display efficiency can be improved.
An embodiment of the present application further provides an apparatus for displaying data, where the apparatus is applied to a server, and as shown in fig. 10, the apparatus includes:
afirst receiving module 1010, configured to receive a first data request sent by a client, where the first data request carries a target search identifier;
asearching module 1020, configured to search for a search result list according to the received target search identifier; the search result list comprises data identifications of target data, and the total number of the data identifications in the search result list is greater than the loading number of each page;
adividing module 1030, configured to sequentially divide the search result list into at least two sub-lists according to the number of loads per page, and determine page numbers corresponding to the sub-lists;
a first determiningmodule 1040, configured to determine a sub-list corresponding to a home page, and determine, according to a data identifier in the sub-list corresponding to the home page, that target data corresponding to the data identifier is first data;
asending module 1050, configured to feed back the first data to the client;
asecond receiving module 1060, configured to receive a second data request sent by the client, where the second data request carries a page number of page data to be loaded;
a second determiningmodule 1070, configured to obtain, according to the page number of the page data to be loaded, a sub-list corresponding to the page number;
a third determiningmodule 1080, configured to determine, according to the data identifier in the obtained sub-list, that the target data corresponding to the data identifier in the sub-list is second data;
the sendingmodule 1050 is further configured to feed back the second data to the client.
Optionally, the search module includes:
the obtaining submodule is used for obtaining second receiving time for receiving the first data request;
the determining submodule is used for determining a target receiving time period to which the second receiving time belongs and the target number of the historical browsing data corresponding to the target receiving time period according to the corresponding relation between the pre-stored receiving time period and the number of the historical browsing data;
and the selection submodule is used for sequentially selecting the data identifications of the target number according to a preset sorting rule from the data identifications of the target data corresponding to the target search identification to obtain a search result list.
The embodiment of the application provides a device for displaying data, which is applied to a server, wherein the server can search to obtain a search result list according to a received target search identifier after receiving a first data request, then sequentially divide the search result list into at least two sub-lists according to the loading number of each page, and determine page numbers corresponding to the sub-lists, so that the server can determine second data only by receiving the page numbers of page display data to be loaded, which are sent by a client. According to the method and the device, the problems that in the prior art, the search result list needs to be determined again when the server receives the data request every time, and the determined target data possibly have the same data are solved, meanwhile, the server does not need to detect the determined target data again, whether the data which are repeated with the data which are sent to the client side exist or not, and the efficiency of displaying the data can be effectively improved.
An embodiment of the present application further provides a device for displaying data, where the device is applied to a client, as shown in fig. 11, the device includes:
afirst receiving module 1110, configured to receive a data search instruction, where the data search instruction carries a target search identifier;
afirst sending module 1120, configured to send a first data request to a preset server, where the first data request carries a target search identifier;
asecond receiving module 1130, configured to receive the first data fed back by the server;
adisplay module 1140 for displaying the received first data;
asecond sending module 1150, configured to send a second data request to the server when a trigger instruction for loading page data corresponding to another page number is received, where the second data request carries a page number of the page data to be loaded;
the display module 1160 is further configured to display the received second data.
The embodiment of the application provides a device for displaying data, which is applied to a client, wherein the client can receive a data search instruction and send a first data request carrying a target search identifier to a preset server, so that the server generates a search result list and a sub-list corresponding to a page number. Subsequently, when receiving the trigger instruction, the client may send a second data request carrying the page number of the page data to be loaded to the server, so that the server only needs to acquire the data identifier included in the sub-list corresponding to the page number, and thus the second data can be determined. Therefore, the display efficiency can be improved by ensuring that no repeated data exists between the received second data and the received target data.
An embodiment of the present application further provides an electronic device, as shown in fig. 12, including aprocessor 1201, acommunication interface 1202, amemory 1203, and acommunication bus 1204, where theprocessor 1201, thecommunication interface 1202, and thememory 1203 complete communication with each other through thecommunication bus 1204,
amemory 1203 for storing a computer program;
theprocessor 1201 is configured to implement the above-mentioned method steps for displaying data when executing the program stored in thememory 1203.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned methods for displaying data.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described embodiments of the method of displaying data.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
When the method is applied to a server, a search result list comprising the data identifier of target data can be obtained by searching when a first data request carrying the target search identifier is received; feeding back the search result list to the client; and the client side sends the second data request based on the search result list, so that the second data can be determined directly based on the data identifier of the loaded page display data carried by the second data request, and the second data is sent to the client side. Since the server displays data based on the determined search result list, it is possible to achieve an improvement in the efficiency of displaying data.
It is 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

CN201910131041.7A2019-02-202019-02-20Method, device and system for displaying dataActiveCN109885729B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910131041.7ACN109885729B (en)2019-02-202019-02-20Method, device and system for displaying data

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910131041.7ACN109885729B (en)2019-02-202019-02-20Method, device and system for displaying data

Publications (2)

Publication NumberPublication Date
CN109885729A CN109885729A (en)2019-06-14
CN109885729Btrue CN109885729B (en)2021-07-20

Family

ID=66928793

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910131041.7AActiveCN109885729B (en)2019-02-202019-02-20Method, device and system for displaying data

Country Status (1)

CountryLink
CN (1)CN109885729B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112306604B (en)*2020-08-212022-09-23海信视像科技股份有限公司Progress display method and display device for file transmission
CN112866339B (en)*2020-12-302022-12-06金蝶软件(中国)有限公司Data transmission method and device, computer equipment and storage medium
CN113468388B (en)*2021-06-302024-05-03深圳集智数字科技有限公司Control method, device, server and storage medium
CN114722291A (en)*2022-04-152022-07-08贝壳找房网(北京)信息技术有限公司Target searching method and device

Citations (17)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103207873A (en)*2012-01-172013-07-17腾讯科技(深圳)有限公司Method and system for displaying exclusive user page
CN103258042A (en)*2013-05-242013-08-21百度在线网络技术(北京)有限公司Method and device for generating webpage background automatically
CN103473234A (en)*2012-06-072013-12-25中兴通讯股份有限公司Method, device and system for deriving report forms from web inquiring system
CN103488720A (en)*2013-09-122014-01-01金蝶软件(中国)有限公司Method, system and client for viewing data
CN103778135A (en)*2012-10-182014-05-07厦门雅迅网络股份有限公司Method for distribution storage and paging querying of real-time data
CN103854113A (en)*2012-11-292014-06-11瀚科科技(大连)有限公司 General method of maintenance management system
CN103974085A (en)*2014-04-232014-08-06华为软件技术有限公司IPTV control method, device and system
CN104268295A (en)*2014-10-242015-01-07迈普通信技术股份有限公司Data query method and device
CN104281648A (en)*2014-05-122015-01-14浙江大学Search-result multi-dimensional navigating method on basis of dimension label
CN104618809A (en)*2014-07-172015-05-13腾讯科技(北京)有限公司Program information display method, device and system
CN106131703A (en)*2016-06-282016-11-16青岛海信传媒网络技术有限公司A kind of method of video recommendations and terminal
CN106649697A (en)*2016-12-192017-05-10蒋子轩Online software interactive experiential method
CN107016045A (en)*2017-02-172017-08-04阿里巴巴集团控股有限公司A kind of method and device of paged data inquiry
CN107196980A (en)*2016-03-142017-09-22阿里巴巴集团控股有限公司The control method of webpage representation stream, system and its apparatus
CN107346325A (en)*2016-05-042017-11-14中国石油集团长城钻探工程有限公司Information query method and device
CN107679077A (en)*2017-08-282018-02-09平安科技(深圳)有限公司Implementation method, device, computer equipment and the storage medium of paging
CN109241050A (en)*2018-07-102019-01-18阿里巴巴集团控股有限公司A kind of data query method, apparatus and system, electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US10585969B2 (en)*2012-07-072020-03-10Jianqing WuSystem and method for extending database functions by a web application and computer readable media
CN104794114B (en)*2014-01-162018-04-03阿里巴巴集团控股有限公司A kind of data processing method and device
CN105843956A (en)*2016-04-142016-08-10北京搜狐新媒体信息技术有限公司Paging query method and system
CN106250416B (en)*2016-07-222020-08-21努比亚技术有限公司Method, device and server for processing paging data
CN106708568B (en)*2016-12-072020-03-27微梦创科网络科技(中国)有限公司Method and device for loading client content in page-by-page manner
US10698894B2 (en)*2017-05-122020-06-30Microsoft Technology Licensing, LlcGenerating reports for enterprise pages based upon instrumentation data generated by client computing devices
CN109359226A (en)*2018-11-012019-02-19广州品唯软件有限公司 A data acquisition method and related device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103207873A (en)*2012-01-172013-07-17腾讯科技(深圳)有限公司Method and system for displaying exclusive user page
CN103473234A (en)*2012-06-072013-12-25中兴通讯股份有限公司Method, device and system for deriving report forms from web inquiring system
CN103778135A (en)*2012-10-182014-05-07厦门雅迅网络股份有限公司Method for distribution storage and paging querying of real-time data
CN103854113A (en)*2012-11-292014-06-11瀚科科技(大连)有限公司 General method of maintenance management system
CN103258042A (en)*2013-05-242013-08-21百度在线网络技术(北京)有限公司Method and device for generating webpage background automatically
CN103488720A (en)*2013-09-122014-01-01金蝶软件(中国)有限公司Method, system and client for viewing data
CN103974085A (en)*2014-04-232014-08-06华为软件技术有限公司IPTV control method, device and system
CN104281648A (en)*2014-05-122015-01-14浙江大学Search-result multi-dimensional navigating method on basis of dimension label
CN104618809A (en)*2014-07-172015-05-13腾讯科技(北京)有限公司Program information display method, device and system
CN104268295A (en)*2014-10-242015-01-07迈普通信技术股份有限公司Data query method and device
CN107196980A (en)*2016-03-142017-09-22阿里巴巴集团控股有限公司The control method of webpage representation stream, system and its apparatus
CN107346325A (en)*2016-05-042017-11-14中国石油集团长城钻探工程有限公司Information query method and device
CN106131703A (en)*2016-06-282016-11-16青岛海信传媒网络技术有限公司A kind of method of video recommendations and terminal
CN106649697A (en)*2016-12-192017-05-10蒋子轩Online software interactive experiential method
CN107016045A (en)*2017-02-172017-08-04阿里巴巴集团控股有限公司A kind of method and device of paged data inquiry
CN107679077A (en)*2017-08-282018-02-09平安科技(深圳)有限公司Implementation method, device, computer equipment and the storage medium of paging
CN109241050A (en)*2018-07-102019-01-18阿里巴巴集团控股有限公司A kind of data query method, apparatus and system, electronic equipment

Also Published As

Publication numberPublication date
CN109885729A (en)2019-06-14

Similar Documents

PublicationPublication DateTitle
US12141183B2 (en)Dynamic partition allocation for query execution
US11966391B2 (en)Using worker nodes to process results of a subquery
US11924021B1 (en)Actionable event responder architecture
US10942946B2 (en)Automatic triage model execution in machine data driven monitoring automation apparatus
US10942960B2 (en)Automatic triage model execution in machine data driven monitoring automation apparatus with visualization
US11663227B2 (en)Generating a subquery for a distinct data intake and query system
US11461334B2 (en)Data conditioning for dataset destination
US10795884B2 (en)Dynamic resource allocation for common storage query
US11232100B2 (en)Resource allocation for multiple datasets
CN109885729B (en)Method, device and system for displaying data
US20200364279A1 (en)Unified data processing across streaming and indexed data sets
CN109741060B (en)Information inquiry system, method, device, electronic equipment and storage medium
US20200257691A1 (en)Executing untrusted commands from a distributed execution model
US20180089306A1 (en)Query acceleration data store
US20180089269A1 (en)Query processing using query-resource usage and node utilization data
US11403346B2 (en)Method and device for searching for information in applications
CN110427386B (en)Data processing method, device and computer storage medium
US9852112B2 (en)Electronic discovery insight tool
CN110928739B (en)Process monitoring method and device and computing equipment
US10135800B2 (en)Electronic discovery insight tool
CN116955817A (en)Content recommendation method, device, electronic equipment and storage medium
CN112437148A (en)Service request processing method and device, service server and system
US20160378721A1 (en)Electronic Discovery Insight Tool
CN103944935A (en)Method and device for releasing web site information
EP2551781A1 (en)Data analysis system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp