CN111444448B - Data processing method, server and system - Google Patents

Data processing method, server and system Download PDF

Info

Publication number
CN111444448B
CN111444448B CN202010125770.4A CN202010125770A CN111444448B CN 111444448 B CN111444448 B CN 111444448B CN 202010125770 A CN202010125770 A CN 202010125770A CN 111444448 B CN111444448 B CN 111444448B
Authority
CN
China
Prior art keywords
data
interest
pieces
array
page
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
CN202010125770.4A
Other languages
Chinese (zh)
Other versions
CN111444448A (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 Cheerbright Technologies Co Ltd
Original Assignee
Beijing Cheerbright Technologies 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 Cheerbright Technologies Co Ltd filed Critical Beijing Cheerbright Technologies Co Ltd
Priority to CN202010125770.4A priority Critical patent/CN111444448B/en
Publication of CN111444448A publication Critical patent/CN111444448A/en
Application granted granted Critical
Publication of CN111444448B publication Critical patent/CN111444448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data processing method, which is suitable for being executed in a computing device, the computing device is in communication connection with a client and stores a plurality of pieces of data, each piece of data has a corresponding data identifier, and the client is suitable for presenting a page containing one or more pieces of data, and the method comprises the steps of: receiving a page refresh request from a client, wherein the page refresh request comprises a request identifier and a first array, and the first array comprises a first number of data identifiers; acquiring a second array corresponding to the request identifier, wherein the second array comprises a second number of data identifiers, and the first number of data identifiers contained in the first array are contained in the second number of data identifiers contained in the second array; acquiring a plurality of pieces of data with a first quantity from the stored plurality of pieces of data according to the first array and the second array; and returning the acquired pieces of data to the client to present the refreshed page. The invention also discloses a corresponding server and a data processing system.

Description

Data processing method, server and system
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a data processing method, a server, and a system.
Background
The server and the client are generally interacted by using interface requests, for example, when the APP is started, different interfaces are called to respectively realize operations of opening the home page and submitting information, and common interface request modes comprise searching, adding, modifying, deleting and the like. The Post type interface is used for submitting data to the specified resources to process requests, such as submitting forms and uploading files, the Get type interface is used for sending requests to the specified resources to request specified page information, and returning the entity main body to be used for inquiring data, such as menu list display, search display, order inquiry, coupon inquiry and the like, which are needed by other systems to return data. The most recent interface requests often return a series of data to the user, who then browses the list data by refreshing or loading. When the user does not browse the returned data and performs the refresh operation, the server side can repeatedly read the database, so that the interface returns the data slowly, and the data resource is not fully utilized. And when a user repeatedly refreshes a data list, a large amount of unbrowded data exists and is not exposed, so that the data resource is wasted greatly.
In the prior art, a cache field needs to be accessed at a server, and the cache field is returned to a client when the client requests the cache field. When the client requests again, the client reports the request to the server, the server compares the obtained cache field with the local cache field, and whether the server returns new data to the client is controlled by whether the two fields are identical and the time difference exists. The method is that when the user repeatedly refreshes the page, if the caching condition of the server is not met, new data is not returned to the client. However, the user may see that the first few pieces of content are not interested and the page is refreshed immediately, in which case the user does not get the latest content and the experience is poor.
Disclosure of Invention
To this end, the present invention provides a solution to the data processing in an attempt to solve or at least alleviate the above-presented problems.
According to one aspect of the present invention there is provided a data processing method performed in a computing device communicatively coupled to a client and storing a plurality of pieces of data, each piece of data having a corresponding data identity, the client being adapted to present a page containing one or more pieces of data, the method comprising the steps of: receiving a page refresh request from a client, wherein the page refresh request comprises a request identifier and a first array, and the first array comprises a first number of data identifiers; acquiring a second array corresponding to the request identifier, wherein the second array comprises a second number of data identifiers, and the first number of data identifiers contained in the first array are contained in the second number of data identifiers contained in the second array; acquiring a plurality of pieces of data with a first quantity from the stored plurality of pieces of data according to the first array and the second array; and returning the acquired pieces of data to the client to present the refreshed page.
Optionally, in the data processing method according to the present invention, the data has a corresponding interest identifier, and the step of acquiring a plurality of pieces of data according to the first array and the second array includes: acquiring an interest strategy according to an interest identifier corresponding to the data identifier in the second array, wherein the interest strategy comprises the proportion of the interest identifier to the interest identifier; if the first quantity is not smaller than the first threshold value, corresponding data are obtained according to the interest strategy; if the first number is smaller than the first threshold value, updating the interest strategy, and acquiring corresponding data according to the updated interest strategy.
Optionally, in the data processing method according to the present invention, the step of updating the interest policy includes: reducing the proportion of original interest identifiers in the interest strategy, wherein the original interest identifiers are the same as the interest identifiers of the data corresponding to the data identifiers in the first array; adding a new interest identifier in the interest strategy, wherein the new interest identifier is different from the interest identifier of the data corresponding to the data identifier in the first array.
Optionally, in the data processing method according to the present invention, before receiving the page refresh request, the method includes the steps of: acquiring a plurality of pieces of data with a second number from the stored plurality of pieces of data, and generating a request identifier; generating a second plurality of groups according to the data identifications of the plurality of pieces of data of the second plurality; storing the request identification in association with the second number; the request identification and the second plurality of pieces of data are returned to the client to present the page prior to receiving the page brush request.
Optionally, in the data processing method according to the present invention, before returning the acquired new data to the client to present the refreshed page, the method includes the steps of: in the second array, replacing the data identifier of the first array with the data identifier of the acquired new data; the request identification is stored in association with the second set.
Optionally, in the data processing method according to the present invention, a plurality of pieces of data stored in the computing device are stored in a database.
Optionally, in the data processing method according to the present invention, the step of storing the request identification and the second group in association includes: the request identification is stored in association with the second set in the local cache.
Optionally, the interest identification includes: emotion, eight diagrams, star, fashion, campus.
Optionally, the first threshold is two-thirds of the second number.
According to yet another aspect of the present invention there is provided a data processing method, the method being performed in a computing device communicatively coupled to a server side, adapted to render a page containing one or more pieces of data, the method comprising: acquiring a refresh request on a current presentation page, generating a page refresh request according to data presented by the current page, wherein the page refresh request comprises a request identifier and a first array, and the first array comprises a first number of data identifiers; and sending the page refreshing request to the server, and receiving a plurality of pieces of data returned by the server to present the refreshed page.
Optionally, in the data processing method according to the present invention, before acquiring the refresh request on the current page, the method further includes the steps of: and receiving the request identification returned by the server and a second quantity of pieces of data, storing the request identification locally, and presenting the second quantity of pieces of data on the current page.
Optionally, in the data processing method according to the present invention, the step of generating the page refresh request according to the data of the current page presentation includes: generating a first array according to the data identifiers of the plurality of data browsed by the current page, obtaining a request identifier from the local, and generating a page refreshing request according to the request identifier and the first array.
Optionally, in the data processing method according to the present invention, the step of receiving a plurality of pieces of data returned by the server to present the refreshed page includes: and replacing the data of the browsed data of the current page with the data returned by the server side to present the refreshed page.
Optionally, in the data processing method according to the present invention, the data has a corresponding interest identifier, and the step of receiving the pieces of data returned by the server to present the refreshed page further includes: if the first quantity is not smaller than the first threshold value, the interest strategy of the returned pieces of data is the same as the interest strategy of the pieces of data presented by the current page, and the interest strategy comprises an interest identifier and the proportion of the interest identifier; if the first number is smaller than the first threshold value, the interest strategy of the returned pieces of data is different from the interest strategy of the pieces of data presented by the current page, and the interest strategy comprises an interest identifier and a proportion of the interest identifier.
Optionally, in the data processing method according to the present invention, if the first number is smaller than the first threshold, the interest policy of the returned pieces of data and the interest policy of the pieces of data presented by the current page are different, including: in the interest strategy of the returned pieces of data, the proportion of the original interest identification is reduced, and the original interest identification is the same as the interest identification of the data presented by the current page; in the interest strategy of the returned pieces of data, new interest identifiers are added, and the new interest identifiers are different from those of the data presented by the current page.
Optionally, in the data processing method according to the present invention, the interest identification includes: emotion, eight diagrams, star, fashion, campus.
Optionally, in the data processing method according to the invention, the first threshold is two-thirds of the second number.
According to still another aspect of the present invention, there is provided a server including: the data storage device is suitable for storing a plurality of pieces of data, and each piece of data has a corresponding data identifier; a data processing device adapted to perform a data processing method as according to the present invention; and a cache adapted to store the request identification and the second array in the present invention.
According to yet another aspect of the present invention, there is also provided a data processing system comprising: a server adapted to perform a data processing method according to the present invention; a client, which is communicatively connected to a server, is adapted to perform another data processing method according to the invention.
According to the technical scheme, the request identifier and the first number of data identifiers which are required to be returned by the client side and are browsed in the refresh request sent by the client side are added, the second number of data identifiers which are required to be returned by the client side last time are stored in the server side, a plurality of pieces of data with the first number are obtained according to the first number of identifiers and the second number of identifiers, the data which are required to be returned to the client side last time are dynamically filled, time consumption of the server side on database operation each time is effectively reduced, and interface speed is increased.
Further, the data has corresponding interest identifications, and the interest types of the filling data are determined according to the first number of identifications and the second number of identifications, so that the recommendation strategy for the user is timely adjusted, the utilization rate of data resources is improved, the hits to interest points of different users are effectively increased, and the browsing experience of the user is optimized.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram of a data processing system 100 according to one embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to one embodiment of the invention;
FIG. 3 illustrates a flow chart of a data processing method 300 according to one embodiment of the invention;
FIG. 4 shows a flow chart of a data processing method 400 according to yet another embodiment of the invention;
fig. 5 shows a schematic diagram of a server 500 according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a schematic diagram of a data processing system 100 according to one embodiment of the invention. It should be noted that data processing system 100 in FIG. 1 is merely exemplary and that in particular implementations, there may be different numbers of clients and servers in data processing system 100, and the invention is not limited to the number of clients and servers included in the data processing system. As shown in FIG. 1, in data processing system 100, server 110 and client 120 are included. The server 110 may be one server or may be a server cluster formed by a plurality of servers, and the deployment mode of the server 110 is not limited in the present invention. The client 120 may be a terminal device having a display function, such as a mobile smart phone, a computer (including a notebook computer, a desktop computer), a tablet electronic device, a Personal Digital Assistant (PDA), or a smart wearable device, etc. The server 110 has stored therein a plurality of pieces of data, each piece of data having a corresponding data identification, the server 110 being communicatively coupled to the client 120 and adapted to present a page containing one or more pieces of data. In particular, client 120 includes applications running on its devices, such as news applications, shopping applications, browser applications, and the like. When a user opens a news home page in a browser application program, the user needs to communicate with a server to obtain data returned by the server, the returned data is usually an array, a plurality of pieces of news data are returned in the array, and the returned pieces of data are displayed on the home page. It is possible for the user to acquire new list data by refreshing or loading when all data is browsed or not browsed. According to the scheme, the latest data to be returned to the client is dynamically filled, so that the time consumption of the server to database operation each time is effectively reduced, and the interface speed is increased.
FIG. 2 illustrates a block diagram of a computing device 200, according to one embodiment of the invention. In a basic configuration 202, computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing including, but not limited to: a microprocessor (μp), a microcontroller (μc), a digital information processor (DSP), or any combination thereof. Processor 204 may include one or more levels of cache, such as a first level cache 210 and a second level cache 212, a processor core 214, and registers 216. The example processor core 214 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations, the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 206 may include an operating system 220, one or more applications 222, and program data 226. In some implementations, the application 222 can be arranged to operate on an operating system with program data 226.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to basic configuration 102 via bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. The example peripheral interface 244 may include a serial interface controller 254 and a parallel interface controller 256, which may be configured to facilitate communication via one or more I/O ports 258 and external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.). The example communication device 246 may include a network controller 260 that may be arranged to facilitate communication with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
The network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media in a modulated data signal, such as a carrier wave or other transport mechanism. A "modulated data signal" may be a signal that has one or more of its data set or changed in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or special purpose network, and wireless media such as acoustic, radio Frequency (RF), microwave, infrared (IR) or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In some embodiments, computing device 200 is implemented as a server, such as server 110 of FIG. 1, and is configured to perform data processing method 300 in accordance with the present invention.
In other embodiments, computing device 200 is implemented as a client, such as client 120 of FIG. 1, and is configured to perform data processing method 400 in accordance with the present invention.
FIG. 3 illustrates a flow chart of a data processing method 300 according to one embodiment of the invention. The data processing method 300 is suitable for execution in a computing device 200, such as the computing device 200 shown in fig. 2. The computing device is implemented as a server having stored therein a plurality of pieces of data, each piece of data having a corresponding data identification, the server being communicatively coupled to a client adapted to present a page containing one or more pieces of data. Such as news home pages in browser applications.
As shown in fig. 3, the method 300 begins at step S310. In step S310, a page refresh request is received from a client, the page refresh request including a request identification and a first array, the first array including a first number of data identifications.
The page refresh request is generated in response to the operation behavior of the user on the page where the data is displayed on the client, and the user page operation behavior type can be used for representing the page operation behavior type of the user on the preset resource bit, and can include, for example, clicking, long pressing, sliding and the like page operation behavior types.
The request identifier is used for marking the refresh request of the client to the same page, and is an identifier which is generated by the server and returned to the client when the server receives the page display request for the first time. The user display request is associated with the login account of the client, so that the server can be provided with an associated identifier for storing last returned data, the display data of the page can be more in line with personal requirements of the user, and targeted service can be promoted to the user.
The following is a scheme for generating a request identification. By calling the API interface created by the Zookeeper node to create a sequence node and returning the complete name of the node in the API return value, the global ID can be generated by utilizing the characteristic, and the steps are as follows:
1. the client creates a sequence node, such as a 'job-', through a call interface under a task of a specified type according to the task type;
2. after the creation is completed, a complete node name is returned, such as "job-00000001";
3. the client splice type and return value are taken as globally unique I D, such as "type2-job-00000001". The invention does not limit the scheme for generating the request identification, and can only mark the refresh request of the client to the same page.
The first array includes a first number of data identifications selected according to a user operation. According to one embodiment of the invention, the first array refers in particular to a data identification of a plurality of pieces of data according to which the page has been browsed by the user. Specifically, the content that has been currently displayed entirely within the visual screen range is added to the first array as data that has been browsed by the user, with the data identification of the data that has been browsed by the user. Because the user's browsing action scrolls the screen up and down, re-exposing the already exposed content, such action does not require recording. And judging whether the data identification is present or not when the data identification is added in the first array, and not adding if the data identification is present.
Next, in step S320, a second array corresponding to the request identifier is obtained at the server, where the second array includes a second number of data identifiers, and the first number of data identifiers included in the first array is in the second number of data identifiers included in the second array.
And the second group of storage servers store the data identification of the last returned data, namely the data identification of all the data displayed on the current page of the client side initiating the page refreshing request. Because the first array is a data identifier of the data that the current page has been browsed by the user, the data identifier in the first array is necessarily included in the second array. The second number is dependent on the advanced settings of the client or server, e.g. the number of news headlines is 20, and the second number is 20.
According to one embodiment of the present invention, when the server side receives the client side page display request for the first time, that is, before receiving the page refresh request, the method includes the steps of: and acquiring a plurality of pieces of data with a second number from the stored plurality of pieces of data, generating a request identifier, and generating a second array according to the data identifier of the plurality of pieces of data with the second number. The request identification and the second number of sets are stored in association, and the request identification and the second number of pieces of data are returned to the client to present the page prior to receiving the page brush request. The manner in which the request identifier is generated is described in detail above and will not be described in detail here. Specifically, the request identification and the second set are stored in association in a local cache.
Then in step S330, a plurality of pieces of data in a first number are acquired from the stored plurality of pieces of data according to the first array and the second array.
In the above description, the first number represents the number of the data pieces of the current page that have been browsed by the user, and only the server obtains only the data of the number of the data pieces that have been browsed by the user. If a plurality of pieces of data stored in the server are stored in the database, the times of reading the database are effectively reduced, and the data return rate and the resource utilization efficiency are improved.
According to another embodiment of the present invention, the data has a corresponding interest identifier, and the step of obtaining a plurality of pieces of data according to the first array and the second array includes: acquiring an interest strategy according to an interest identifier corresponding to the data identifier in the second array, wherein the interest strategy comprises the proportion of the interest identifier to the interest identifier; if the first quantity is not smaller than a first threshold value, corresponding data are obtained according to the interest strategy; if the first number is smaller than the first threshold value, updating the interest strategy, and acquiring corresponding data according to the updated interest strategy. Wherein, the interest identification includes: emotion, eight diagrams, star, fashion, campus. The invention is not limited if there are other types of interest. In particular, the first threshold is two-thirds of the second number.
For example, in the newwave news front page, the number of data pieces is shown as 20, and the second number is shown as 20. If the first quantity is not smaller than the first threshold, namely the number of data browsed by the user is close to 20, the user is considered to be interested in the data recommended last time, and the data is obtained continuously according to the interest strategy last time. If the first number is smaller than the first threshold, that is, the number of data browsed by the user is greatly different from 20, the data recommended last time is considered to be not interesting to the user, the interest strategy is updated, and the data are acquired according to the updated interest strategy.
Specifically, the step of updating the interest policy includes: reducing the proportion of original interest identifications in the interest strategy, wherein the original interest identifications are the same as the interest identifications of the data corresponding to the data identifications in the first array, namely reducing the proportion of interest types of the data browsed by the user; and adding a new interest identifier in the interest strategy, wherein the new interest identifier is different from the interest identifier of the data corresponding to the data identifier in the first array, namely, preferentially extracting the data of other interest types to fill the data. For example, before updating, the interest strategy is obtained according to the interest identifier corresponding to the data identifier in the second array, and the interest strategy of all the data displayed on the current page is that the emotion is: the eight diagrams: star = 1:1:3, the updated interest strategy is fashion: campus = 1:1. the invention is not limited to decreasing scale and specifically increasing interest flag types. The data matched with the starting user is promoted to the client, and the relevance of the page display data and the client user can be improved.
Finally, in step S340, the acquired pieces of data are returned to the client to present the refreshed page.
Before the acquired new data is returned to the client to present the refreshed page, the data identifier of the first array is replaced by the data identifier of the acquired new data in the second array, and the request identifier and the second array are stored in a correlated mode. Specifically, the request identification and the second set are stored in association in a local cache. And the data identification of all the data displayed on the current page of the client initiating the page refreshing request next time is stored in the second array.
According to the technical scheme, the request identifier and the first number of data identifiers which are required to be returned by the client side and are browsed in the refresh request sent by the client side are added, the second number of data identifiers which are required to be returned by the client side last time are stored in the server side, a plurality of pieces of data with the first number are obtained according to the first number of identifiers and the second number of identifiers, the data which are required to be returned to the client side last time are dynamically filled, time consumption of the server side on database operation each time is effectively reduced, and interface speed is increased.
Further, the data has corresponding interest identifications, and the interest types of the filling data are determined according to the first number of identifications and the second number of identifications, so that the recommendation strategy for the user is timely adjusted, the utilization rate of data resources is improved, the hits to interest points of different users are effectively increased, and the browsing experience of the user is optimized.
Correspondingly, fig. 4 shows a flow chart of a data processing method 400 according to an embodiment of the invention. The data processing method 400 is suitable for execution in a computing device 200, such as the computing device 200 shown in fig. 2. The computing device is implemented as a client communicatively coupled to a server, the client adapted to present pages containing one or more pieces of data. Such as news home pages in browser applications.
As shown in fig. 4, the method 400 begins at step S410. In step S410, a refresh request on a currently presented page is obtained, a page refresh request is generated from data presented by the current page, the page refresh request including a request identification and a first array, the first array including a first number of data identifications.
The page refresh request is generated in response to the operation behavior of the user on the page where the data is displayed on the client, and the user page operation behavior type can be used for representing the page operation behavior type of the user on the preset resource bit, and can include, for example, clicking, long pressing, sliding and the like page operation behavior types.
The request identifier is used for marking the refresh request of the client to the same page, and is an identifier which is generated by the server and returned to the client when the server receives the page display request for the first time. It should be noted that before the client generates the refresh request, the page must be displayed for the first request of the server. In this scheme, when a first request is initiated, the client uploads a request identifier of 0 to notify the server that the request is the first request. According to one embodiment of the invention, a request identifier returned by a server and a second number of pieces of data are received, the request identifier is stored locally, and the second number of pieces of data are presented on a current page. The second number is dependent on the advanced settings of the client or server, e.g. the number of news headlines is 20, and the second number is 20.
According to one embodiment of the invention, a first array is generated according to the data identifications of a plurality of pieces of data of which the current page has been browsed, a request identification is acquired from the local, and a page refreshing request is generated according to the request identification and the first array. The first array includes a first number of data identifications selected according to a user operation. According to one embodiment of the invention, the first array refers in particular to a data identification of a plurality of pieces of data according to which the page has been browsed by the user. Specifically, the content that has been currently displayed entirely within the visual screen range is added to the first array as data that has been browsed by the user, with the data identification of the data that has been browsed by the user.
Then in step S420, a page refresh request is sent to the server, and a plurality of pieces of data returned by the server are received to present the refreshed page.
The page refreshing request comprises a request identifier and a first array, wherein the request identifier is used for marking the refreshing request of the client to the same page, so that the server acquires a second array stored before returning the data to the client, and the second array comprises the data identifier of the data returned last time by the server, namely the data identifier of the second quantity of data displayed on the current page of the client when the page refreshing request is initiated. Because the first array is a data identifier of the data that the current page has been browsed by the user, the data identifier in the first array is necessarily included in the second array. The client only needs to acquire the data with the number of the browsed data, so that the data return rate and the resource utilization efficiency of the client are improved.
Further, the data has a corresponding interest identifier, and the step of receiving the pieces of data returned by the server to present the refreshed page further includes: if the first quantity is not smaller than a first threshold value, the interest strategy of the returned pieces of data is different from the interest strategy of the pieces of data presented by the current page, and the interest strategy comprises an interest identifier and the proportion of the interest identifier; if the first number is smaller than the first threshold, the interest strategy of the returned pieces of data is the same as that of the pieces of data presented by the current page, and the interest strategy comprises an interest identifier and a proportion of the interest identifier. Wherein, the interest identification includes: emotion, eight diagrams, star, fashion, campus. The invention is not limited if there are other types of interest. In particular, the first threshold is two-thirds of the second number.
Specifically, if the first number is not less than the first threshold, the interest policy of the returned pieces of data is different from the interest policy of the pieces of data presented by the current page, including: in the interest strategy of the returned pieces of data, the proportion of the original interest identification is reduced, and the original interest identification is the same as the interest identification of the data presented by the current page; in the interest strategy of the returned pieces of data, new interest identifiers are added, wherein the new interest identifiers are different from those of the data presented by the current page. According to the first number of identifiers and the second number of identifiers, the interest types of returned data are different, the recommendation strategy for the user is timely adjusted, the utilization rate of data resources is improved, the hits of interest points of different users are effectively increased, and the browsing experience of the user is optimized.
Fig. 5 shows a schematic diagram of a server 500 according to an embodiment of the invention. As shown in fig. 5, the server 500 includes a data storage device 510, a data processing apparatus 520, and a cache 530.
The data storage device 510 is adapted to store a plurality of data, each data having a respective data identity, the data processing means 520 is adapted to perform the data processing method as described in steps S310-S340, and the cache 530 is adapted to store the request identity and the second array associated therewith as described hereinbefore.
Specific steps and embodiments of data processing are disclosed in detail in the descriptions based on fig. 1-4, and are not repeated here.
The method of any one of A1-A3, before receiving a page refresh request, comprising the steps of:
acquiring a plurality of pieces of data with a second number from the stored plurality of pieces of data, and generating a request identifier;
generating a second group according to the data identification of the plurality of pieces of data of the second number;
storing said request identification in association with said second group;
and returning the request identification and a second plurality of pieces of data to the client to present the page before receiving the page brush request.
A5, the method of any one of A1-A4, before returning the acquired new data to the client to present the refreshed page, comprises the steps of:
In the second array, replacing the data identifier of the first array with the data identifier of the acquired new data;
the request identification is stored in association with a second number.
A6, the method of any of A1-A5, the plurality of pieces of data stored in the computing device being stored in a database.
The method of any one of A4-A6, the step of storing the request identification in association with a second number comprising:
the request identification is stored in association with the second set in a local cache.
A8, the method of any of A1-A7, the interest identification comprising: emotion, eight diagrams, star, fashion, campus.
A9, the method of any of A1-A8, the first threshold being two-thirds of the second number.
A11, the method of A10, before the refresh request on the current page is obtained, further comprises the steps of:
and receiving a request identifier returned by the server and a second quantity of pieces of data, storing the request identifier locally, and presenting the second quantity of pieces of data on the current page.
The method of a12, a10 or a11, the step of generating a page refresh request from data of a current page presentation comprising:
Generating a first array according to the data identifiers of the plurality of data browsed by the current page, obtaining a request identifier from the local, and generating a page refreshing request according to the request identifier and the first array.
A13, the method as in any one of A10-A12, wherein the step of receiving the pieces of data returned by the server to present the refreshed page comprises:
and replacing the data of the browsed data of the current page with the data returned by the server side to present the refreshed page.
A14, the method of any one of A10-A13, wherein the data has a corresponding interest identifier, and the step of receiving the pieces of data returned by the server to present the refreshed page further comprises:
if the first quantity is not smaller than a first threshold value, the interest strategy of the returned pieces of data is the same as the interest strategy of the pieces of data presented by the current page, and the interest strategy comprises interest identifications and the proportion of the interest identifications;
if the first quantity is smaller than a first threshold value, the interest strategy of the returned pieces of data is different from the interest strategy of the pieces of data presented by the current page, and the interest strategy comprises an interest identifier and a proportion of the interest identifier.
A15, the method of A14, wherein if the first number is smaller than a first threshold, the interest policy of the returned pieces of data is different from the interest policy of the pieces of data presented by the current page, including:
in the interest strategy of the returned pieces of data, the proportion of the original interest identification is reduced, and the original interest identification is the same as the interest identification of the data presented by the current page;
and adding a new interest identifier into the interest strategy of the returned pieces of data, wherein the new interest identifier is different from that of the data presented by the current page.
A16, the method of any of a10-a15, the interest identification comprising: emotion, eight diagrams, star, fashion, campus.
A17, the method of any of a10-a16, the first threshold being two-thirds of the second number.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the network data processing method of the present invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, computer readable media comprise computer storage media and communication media. Computer-readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.

Claims (9)

1. A data processing method performed in a computing device having stored therein a plurality of pieces of data, each piece of data having a respective data identity, the computing device being communicatively connected to a client adapted to present a page containing one or more pieces of data, the data having corresponding interest identities, the method comprising the steps of:
Receiving a page refresh request from the client, wherein the page refresh request comprises a request identifier and a first array, and the first array comprises a first number of data identifiers;
acquiring a second array corresponding to the request identifier, wherein the second array comprises a second number of data identifiers, and the first number of data identifiers contained in the first array are contained in the second number of data identifiers contained in the second array;
acquiring a plurality of pieces of data with a first quantity from the stored plurality of pieces of data according to the first array and the second array; and
returning the acquired pieces of data to the client to present the refreshed page;
wherein the step of obtaining a plurality of pieces of data according to the first array and the second array includes: obtaining an interest strategy according to an interest identifier corresponding to the data identifier in the second array, wherein the interest strategy comprises the proportion of the interest identifier to the interest identifier, obtaining corresponding data according to the interest strategy if the first number is not smaller than a first threshold value, updating the interest strategy if the first number is smaller than the first threshold value, and obtaining corresponding data according to the updated interest strategy.
2. The method of claim 1, the step of updating the interest policy comprising:
reducing the proportion of original interest identifications in the interest strategy, wherein the original interest identifications are the same as interest identifications of data corresponding to the data identifications in the first array;
and adding a new interest identifier in the interest strategy, wherein the new interest identifier is different from the interest identifier of the data corresponding to the data identifier in the first array.
3. A data processing method, the data processing method being performed in a computing device, the computing device being communicatively connected to a server side and adapted to present a page containing one or more pieces of data, the method comprising the steps of:
receiving a request identifier and a second number of pieces of data returned by a server, storing the request identifier locally, and presenting the second number of pieces of data on a current page;
acquiring a refresh request on a current presentation page, and generating a page refresh request according to data presented by the current page, wherein the page refresh request comprises a request identifier and a first array, and the first array comprises a first number of data identifiers;
the page refreshing request is sent to a server, and a plurality of pieces of data returned by the server are received to present the refreshed page;
The step of receiving a plurality of pieces of data returned by the server to present the refreshed page further comprises the steps of: if the first quantity is not smaller than a first threshold value, the interest strategy of the returned pieces of data is the same as the interest strategy of the pieces of data presented by the current page, the interest strategy comprises the proportion of interest identifications and the interest identifications, and if the first quantity is smaller than the first threshold value, the interest strategy of the returned pieces of data is different from the interest strategy of the pieces of data presented by the current page, and the interest strategy comprises the proportion of the interest identifications and the interest identifications.
4. A server, comprising:
the data storage device is suitable for storing a plurality of pieces of data, and each piece of data has a corresponding data identifier;
a data processing device adapted to perform the data processing method of any one of claims 1-3;
a cache adapted to store a request identity and a second array as claimed in any one of claims 1 to 3.
5. A data processing system, comprising:
a server adapted to perform the data processing method of any of claims 1-3;
a client, said client being communicatively connected to said server, adapted to perform the data processing method of claim 3.
6. A computing device, comprising:
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of claim 1 or 2.
7. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of claim 1 or 2.
8. A computing device, comprising:
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of claim 3.
9. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of claim 3.
CN202010125770.4A 2020-02-27 2020-02-27 Data processing method, server and system Active CN111444448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010125770.4A CN111444448B (en) 2020-02-27 2020-02-27 Data processing method, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010125770.4A CN111444448B (en) 2020-02-27 2020-02-27 Data processing method, server and system

Publications (2)

Publication Number Publication Date
CN111444448A CN111444448A (en) 2020-07-24
CN111444448B true CN111444448B (en) 2023-11-07

Family

ID=71652654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010125770.4A Active CN111444448B (en) 2020-02-27 2020-02-27 Data processing method, server and system

Country Status (1)

Country Link
CN (1) CN111444448B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114600793A (en) * 2022-03-18 2022-06-10 中国农业大学 Method, system, storage medium and equipment for automatically detecting cow mastitis

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872500A (en) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 Update processing method, device, server and the client of five application page data
CN108681550A (en) * 2018-03-30 2018-10-19 北京奇艺世纪科技有限公司 Page furbishing method, the control method of device and page furbishing, device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7831556B2 (en) * 2005-03-17 2010-11-09 International Business Machines Corporation Differential rendering and refreshing a portal page with a page delta

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872500A (en) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 Update processing method, device, server and the client of five application page data
CN108681550A (en) * 2018-03-30 2018-10-19 北京奇艺世纪科技有限公司 Page furbishing method, the control method of device and page furbishing, device

Also Published As

Publication number Publication date
CN111444448A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
KR102005054B1 (en) Launching applications from webpages
CN112868004B (en) Resource recommendation method and device, electronic equipment and storage medium
CN110245069B (en) Page version testing method and device and page display method and device
US20090313100A1 (en) System and method for previewing search results
JP7119124B2 (en) Action indicator for search behavior output element
US20130179773A1 (en) Method for online editing and publishing and device thereof
US9639627B2 (en) Method to search a task-based web interaction
CN110175306B (en) Method and device for processing advertisement information
WO2015081848A1 (en) Socialized extended search method and corresponding device and system
US10073826B2 (en) Providing action associated with event detected within communication
JP7233435B2 (en) Triggering locational expansion based on inferred intent
US20140089397A1 (en) Method, server, and client for pushing and displaying splash screen
CN111581473B (en) Webpage processing method
CN103577544B (en) A kind of method and device for providing information to be sent
CN107273393B (en) Image searching method and device for mobile equipment and data processing system
US20160315997A1 (en) File transfer method, device, and system
CN107430609B (en) Generation of new tab pages for browsers for enterprise environments
CN111444448B (en) Data processing method, server and system
CN112559913B (en) Data processing method, device, computing equipment and readable storage medium
CN107291904A (en) A kind of video searching method and device
CN109086304B (en) Electronic bookmark updating method, device and storage medium
CN116127219A (en) Method and device for displaying pages in applet and computer equipment
US10171687B2 (en) Providing content and attachment printing for communication
CN106452855B (en) Article label adding method and device
EP4330834A1 (en) Category recommendation with implicit item feedback

Legal Events

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