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

Data processing method, server and system Download PDF

Info

Publication number
CN111444448A
CN111444448A CN202010125770.4A CN202010125770A CN111444448A CN 111444448 A CN111444448 A CN 111444448A CN 202010125770 A CN202010125770 A CN 202010125770A CN 111444448 A CN111444448 A CN 111444448A
Authority
CN
China
Prior art keywords
data
interest
array
pieces
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.)
Granted
Application number
CN202010125770.4A
Other languages
Chinese (zh)
Other versions
CN111444448B (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

Images

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 computing equipment, wherein the computing equipment 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 following steps: receiving a page refreshing request from a client, wherein the page refreshing 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 included in the first array is in the second number of data identifiers included in the second array; acquiring a plurality of pieces of data with a first quantity from the plurality of pieces of stored 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 typically interact with each other by using an interface request, for example, when the APP is started, different interfaces are called to respectively implement operations of opening a home page and submitting information, and the common interface request modes include check, add, modify, delete and the like. The Post type interface is used for submitting data to a specified resource for processing requests, such as submitting a form and uploading a file, and the Get type interface is used for sending a request to a specific resource, requesting specified page information and returning to an entity body for data query, such as menu list display, search display, order query, coupon query and the like, which are used when other systems need to return data. Most interface requests today tend to return a series of data presentations to the user, who then browses the list data by refreshing or loading. When the user does not browse the returned data and carries out refreshing operation, the server can repeatedly read the database, so that the interface returns data slowly and the data resources are not fully utilized. And when a user refreshes a data list repeatedly, a large amount of unswept data are not exposed, and the data resource is greatly wasted.
In the prior art, a method for processing data needs to access a cache field at a server and return the cache field to a client when the client requests the cache field. And the client reports the request to the server again, the server compares the taken cache field with the local cache field, and controls whether the server returns new data to the client or not according to the fact whether the two fields are the same or not and the existing time difference. The method is only that when the user refreshes the page repeatedly, if the cache condition of the server side is not met, new data is not returned to the client side. However, the user may see that the first few items are not interesting and may refresh the page immediately, in which case the user may not obtain the latest content and experience is not good.
Disclosure of Invention
To this end, the present invention provides a data processing solution in an attempt to solve or at least alleviate the above-existing problems.
According to an aspect of the present invention, there is provided a data processing method, which is executed in a computing device, the computing device being in communication connection with a client and storing a plurality of pieces of data, each piece of data having a corresponding data identifier, the client being adapted to render a page containing one or more pieces of data, the method comprising the steps of: receiving a page refreshing request from a client, wherein the page refreshing 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 included in the first array is in the second number of data identifiers included in the second array; acquiring a plurality of pieces of data with a first quantity from the plurality of pieces of stored 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 the pieces of data according to the first array and the second array includes: obtaining an interest strategy according to the interest identification corresponding to the data identification in the second array, wherein the interest strategy comprises the proportion of the interest identification to the interest identification; if the first quantity is not less than the first threshold value, acquiring corresponding data according to the interest strategy; and if the first quantity 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 identification in the interest strategy, wherein the original interest identification is the same as the interest identification of the data corresponding to the data identification 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.
Optionally, in the data processing method according to the present invention, before receiving a page refresh request, the method includes: acquiring a second number of pieces of data from the stored pieces of data, and generating a request identifier; generating a second array according to the data identification of a second number of pieces of data; storing the request identification in association with the second array; and returning the request identification and the second number of pieces of data to the client to present the page before the page brushing request is received.
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: replacing the data identifier of the first array with the data identifier of the obtained new data in the second array; the request identity and the second number group are stored in association.
Alternatively, in the data processing method according to the present invention, a plurality of pieces of data stored in the computing device are stored in the database.
Optionally, in the data processing method according to the present invention, the step of storing the request identifier in association with the second array includes: the request identification and the second number group are stored in association in a local cache.
Optionally, the interest identification comprises: emotion, the eight diagrams, stars, fashion, campus.
Optionally, the first threshold is two-thirds of the second number.
According to a further aspect of the present invention, there is provided a data processing method, executed in a computing device, the computing device being in communication connection with a server and adapted to render a page containing one or more pieces of data, the method comprising: the method comprises the steps of obtaining a refreshing request on a current page to be presented, and generating a page refreshing request according to data presented by the current page, wherein the page refreshing 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 obtaining the refresh request on the current page, the method further includes: and receiving a request identification and a second number of pieces of data returned by the server, storing the request identification locally, and presenting the second number of pieces of data on the current page.
Optionally, in the data processing method according to the present invention, the step of generating a page refresh request according to data presented by a current page includes: and generating a first array according to the data identifiers of the plurality of pieces of data browsed by the current page, acquiring 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 plurality of pieces of data browsed on the current page with the plurality of pieces of data returned by the server side so as 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 a plurality of pieces of data returned by the server to present the refreshed page further includes: if the first quantity is not less 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 on the current page, and the interest strategy comprises the proportion of the interest identification to the interest identification; 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 on the current page, and the interest strategy comprises the proportion of the interest identifications to the interest identifications.
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 is different from the interest policy of the pieces of data presented on the current page, including: in the interest strategy of the returned data, the proportion of original interest identification is reduced, and the original interest identification is the same as the interest identification of the data presented on 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 the interest identifier of the data presented on the current page.
Optionally, in the data processing method according to the present invention, the interest identification includes: emotion, the eight diagrams, stars, fashion, campus.
Optionally, in the data processing method according to the present 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; data processing apparatus adapted to perform a data processing method as according to the invention; and the cache is suitable for storing the request identifier and the second array in the 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; the client, the client and the server are in communication connection and are adapted to perform another data processing method according to the invention.
According to the technical scheme of the invention, the request identification and the first number of data identifications browsed at the current page are added in the refreshing request sent by the client, the second number of data identifications returned by the last request of the client are stored in the server, the first number of pieces of data are obtained according to the first number of identifications and the second number of identifications, and the latest data to be returned to the client are dynamically filled, so that the time consumption of the server for operating the database every time is effectively reduced, and the interface speed is accelerated.
Furthermore, the data has corresponding interest identifications, and the interest types of the filling data are determined according to the first quantity of identifications and the second quantity of identifications, so that the recommendation strategy for the user is adjusted in time, the hit on different user interest points is effectively increased while the utilization rate of data resources is improved, 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 are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a data processing system 100, according to an embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to an embodiment of the invention;
FIG. 3 shows a flow diagram of a data processing method 300 according to one embodiment of the invention;
FIG. 4 shows a flow diagram 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 in particular implementations, there may be a different number of clients and servers in data processing system 100, and the present 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, a server 110 and a client 120 are included. The server 110 may be one server or a server cluster composed of a plurality of servers, and the deployment manner of the server 110 is not limited in the present invention. The client 120 may be a terminal device with a display function, such as a mobile smart phone, a computer (including a laptop computer and a desktop computer), a tablet electronic device, a Personal Digital Assistant (PDA) or a smart wearable device. The server 110 stores a plurality of pieces of data, each piece of data has a corresponding data identifier, and the server 110 is in communication connection with the client 120 and is adapted to present a page containing one or more pieces of data. In particular, client 120 includes applications running on its device, such as a news application, a shopping application, a browser application, and the like. When a user opens a news home page in a browser application program, the user needs to communicate with the server to obtain data returned by the server, the returned data is usually an array, a plurality of returned news data are in the array, and the returned data are displayed on the home page. The user may obtain new list data by refreshing or loading when all data is browsed or not browsed. The scheme dynamically fills the latest data to be returned to the client, thereby effectively reducing the time consumed by the operation of the server on the database every time and accelerating the interface speed.
FIG. 2 shows a block diagram of a computing device 200, according to one embodiment of the invention. In a basic configuration 202, the 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 the processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216 the example processor core 214 may include an arithmetic logic unit (A L U), 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. System memory 206 may include an operating system 220, one or more applications 222, and program data 226. In some embodiments, application 222 may be arranged to operate with program data 226 on an operating system.
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 the basic configuration 102 via the 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. Example peripheral interfaces 244 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with 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.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to facilitate communications with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
A 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, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made 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 private-wired network, and various 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 shows a flow diagram 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, a plurality of pieces of data are stored in the server, each piece of data has a corresponding data identifier, the server is in communication connection with a client, and the client is suitable for presenting a page containing one or more pieces of data. Such as a news home page in a browser application.
As shown in fig. 3, the method 300 begins at step S310. In step S310, a page refresh request is received from a client, where the page refresh request includes a request identifier and a first array, and the first array includes a first number of data identifiers.
The page refresh request is generated in response to the operation behavior of the user on the page where the data is presented at the client, and the user page operation behavior type may be used to represent the page operation behavior type of the user at the preset resource location, and may include, for example, the page operation behavior types such as click, long press, slide, and the like.
The request identifier is used for marking the refresh request of the client to the same page, and is an identifier generated and returned to the client by the server 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 not only can the server be provided with an associated identifier for storing the last returned data, but also the display data of the page can better meet the personal requirements of the user, and the targeted service is promoted to the user.
The following is one scheme for generating a request identification. By using the characteristic that a sequential node is created by calling an API interface created by the Zookeeper node, and the complete name of the node is returned in an API return value, a global ID can be generated, and the steps are as follows:
1. the client creates a sequential node, such as 'joba-', through a call interface under the task of the specified type according to the task type;
2. after the creation is completed, returning a complete node name, such as 'job00000001';
3. the client concatenates the type and return value as a global unique I D, such as "type 2-job-00000001". The scheme for generating the request identifier is not limited, and the client can uniquely mark the refreshing request of the client to the same page.
The first array comprises a first number of data identifications, and the data identifications are selected according to user operation. According to an embodiment of the present invention, the first array refers specifically to data identification according to a plurality of pieces of data of a page that have been browsed by a user. Specifically, the content that has been currently displayed completely within the visual screen range is added to the first array as the data that has been viewed by the user, with the data identification of the data that has been viewed by the user. Because the user's browsing action scrolls the screen up and down to re-expose the content that has been exposed, no recording is required for this action. Therefore, whether the data identifier exists is judged when the data identifier is added to the first array, and the data identifier is not added when the data identifier exists.
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 data identifier of the data returned last time by the second group of storage servers is the data identifier of all the data displayed on the current page of the client initiating the page refreshing request. Because the data identifier of the data of the current page browsed by the user is in the first array, the data identifier in the first array is necessarily contained in the second array. The second number depends on the client or server's advance settings, e.g. the number of newsgang home page show data pieces is 20, then the second number is 20.
According to an embodiment of the present invention, when a server receives a client page display request for the first time, that is, before receiving a page refresh request, the server includes the steps of: and acquiring a second number of pieces of data from the stored pieces of data, generating a request identifier, and generating a second array according to the data identifier of the second number of pieces of data. And storing the request identification and the second number group in an associated manner, and returning the request identification and the second number of pieces of data to the client to present the page before receiving the page brushing request. The manner of generating the request identifier is described in detail above, and is not described herein again. In particular, the request identification is stored in association with the second array in a local cache.
Subsequently, in step S330, a first number of pieces of data are acquired from the stored pieces of data according to the first array and the second array.
As mentioned above, the first array is the data identifier of the data browsed by the user on the current page, the first number represents the number of the data browsed by the user on the current page, and only the server side obtains the data of which the number is the number of the data browsed by the user. If a plurality of pieces of data stored in the server side 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 corresponding interest identifiers, and the step of obtaining the pieces of data according to the first array and the second array comprises: obtaining an interest strategy according to the interest identification corresponding to the data identification in the second array, wherein the interest strategy comprises the proportion of the interest identification to the interest identification; if the first quantity is not less than a first threshold value, acquiring corresponding data according to the interest strategy; and if the first quantity 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 comprises: emotion, the eight diagrams, stars, fashion, campus. The invention is not limited if there are other types of interest identifiers. Specifically, the first threshold is two-thirds of the second number.
For example, if the number of data pieces shown in the news newsletter page is 20, the second number is 20. And if the first quantity is not less than the first threshold value, namely the number of the data browsed by the user is close to 20, considering that the data recommended last time is interesting to the user, and continuing to acquire the data according to the last interest strategy. And if the first quantity is smaller than a first threshold value, namely the difference between the number of the data browsed by the user and the 20 data is large, the last recommended data user is not interested, the interest strategy is updated, and the data is acquired according to the updated interest strategy.
Specifically, the step of updating the interest policy includes: reducing the proportion of original interest identification in the interest strategy, wherein the original interest identification is the same as the interest identification of the data corresponding to the data identification in the first array, namely reducing the proportion of the interest type 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 taking out data of other interest types for filling the data. For example, before updating, the interest policy is obtained according to the interest identifier corresponding to the data identifier in the second array, and the interest policies of all data displayed on the current page are, in terms of emotion: the eight diagrams: 1, star: 1: 3, the updated interest policy is fashion: campus is 1: 1. the invention is not limited to the reduced proportion and the specific increased type of interest marker. The data matched with the user is popularized to the client, and the relevance of the page display data and the client user can be improved.
Finally, in step S340, the obtained pieces of data are returned to the client to present the refreshed page.
Before returning the acquired new data to the client to present the refreshed page, replacing the data identifier of the first array with the data identifier of the acquired new data in the second array, and storing the request identifier and the second array in an associated manner. In particular, the request identification is stored in association with the second array in a local cache. And storing the data identifications of all the data displayed on the current page of the client initiating the page refreshing request next time in the second array.
According to the technical scheme of the invention, the request identification and the first number of data identifications browsed at the current page are added in the refreshing request sent by the client, the second number of data identifications returned by the last request of the client are stored in the server, the first number of pieces of data are obtained according to the first number of identifications and the second number of identifications, and the latest data to be returned to the client are dynamically filled, so that the time consumption of the server for operating the database every time is effectively reduced, and the interface speed is accelerated.
Furthermore, the data has corresponding interest identifications, and the interest types of the filling data are determined according to the first quantity of identifications and the second quantity of identifications, so that the recommendation strategy for the user is adjusted in time, the hit on different user interest points is effectively increased while the utilization rate of data resources is improved, and the browsing experience of the user is optimized.
Correspondingly, FIG. 4 shows a flow diagram 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 the server, the client adapted to render a page containing one or more pieces of data. Such as a news home page in a browser application.
As shown in fig. 4, the method 400 begins at step S410. In step S410, a refresh request on the current page is obtained, and a page refresh request is generated according to the data presented by the current page, where the page refresh request includes a request identifier and a first array, and the first array includes a first number of data identifiers.
The page refresh request is generated in response to the operation behavior of the user on the page where the data is presented at the client, and the user page operation behavior type may be used to represent the page operation behavior type of the user at the preset resource location, and may include, for example, the page operation behavior types such as click, long press, slide, and the like.
The request identifier is used for marking the refresh request of the client to the same page, and is an identifier generated and returned to the client by the server when the server receives the page display request for the first time. It should be noted that before the client generates the refresh request, it is necessary to request the server for the first time to display the page. In the scheme, when the first request is initiated, the client uploads the request identifier to be 0 so as to inform the server of the first request. According to one embodiment of the invention, the request identification returned by the server and a second number of pieces of data are received, the request identification is stored locally, and the second number of pieces of data are presented on the current page. The second number depends on the client or server's advance settings, e.g. the number of newsgang home page show data pieces is 20, then the second number is 20.
According to one embodiment of the invention, a first array is generated according to data identifiers of a plurality of pieces of data of a current page which are browsed, a request identifier is obtained from local, and a page refreshing request is generated according to the request identifier and the first array. The first array comprises a first number of data identifications, and the data identifications are selected according to user operation. According to an embodiment of the present invention, the first array refers specifically to data identification according to a plurality of pieces of data of a page that have been browsed by a user. Specifically, the content that has been currently displayed completely within the visual screen range is added to the first array as the data that has been viewed by the user, with the data identification of the data that has been viewed 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 a 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 data to the client, and the second array comprises the data identifier of the last returned data of the server, namely the data identifier of the second amount of data displayed on the current page of the client when the page refreshing request is initiated. Because the data identifier of the data of the current page browsed by the user is in the first array, the data identifier in the first array is necessarily contained in the second array. The client only needs to acquire the data with the number being the number of the data browsed by the user, 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 a plurality of pieces of data returned by the server to present the refreshed page further includes: if the first quantity is not less 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 on the current page, and the interest strategy comprises the proportion of the interest identification to the interest identification; if the first quantity is smaller than the first threshold value, the interest strategy of the returned pieces of data is the same as that of the pieces of data presented on the current page, and the interest strategy comprises the proportion of the interest identifications to the interest identifications. Wherein the interest identification comprises: emotion, the eight diagrams, stars, fashion, campus. The invention is not limited if there are other types of interest identifiers. Specifically, the first threshold is two-thirds of the second number.
Specifically, if the first quantity 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 on the current page, including: in the interest strategy of the returned data, the proportion of original interest identification is reduced, and the original interest identification is the same as the interest identification of the data presented on 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 the interest identifier of the data presented on the current page. According to the first quantity of identifiers and the second quantity of identifiers, the interest types of the returned data are different, the recommendation strategy for the user is adjusted in time, the utilization rate of data resources is improved, meanwhile, the hit of interest points of different users is 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 510 is adapted to store a plurality of pieces of data, each piece of data having a corresponding 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 earlier.
The specific steps and embodiments of data processing have been disclosed in detail in the description based on fig. 1-4, and are not described herein again.
A4, the method according to any one of A1-A3, comprising, before receiving a page refresh request, the steps of:
acquiring a second number of pieces of data from the stored pieces of data, and generating a request identifier;
generating a second array according to the data identification of the plurality of pieces of data of the second quantity;
storing the request identification in association with the second number group;
and returning the request identification and a second number of pieces of data to the client to present the page before the page brushing request is received.
A5, the method according to any one of A1-A4, wherein before returning the obtained new data to the client for presenting the refreshed page, the method comprises the following steps:
replacing the data identifier of the first array with the data identifier of the obtained new data in the second array;
the request identification and the second number group are stored in association.
A6, the method of any one of A1-A5, wherein the plurality of data stored in the computing device is stored in a database.
A7, the method of any one of a4-a6, wherein the step of associatively storing the request identity and the second array comprises:
storing the request identification in association with the second array in a local cache.
A8, the method as claimed in any one of A1-A7, the interest identification comprising: emotion, the eight diagrams, stars, fashion, campus.
A9, the method of any one of A1-A8, the first threshold being two-thirds of the second quantity.
A11, the method according to A10, wherein before the step of obtaining the refresh request on the current page, the method further comprises the steps of:
receiving a request identification and a second number of pieces of data returned by the server, storing the request identification locally, and presenting the second number of pieces of data on the current page.
A12, the method of A10 or A11, wherein the step of generating a page refresh request based on data of a current page presentation comprises:
generating a first array according to data identifiers of a plurality of pieces of data browsed by a current page, acquiring a request identifier from the local, and generating a page refreshing request according to the request identifier and the first array.
A13, the method according to 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 plurality of pieces of data browsed on the current page with the plurality of pieces of data returned by the server side so as to present the refreshed page.
A14, the method as in any A10-A13, wherein the data has corresponding interest identifiers, and the step of receiving a plurality of data returned by the server to present the refreshed page further comprises:
if the first quantity is not less 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 on the current page, and the interest strategy comprises the proportion of the interest identification to the interest identification;
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 on the current page, and the interest strategy comprises the proportion of the interest identification to the interest identification.
A15, the method of A14, wherein if the first number is less 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 on the current page, the method includes:
in the interest strategy of the returned data, the proportion of original interest identification is reduced, and the original interest identification is the same as the interest identification of the data presented on the current page;
and adding a new interest identifier in the interest strategy of the returned pieces of data, wherein the new interest identifier is different from the interest identifier of the data presented on the current page.
A16, the method as claimed in any one of A10-A15, the interest identification comprising: emotion, the eight diagrams, stars, fashion, campus.
A17, the method of any one of A10-A16, the first threshold being two-thirds of the second quantity.
In the description provided herein, numerous specific details are set forth. It is understood, however, 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 interpreted as reflecting an intention that: that the invention as claimed 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 multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. 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. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements 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 included in other embodiments, rather than other features, 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 may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out 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 thereof, 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 web data processing method of the present invention according to instructions in said program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer storage media store 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 adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, 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 this description, will appreciate that other embodiments can be devised which do not depart from 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 present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (10)

1. A data processing method, executed in a computing device having stored therein a plurality of pieces of data, each piece of data having a corresponding data identification, the computing device being communicatively coupled to a client adapted to render a page containing one or more pieces of data, the method comprising the steps of:
receiving a page refreshing request from the client, wherein the page refreshing 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 included in the first array is in the second number of data identifiers included 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
and returning the acquired pieces of data to the client to present the refreshed page.
2. The method of claim 1, the data having corresponding interest identifiers, the step of obtaining the plurality of pieces of data based on the first array and the second array comprising:
obtaining an interest strategy according to the interest identification corresponding to the data identification in the second array, wherein the interest strategy comprises the proportion of the interest identification to the interest identification;
if the first quantity is not smaller than a first threshold value, acquiring corresponding data according to the interest strategy;
and if the first quantity is smaller than a first threshold value, updating the interest strategy, and acquiring corresponding data according to the updated interest strategy.
3. The method of claim 2, the step of updating the interest policy comprising:
reducing the proportion of original interest identification in the interest strategy, wherein the original interest identification is the same as the interest identification of the data corresponding to the data identification 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.
4. A data processing method, executed in a computing device, communicatively connected to a server, adapted to render a page containing one or more pieces of data, the method comprising the steps of:
the method comprises the steps of obtaining a refreshing request on a current page to be presented, and generating a page refreshing request according to data presented by the current page, wherein the page refreshing 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 a server, and receiving a plurality of pieces of data returned by the server to present the refreshed page.
5. 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;
data processing apparatus adapted to perform the data processing method of any one of claims 1-3;
a cache adapted to store the request identification and the second array as claimed in any one of claims 1-3.
6. A data processing system comprising:
a server adapted to perform the data processing method of any one of claims 1-3;
a client, communicatively connected to the server, adapted to perform the data processing method of claim 4.
7. 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 any of the methods of any of claims 1-3.
8. 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 any of the methods of any of claims 1-3.
9. 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 4.
10. 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 4.
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 true CN111444448A (en) 2020-07-24
CN111444448B 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)

Cited By (2)

* 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
CN117972250A (en) * 2024-03-28 2024-05-03 深圳市金政软件技术有限公司 Data storage method, system and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060212454A1 (en) * 2005-03-17 2006-09-21 International Business Machines Corporation Method for rendering and refreshing a portal page
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060212454A1 (en) * 2005-03-17 2006-09-21 International Business Machines Corporation Method for rendering and refreshing a portal page
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

Cited By (3)

* 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
CN117972250A (en) * 2024-03-28 2024-05-03 深圳市金政软件技术有限公司 Data storage method, system and readable storage medium
CN117972250B (en) * 2024-03-28 2024-06-14 深圳市金政软件技术有限公司 Data storage method, system and readable storage medium

Also Published As

Publication number Publication date
CN111444448B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
JP6306187B2 (en) Dynamic telephone number assignment
US8135616B2 (en) Browsing and quality of service features
TWI703463B (en) Information display method, device and intelligent terminal
WO2020199751A1 (en) Method and apparatus for loading page picture, and electronic device
CN110245069B (en) Page version testing method and device and page display method and device
US11620444B2 (en) Providing action associated with event detected within communication
CN110175306B (en) Method and device for processing advertisement information
CN109791562B (en) Improving post-installation application interactions
US20170090705A1 (en) Conversation and version control for objects in communications
WO2018005204A1 (en) Providing communication ranking scheme based on relationship graph
CN111444448B (en) Data processing method, server and system
US20240289144A1 (en) Method, apparatus, system and storage medium for information processing
CN116127219A (en) Method and device for displaying pages in applet and computer equipment
CN112328564A (en) Special resource sharing method and device and electronic equipment
US20180124260A1 (en) Providing content and attachment printing for communication
CN110516169B (en) Data display method, device and system and computing equipment
CN114238585A (en) Query method and device based on 5G message, computer equipment and storage medium
CN110992131B (en) Form processing method, form processing device and storage medium
EP3455805A1 (en) Enhancing contact card based on knowledge graph
US20170308949A1 (en) Emphasizing communication based on past interaction related to promoted items
CN112347382A (en) Product page sharing method and device and electronic equipment
CN111586133B (en) Information pushing method and related device
CN114780896B (en) Webpage content generation method and device and computer readable storage medium
CN115250259B (en) Information interaction method and device and electronic equipment
US20200342497A1 (en) Method of and server for transmitting targeted message to user electronic device

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