CN113420236A - List data display method and device, electronic equipment and storage medium - Google Patents

List data display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113420236A
CN113420236A CN202110566939.4A CN202110566939A CN113420236A CN 113420236 A CN113420236 A CN 113420236A CN 202110566939 A CN202110566939 A CN 202110566939A CN 113420236 A CN113420236 A CN 113420236A
Authority
CN
China
Prior art keywords
target
list data
preset
list
objects
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
CN202110566939.4A
Other languages
Chinese (zh)
Other versions
CN113420236B (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110566939.4A priority Critical patent/CN113420236B/en
Priority claimed from CN202110566939.4A external-priority patent/CN113420236B/en
Publication of CN113420236A publication Critical patent/CN113420236A/en
Application granted granted Critical
Publication of CN113420236B publication Critical patent/CN113420236B/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/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • 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/9532Query formulation

Abstract

The disclosure relates to a list data display method, a list data display device, electronic equipment and a storage medium, wherein the method comprises the steps of responding to a list display request of a target object, and determining the target associated object number of the target object; under the condition that the number of the target associated objects is larger than a preset threshold value, inquiring first target list data of the target objects, wherein the first target list data are generated in advance based on list data items of the target associated objects of the target objects; and under the condition that the first target list data is inquired, sending the first target list data to a terminal corresponding to the target object so that the terminal can display the first target list data. By utilizing the method and the device, the problem of reading and amplifying in the list data display request processing process can be effectively solved, the server resource pressure in the list data display process is reduced, and the display efficiency and the server performance are improved.

Description

List data display method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a list data display method and device, electronic equipment and a storage medium.
Background
The list is used as an important information source of an internet platform and widely applied to a large number of application scenes, such as friend card lists, game grade lists, news hotspot lists and the like. In the related art, in the above business of the friend card lists, since the list data needs to be generated based on the number of cards of the friends, each time a user requests to display the list data, the number of cards of each friend needs to be read, so that a request for the list data needs to be established on the basis of reading the number of cards of a large number of friends, which causes problems of reading amplification, high server resource consumption, poor performance and the like.
Disclosure of Invention
The disclosure provides a list data display method and device, electronic equipment and a storage medium, and aims to at least solve the problems of reading and amplifying, high resource consumption, poor performance and the like in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a list data display method is provided, including:
responding to a list display request of a target object, and determining the target associated object number of the target object;
under the condition that the number of the target associated objects is larger than a preset threshold value, inquiring first target list data of the target objects, wherein the first target list data are generated in advance based on list data items of the target associated objects of the target objects;
and under the condition that the first target list data is inquired, sending the first target list data to a terminal corresponding to the target object so that the terminal can display the first target list data.
Optionally, the method further includes:
determining the number of target associated objects of a preset object under the condition that the increase of list associated elements of the preset object is monitored;
when the number of target associated objects of the preset object is larger than the preset threshold and the preset object is not in the preset object information, acquiring a first list data item of the target associated objects of the preset object;
generating list data of the preset object based on the first list data item;
storing the list data of the preset object to a preset list storage module;
the querying the first target list data of the target object comprises: and inquiring the first target list data from the preset list storage module.
Optionally, the method further includes:
and adding the preset object to the preset object information.
Optionally, the method further includes:
deleting the list data of the preset object in the preset list storage module under the condition that the list associated elements of the preset object are reduced to zero; and removing the preset object from the preset object information.
Optionally, the method further includes:
polling objects in the preset object information according to a preset frequency;
acquiring a second list data item of a target associated object of the polled object;
generating list data of the polled object based on the second list data item;
and updating the list data of the polled object to the preset list storage module.
Optionally, the method further includes:
determining an incidence relation between two objects corresponding to an object relation changing behavior under the condition that the object relation changing behavior is monitored;
when the incidence relation is a target incidence relation and the list data of any one of the two objects is in a preset list storage module, updating the list data of the specified object in the two objects;
and the specified object in the two objects is an object of the list data in the preset list storage module.
Optionally, the method further includes:
when the association relationship is a non-target association relationship and the list data of any one of the two objects is in the preset list storage module, updating the list data and the target association object number of the specified object;
deleting the list data of the specified object in the preset list storage module under the condition that the updated target associated object number is less than or equal to a preset threshold value; and removing the specified object from preset object information. Optionally, the method further includes:
under the condition that the number of the target associated objects of the target object is less than or equal to the preset threshold value, acquiring a third list data item of the target associated object of the target object;
generating second target list data of the target object based on the third list data item;
and sending the second target list data to a terminal corresponding to the target object so that the terminal displays the second target list data.
Optionally, the method further includes:
determining a preset number of target associated objects from the target associated objects of the target objects under the condition that the first target list data is not inquired;
acquiring fourth list data items of the preset number of target associated objects;
generating third target list data of the target object based on the fourth list data item;
and sending the third target list data to a terminal corresponding to the target object so that the terminal displays the third target list data.
Optionally, before the determining the number of target associated objects of the target object, the method further includes:
acquiring the number of list associated elements of the target object;
and if the number is non-zero, performing the step of determining the number of target associated objects of the target object.
Optionally, the method further includes:
and sending preset prompt information to a terminal corresponding to the target object under the condition that the number is zero, so that the terminal displays the preset prompt information.
According to a second aspect of the embodiments of the present disclosure, there is provided a list data presentation apparatus, including:
the first target associated object number determining module is configured to execute a list showing request responding to a target object and determine the target associated object number of the target object;
the target list number query module is configured to execute query of first target list data of the target object under the condition that the number of the target associated objects is larger than a preset threshold, wherein the first target list data is generated in advance based on list data items of the target associated objects of the target object;
the first target list data sending module is configured to send the first target list data to a terminal corresponding to the target object under the condition that the first target list data is inquired, so that the terminal displays the first target list data.
Optionally, the apparatus further comprises:
the second target associated object number determining module is configured to determine the number of target associated objects of a preset object under the condition that the increase of list associated elements of the preset object is monitored;
the first list data item acquisition module is configured to acquire the first list data item of the target associated object of the preset object under the condition that the target associated object number of the preset object is larger than the preset threshold and the preset object is not in the preset object information;
a first list data generation module configured to perform generating list data of the preset object based on the first list data item;
the first storage module is configured to store the list data of the preset object to the preset list storage module;
the target list number inquiring module 820 is further configured to perform inquiring the first target list data from the preset list storage module if the target associated object number is greater than a preset threshold.
Optionally, the apparatus further comprises:
a preset object adding module configured to perform adding the preset object to the preset object information.
Optionally, the apparatus further comprises:
the list data deleting module is configured to delete the list data of the preset object in the preset list storage module under the condition that the list related elements of the preset object are reduced to zero;
a preset object removal module configured to perform removal of the preset object from the preset object information.
Optionally, the apparatus further comprises:
an object polling module configured to perform polling for objects in the preset object information according to a preset frequency;
the second list data item acquisition module is configured to execute acquisition of a second list data item of a target associated object of the polled object;
a second list data module configured to perform generating list data of the polled object based on the second list data item;
the second storage module is configured to update the list data of the polled object to the preset list storage module.
Optionally, the apparatus further comprises:
the association relation determining module is configured to determine the association relation of two objects corresponding to the object relation changing behavior under the condition that the object relation changing behavior is monitored;
the list data updating module is configured to update the list data of the specified object in the two objects under the condition that the incidence relation is a target incidence relation and the list data of any one object in the two objects is in the preset list storage module;
and the specified object in the two objects is an object of the list data in the preset list storage module.
Optionally, the apparatus further comprises:
the data updating module is configured to execute that the association relationship is a non-target association relationship, and update the list data and the target association object number of the specified object under the condition that the list data of any one of the two objects is in the preset list storage module;
the object data processing module is configured to delete the list data of the specified object in the preset list storage module under the condition that the updated target associated object number is less than or equal to a preset threshold; and removing the specified object from preset object information.
Optionally, the apparatus further comprises:
a third list data item obtaining module configured to obtain a third list data item of a target associated object of the target object when the number of the target associated objects of the target object is less than or equal to the preset threshold;
a first target list data generating module configured to perform generating second target list data of the target object based on the third list data item;
the second target list data sending module is configured to send the second target list data to a terminal corresponding to the target object, so that the terminal displays the second target list data.
Optionally, the apparatus further comprises:
a designated target associated object determining module configured to determine a preset number of target associated objects from the target associated objects of the target objects under the condition that the first target list data is not queried;
the fourth list data item acquisition module is configured to execute acquisition of the fourth list data items of the preset number of target associated objects;
a second target list data generating module configured to perform generating third target list data of the target object based on the fourth list data item;
the third target list data sending module is configured to send the third target list data to a terminal corresponding to the target object, so that the terminal displays the third target list data.
Optionally, the apparatus further comprises:
the quantity acquisition module is configured to acquire the quantity of list associated elements of the target object before the target associated object number of the target object is determined;
the first target associated object number determination module is further configured to execute the step of determining the target associated object number of the target object in response to the list showing request of the target object when the number is nonzero.
Optionally, the apparatus further comprises:
and the preset prompt information sending module is configured to send preset prompt information to the terminal corresponding to the target object under the condition that the number is zero, so that the terminal displays the preset prompt information.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any of the first aspects above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of the first aspects of the embodiments of the present disclosure.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of any one of the first aspects of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method includes the steps that list data of objects with target associated object numbers larger than a preset threshold value are generated in advance, then in a list display request for processing a target object, the target associated object numbers of the target object can be combined, the list data of the target object are directly inquired under the condition that the target associated object numbers of the target object are larger than the preset threshold value, the list data are directly sent to a corresponding terminal after the list data are inquired, the list data are displayed, the problem of reading and amplifying in the list data display request processing process can be effectively solved, then the resource pressure of a server in the list data display process is relieved, and the display efficiency and the server performance are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram illustrating an application environment in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating a method of presenting list data in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a server pre-generating a list data in accordance with an example embodiment;
FIG. 4 is a flow diagram illustrating a listing data update in accordance with an exemplary embodiment;
FIG. 5 is a diagram illustrating a listing data according to an exemplary embodiment;
FIG. 6 is a flow diagram illustrating another method of listing data presentation in accordance with an exemplary embodiment;
FIG. 7 is a flow diagram illustrating another method of listing data presentation in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a listing data presentation, according to an example embodiment;
FIG. 9 is a block diagram illustrating an electronic device for a leaderboard data presentation in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment according to an exemplary embodiment, and as shown in fig. 1, the application environment may include a terminal 100 and a server 200.
The terminal 100 can be used to provide a list data presentation service to any user. Specifically, the terminal 100 may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and other types of electronic devices, and may also be software running on the electronic devices, such as an application program. Optionally, the operating system running on the electronic device may include, but is not limited to, an android system, an IOS system, linux, windows, and the like.
In an optional embodiment, the server 200 may provide a background service for the terminal 100, and generate the list data to be displayed by the terminal 100. Specifically, the server 200 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like.
In addition, it should be noted that fig. 1 shows only one application environment provided by the present disclosure, and in practical applications, other application environments may also be included, for example, more terminals may be included.
In the embodiment of the present specification, the terminal 100 and the server 200 may be directly or indirectly connected through wired or wireless communication, and the disclosure is not limited herein.
Fig. 2 is a flowchart illustrating a list data presentation method according to an exemplary embodiment, which may include the following steps, as shown in fig. 2.
In step S201, in response to the list presentation request of the target object, the server determines the target associated object number of the target object.
In a specific embodiment, the target object may be a user who triggers the list display request in the service corresponding to the list, or may be a user account number which triggers the list display request in the service corresponding to the list. In practical application, a user can trigger a list display request based on a corresponding terminal; correspondingly, the server may respond to the list display request, execute the step of determining the number of the target associated objects of the target object, and then enter a process of acquiring list data of the target object.
In a specific embodiment, the target association object number of the target object may be the number of objects having a target association relationship with the target object. In an alternative embodiment, the object having the target association relationship with the target object may be an object having a mutual attention with the target object. In an optional embodiment, a server may maintain an association service, where the association service may be used to update an association relationship between objects in real time, and further update the number of target associated objects of each object in real time; accordingly, the server may determine a target number of associated objects for the target object based on the association service.
In an optional embodiment, before the server determines the number of target associated objects of the target object, the method may further include:
the server acquires the number of list associated elements of the target object;
if the number is non-zero, the server performs the above-described step of determining the number of target-related objects of the target object.
In a specific embodiment, the presentation of the list data can be to facilitate the user to exchange target list elements corresponding to the list data based on the list associated elements; accordingly, when the number of the list associated elements is non-zero, that is, when the target object has the list associated elements, the above operation of determining the number of the target associated objects of the target object may be performed, and then the process of acquiring the list data is performed. Correspondingly, the list association element can be an element used for replacing the target list element corresponding to the list data.
In a specific embodiment, it is assumed that in a business scenario in which a second type of virtual resource of a target associated object (e.g., a friend) is replaced by a first type of virtual resource, the list data of the target object may be a list sorted according to the number of the second type of virtual resource of the target associated object of the target object. Specifically, the list associated element may be a first type of virtual resource, such as a stained sticky card; the target associated element may be a second type of virtual resource, such as a good card.
In an optional embodiment, the method may further include:
and under the condition that the number of the list associated elements is zero, the server sends preset prompt information to the terminal corresponding to the target object.
And the terminal displays preset prompt information.
In a specific embodiment, the preset prompting information may be used to prompt that the target object does not have the list associated element, and optionally, may also be used to prompt the target object to acquire the list associated element. When the number of the list associated elements is zero, that is, the target object does not have the list associated elements, the preset prompt information can be directly sent to the terminal.
In the above embodiment, by identifying whether the target object has a list associated element for replacing the target list element corresponding to the list data, the step of determining the number of the target associated objects of the target object is performed when the target object has the list associated element, and then the process of acquiring the list data is entered; under the condition that the target object does not have the list association element, the preset prompt information can be directly returned to the terminal, so that the operations of invalid query and display of the list and the like can be effectively avoided, and the pressure of the server is relieved.
In step S203, the server queries the first target list data of the target object when the number of target associated objects is greater than a preset threshold.
In an optional embodiment, the first target list data may be predetermined based on the list data items of the target associated object of the target object.
In practical application, the list data may include information obtained by sorting a plurality of items of the same kind of data, specifically, each item of data in the list may be used as a list data item, the list data items may be different according to different objects corresponding to the data that needs to be sorted in the service requirement, and specifically, each list data item may include the data that needs to be sorted in the actual service and the basic information of the object corresponding to the data that needs to be sorted. In a specific embodiment, the list data is assumed to be a user friend card list, and correspondingly, each list data item can be a list data item corresponding to each friend; specifically, a friend may be a user who is interested in a target object (user). Specifically, the data to be sorted may be the number of friend cards, the basic information of the object corresponding to the data to be sorted may be basic information of friends, and specifically, the basic information of friends may include identification information of friends; specifically, the identification information may include, but is not limited to, a user's nickname, avatar, and the like.
In an alternative embodiment, as shown in fig. 3, the method may further include: the step of generating the list data in advance by the server may specifically include:
in step S301, the server determines the number of target associated objects of the preset object when it is monitored that the list associated elements of the preset object are increased.
In step S303, when the number of target associated objects of the preset object is greater than the preset threshold and the preset object is not in the preset object information, the server obtains a first list data item of the target associated object of the preset object.
In step S305, the server generates list data of a preset object based on the first list data item.
In step S307, the server stores the list data of the preset object in the preset list storage module.
In an optional embodiment, in a case that the number of target associated objects of the preset object is greater than a preset threshold and the preset object is not in the preset object information, the method may further include:
and the server adds the preset object to the preset object information.
In an optional embodiment, a listener may be disposed on the server side, and optionally, the change of the number of list associated elements of the preset object may be monitored based on the listener. Specifically, the preset object may be any user in the business corresponding to the list; optionally, in a case that the number of the list associated elements of any object (preset object) is increased, the step of determining the number of the target associated objects of the preset object may be performed, and then the process of generating the list data in advance is performed.
In practical application, since the list data is generated based on the list data items of the target associated objects of the objects, correspondingly, the list data items of each target associated object of the object need to be read when the list data of any object is generated; in the case that any object has a large number of target associated objects, a large amount of data reading processing is required to be performed to generate the list data, which further causes a serious problem of reading and amplifying. Specifically, the preset threshold may be preset in combination with the performance of the server and the load condition of the service.
In a specific embodiment, the preset object information may be used to record a list of objects with the number of target associated objects greater than a preset threshold. Specifically, the preset object information may record an object identifier of an object whose target number of associated objects is greater than a preset threshold (the object identifier may be used to distinguish different objects, such as account information). Correspondingly, the adding, by the server, the preset object to the preset object information may include adding an object identifier of the preset object to the preset object information. In a specific embodiment, in order to avoid adding an object to the preset object information repeatedly, the preset object information may be generated in combination with a set or the like deduplicating container. Optionally, the preset object information may be stored in the same database or cache as the list data, or may be stored in a different database or cache from the list data.
In an optional embodiment, it is considered that the number of objects with the target number of associated objects larger than the preset threshold is larger; a plurality of preset object information can be set to record the object identification of the object with the target associated object number larger than a preset threshold value; optionally, the identification information of the post-preset number of bits of the object identification is often different; different object identifiers may be stored in a plurality of preset object information based on the identification information of a post-preset number of bits of the object identifier. In a specific embodiment, when the number of target associated objects of the preset object is greater than a preset threshold and the preset object is not in the preset object information, it may be determined that the preset object belongs to the list data which needs to be generated in advance and the preset object information is also added; correspondingly, a first list data item of the target associated object of the preset object can be acquired, and then the list data of the preset object can be generated based on the first list data item and stored in the preset list storage module. Specifically, the corresponding first list data items may be arranged in a descending order according to the number corresponding to the data needing to be sorted in the first list data items of the target associated object of the preset object, so as to obtain the list data of the preset object.
In a specific embodiment, the preset list storage module may be configured to store list data of objects with a target number of associated objects greater than a preset threshold. Specifically, the preset list storage module may be a database, a cache, or the like. Specifically, since the list data is ordered, the list data can be stored in combination with a data structure of an ordered set such as zset.
Correspondingly, the querying, by the server, the first target list data of the target object includes: the server inquires the first target list data from the preset list storage module.
In the embodiment, when the increase of the list associated elements of the preset object is monitored, list data of objects with the target associated object number larger than the preset threshold value are generated in advance and stored, so that the problem of reading and amplifying in the list data display request processing process can be effectively solved, the resource pressure of a server in the list data display process is reduced, and the display efficiency and the server performance are improved; in addition, the preset objects with the target associated object number larger than the preset threshold value are stored in the preset object information, so that management of the objects needing to generate the list data in advance can be facilitated.
In an optional embodiment, the method may further include: specifically, as shown in fig. 4, the step of updating the list data may include:
in step S401, the server polls an object in the preset object information according to a preset frequency;
in step S403, the server acquires a second list data item of the target associated object of the polled object;
in step S405, the server generates list data of the polled object based on the second list data item;
in step S407, the server updates the list data of the polled object to a preset list storage module.
In a specific embodiment, the preset frequency may be preset in conjunction with the actual application. Specifically, the second list data items corresponding to the data to be sorted may be sorted in a descending order according to the number corresponding to the data to be sorted in the second list data items of the target associated object of the polled object, so as to obtain the list data of the polled object; updating the list data of the polled object to a preset list storage module; specifically, the list data generated by polling may replace the list data of the polled object in the preset list storage module.
In the above embodiment, the list data of the objects with the target associated object number larger than the preset threshold value is updated in time in a manner of regularly polling the preset object information, so that the accuracy and reliability of the list data are effectively ensured.
In an optional embodiment, the method may further include:
the method comprises the steps that when a list related element of a preset object is reduced to zero, a server deletes list data of the preset object in a preset list storage module; and removing the preset object from the preset object information.
In the above embodiment, when it is monitored that the list related elements of the preset object in which the list data is generated in advance are reduced to zero, that is, the list data of the preset object belongs to the list data which does not need to be generated in advance, the corresponding list data can be deleted in time and removed from the preset object information, so that the storage pressure and the resource consumption pressure in the list data preprocessing process can be reduced.
In an optional embodiment, the method may further include:
under the condition that the object relation change behavior is monitored, the server determines the incidence relation of two objects corresponding to the object relation change behavior;
when the incidence relation of the two objects is a target incidence relation and the list data of any one of the two objects is in a preset list storage module, the server updates the list data of the specified object in the two objects;
the specified object in the two objects is an object of the list data in the preset list storage module.
In a specific embodiment, the object relationship change behavior may be a behavior that triggers a change in an association relationship between objects, and specifically, the object relationship change behavior may include, but is not limited to, a certain object paying attention to another object or a certain object paying attention to another object. In a specific embodiment, the association relationship between two objects may include, but is not limited to, attention to each other, active attention, attention to; wherein the cross-notes may be target associations.
In practical application, after the object relationship change behavior is executed, a corresponding message is triggered, optionally, the message may be stored in a message queue, and correspondingly, the server may monitor the corresponding message in time by setting a message consumption service, so as to monitor the object relationship change behavior.
In a specific embodiment, after a certain object relationship change behavior occurs, if an association relationship between two objects becomes a target association relationship, that is, any one of the two objects is a target association object of another object, the server may update the list data of the specified object in the two objects, and specifically, the list data of the specified object may be updated based on the list data item of the target association object after the specified object is updated. Optionally, the target associated object number of the specified object may also be updated.
In the embodiment, by monitoring the object relation changing behavior, the list data which needs to be generated in advance can be updated in time according to the change of the relation between the objects, so that the accuracy of the list data is ensured, and meanwhile, the performance of the server when the follow-up list data is requested is better guaranteed.
In another optional embodiment, the method may further include:
when the association relationship of the two objects is a non-target association relationship and the list data of any one of the two objects is in a preset list storage module, the server updates the list data and the target association object number of the specified object in the two objects;
under the condition that the updated target associated object number is less than or equal to a preset threshold value, the server deletes the list data of the specified object in the preset list storage module; and removing the designated object from the preset object information.
Specifically, the server updating the list data and the target associated object number of the specified object in the two objects may include deleting the list data item of another object other than the specified object in the two objects from the list data of the specified object, and adjusting the order among the list data items in the list data accordingly, and subtracting 1 from the target associated object data of the specified object.
In the embodiment, by combining the monitored object relationship changing behavior, unnecessary data can be deleted in time according to the change of the relationship between the objects, the accuracy of the list data is ensured, and the waste of storage can be effectively avoided.
In step S205, when the first target list data is queried, the server transmits the first target list data to the terminal corresponding to the target object.
In a specific embodiment, under the condition that the first target list data is queried, the server can directly send the first target list data to the terminal corresponding to the target object, so that the display efficiency is greatly improved.
In step S207, the terminal displays the first target list data.
In a specific embodiment, for example, in combination with the service scenario that the first type of virtual resource (sticky card) is used to replace the second type of virtual resource (good card) of the target associated object (good friend), as shown in fig. 5, fig. 5 is a schematic diagram of list data according to an exemplary embodiment. Optionally, the list data item of each target associated object may further include trigger operation information for triggering replacement of a second type of virtual resource of the target associated object based on the first type of virtual resource, and specifically, the trigger operation information may be a control (a blessing card) in fig. 5.
As can be seen from the technical solutions provided by the embodiments of the present specification, in the present specification, list data of objects whose target number of associated objects is greater than a preset threshold is generated in advance, and then in processing a list display request of a target object, the number of target associated objects of the target object can be combined, and in the case that the number of target associated objects of the target object is greater than the preset threshold, the list data of the target object is directly queried and is directly sent to a corresponding terminal after the list data is queried, so as to perform display of the list data, so that the problem of reading and amplification in the list data display request processing process can be effectively reduced, and further server resource pressure in the list data display process is reduced, and display efficiency and server performance are improved.
In an alternative embodiment, as shown in fig. 6, the method may further include:
in step S209, in a case that the number of target associated objects of the target object is less than or equal to a preset threshold, the server acquires a third list data item of the target associated objects of the target object;
in step S211, the server generates second target list data of the target object based on the third list data item;
in step S213, the server transmits the second target list data to the terminal corresponding to the target object.
In step S215, the terminal presents the second target list data.
In a specific embodiment, when the number of target associated objects of the target object is less than or equal to the preset threshold, the list data of the target object needs to be generated in real time, and accordingly, a list data item (a third list data item) of the target associated object of the target object may be acquired in real time, and the list data (a second target list data item) may be generated in real time.
In the above embodiment, when the number of target associated objects of the target object is less than or equal to the preset threshold, the list display request of the target object is responded in a manner of generating the list data of the target object in real time, and because the list data corresponding to part of the list display requests in the list display requests that are concurrent at the same time are generated in advance, the response speed of the list data generated in real time can also be effectively ensured.
In an alternative embodiment, as shown in fig. 6, the method may further include:
in step S217, in a case that the first target list data is not queried, the server determines a preset number of target associated objects from the target associated objects of the target objects;
in step S219, the server obtains fourth list data items of a preset number of target associated objects;
in step S221, the server generates third target list data of the target object based on the fourth list data item;
in step S223, the server transmits the third target list data to the terminal corresponding to the target object.
In step S225, the terminal displays the third target list data.
In a specific embodiment, the list data of the objects with the target number of associated objects larger than the preset threshold value is not generated in time possibly due to problems such as time delay and the like; correspondingly, the first target list data may not be queried, and correspondingly, the number of the target associated objects may be greater than a preset threshold value, and a current-limiting response mode may be adopted for the objects which do not generate the list data in advance.
In the above embodiment, a current-limiting response mode is adopted for the objects, the number of the target associated objects is greater than the preset threshold value, and the good list data is not generated in advance, so that the server pressure can be effectively reduced while the list display request is responded in time, and the serious problem of reading and amplifying is avoided.
Specifically, as shown in fig. 7, the method for displaying list data according to the embodiment of the present disclosure is described below with a server as an execution subject, and may include the following steps:
in step S701, in response to the list display request of the target object, determining the number of target associated objects of the target object;
in step S703, when the number of target associated objects is greater than a preset threshold, querying first target list data of the target object, where the first target list data is generated in advance based on list data items of the target associated objects of the target object;
in step S705, when the first target list data is queried, the first target list data is sent to the terminal corresponding to the target object, so that the terminal displays the first target list data.
Optionally, the method further includes:
determining the number of target associated objects of the preset object under the condition that the increase of list associated elements of the preset object is monitored;
acquiring a first list data item of a target associated object of a preset object under the condition that the target associated object number of the preset object is larger than a preset threshold and the preset object is not in preset object information;
generating list data of a preset object based on the first list data item;
storing the list data of the preset object to a preset list storage module;
the querying of the first target list data of the target object includes: and inquiring the first target list data from the preset list storage module.
Optionally, the method further includes:
adding the preset object to the preset object information.
Optionally, the method further includes:
deleting list data of the preset object in the preset list storage module under the condition that the list associated elements of the preset object are reduced to zero; and removing the preset object from the preset object information.
Optionally, the method further includes:
polling objects in preset object information according to a preset frequency;
acquiring a second list data item of a target associated object of the polled object;
generating list data of the polled object based on the second list data item;
and updating the list data of the polled object to a preset list storage module.
Optionally, the method further includes:
determining the incidence relation of two objects corresponding to the object relation change behavior under the condition that the object relation change behavior is monitored;
when the incidence relation is a target incidence relation and the list data of any one of the two objects is in a preset list storage module, updating the list data of the specified object in the two objects;
the specified object in the two objects is an object of the list data in the preset list storage module.
Optionally, the method may further include:
when the association relationship of the two objects is a non-target association relationship and the list data of any one of the two objects is in a preset list storage module, the server updates the list data and the target association object number of the specified object in the two objects;
under the condition that the updated target associated object number is less than or equal to a preset threshold value, the server deletes the list data of the specified object in the preset list storage module; and removing the designated object from the preset object information.
Optionally, the method further includes:
under the condition that the number of the target associated objects of the target object is less than or equal to a preset threshold value, acquiring a third list data item of the target associated objects of the target object;
generating second target list data of the target object based on the third list data item;
and sending the second target list data to a terminal corresponding to the target object so that the terminal displays the second target list data.
Optionally, the method further includes:
determining a preset number of target associated objects from the target associated objects of the target objects under the condition that the first target list data is not inquired;
acquiring fourth list data items of a preset number of target associated objects;
generating third target list data of the target object based on the fourth list data item;
and sending the third target list data to a terminal corresponding to the target object so that the terminal displays the third target list data.
Optionally, before determining the number of target associated objects of the target object, the method further includes:
acquiring the number of list associated elements of the target object;
in the case where the number is non-zero, the step of determining the number of target-associated objects of the target object is performed.
Optionally, the method further includes:
and under the condition that the number is zero, sending the preset prompt information to a terminal corresponding to the target object so that the terminal displays the preset prompt information.
With regard to the method in the above embodiment, the specific implementation manner of each step has been described in detail in the embodiment related to the method, and will not be elaborated herein.
FIG. 8 is a block diagram illustrating a listing data presentation device according to an exemplary embodiment. Referring to fig. 8, the apparatus includes:
a first target associated object number determining module 810 configured to execute a list showing request in response to the target object, and determine a target associated object number of the target object;
the target list number query module 820 is configured to execute querying first target list data of the target object under the condition that the number of the target associated objects is larger than a preset threshold, wherein the first target list data is generated in advance based on list data items of the target associated objects of the target object;
the first target list data sending module 830 is configured to send the first target list data to a terminal corresponding to the target object under the condition that the first target list data is queried, so that the terminal displays the first target list data.
Optionally, the apparatus further comprises:
the second target associated object number determining module is configured to determine the number of target associated objects of the preset object under the condition that the increase of the list associated elements of the preset object is monitored;
the first list data item acquisition module is configured to acquire the first list data item of the target associated object of the preset object under the condition that the target associated object number of the preset object is larger than a preset threshold and the preset object is not in the preset object information;
the first list data generation module is configured to generate list data of a preset object based on the first list data item;
the first storage module is configured to store the list data of the preset object to the preset list storage module;
the target list number query module is further configured to perform query of the first target list data from the preset list storage module under the condition that the target associated object number is larger than a preset threshold.
Optionally, the apparatus further comprises:
a preset object adding module configured to perform adding a preset object to the preset object information.
Optionally, the apparatus further comprises:
the list data deleting module is configured to delete the list data of the preset object in the preset list storage module under the condition that the list related elements of the preset object are reduced to zero;
a preset object removal module configured to perform removal of the preset object from the preset object information.
Optionally, the apparatus further comprises:
an object polling module configured to perform polling for objects in preset object information according to a preset frequency;
the second list data item acquisition module is configured to execute acquisition of a second list data item of a target associated object of the polled object;
a second list data module configured to perform generating list data of the polled object based on the second list data item;
and the second storage module is configured to update the list data of the polled object to the preset list storage module.
Optionally, the apparatus further comprises:
the incidence relation determining module is configured to determine the incidence relation of two objects corresponding to the object relation changing behavior under the condition that the object relation changing behavior is monitored;
the list data updating module is configured to update the list data of the specified object in the two objects under the condition that the incidence relation is the target incidence relation and the list data of any one object in the two objects is in the preset list storage module;
the specified object in the two objects is an object of the list data in the preset list storage module.
Optionally, the apparatus further comprises:
the data updating module is configured to execute that the association relationship is a non-target association relationship, and update the list data and the target association object number of the specified object under the condition that the list data of any one of the two objects is stored in the preset list storage module;
the object data processing module is configured to delete list data of the specified object in the preset list storage module under the condition that the updated target associated object number is less than or equal to a preset threshold; and removing the designated object from the preset object information.
Optionally, the apparatus further comprises:
the third list data item acquisition module is configured to acquire the third list data item of the target associated object of the target object under the condition that the target associated object number of the target object is smaller than or equal to a preset threshold;
a first target list data generation module configured to perform generating second target list data of the target object based on the third list data item;
the second target list data sending module is configured to send the second target list data to the terminal corresponding to the target object, so that the terminal displays the second target list data.
Optionally, the apparatus further comprises:
the designated target associated object determining module is configured to determine a preset number of target associated objects from the target associated objects of the target objects under the condition that the first target list data is not inquired;
the fourth list data item acquisition module is configured to execute acquisition of fourth list data items of a preset number of target associated objects;
a second target list data generation module configured to perform generation of third target list data of the target object based on the fourth list data item;
and the third target list data sending module is configured to execute sending of the third target list data to the terminal corresponding to the target object, so that the terminal displays the third target list data.
Optionally, the apparatus further comprises:
the quantity acquisition module is configured to acquire the quantity of list associated elements of the target object before determining the target associated object quantity of the target object;
the first target associated object number determination module is further configured to execute the step of determining the target associated object number of the target object in response to the list showing request of the target object in the case that the number is non-zero.
Optionally, the apparatus further comprises:
and the preset prompt information sending module is configured to send the preset prompt information to the terminal corresponding to the target object under the condition that the number is zero, so that the terminal displays the preset prompt information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 9 is a block diagram illustrating an electronic device for list data presentation, which may be a server, according to an example embodiment, the internal structure of which may be as shown in FIG. 9. The electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a list data presentation method.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and does not constitute a limitation on the electronic devices to which the disclosed aspects apply, as a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the listing data presentation method as in an embodiment of the present disclosure.
In an exemplary embodiment, a computer-readable storage medium is also provided, and when executed by a processor of an electronic device, enables the electronic device to perform a list data presentation method in the disclosed embodiments.
In an exemplary embodiment, a computer program product containing instructions that, when run on a computer, cause the computer to perform a leaderboard data presentation method in embodiments of the disclosure is also provided.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A list data display method is characterized by comprising the following steps:
responding to a list display request of a target object, and determining the target associated object number of the target object;
under the condition that the number of the target associated objects is larger than a preset threshold value, inquiring first target list data of the target objects, wherein the first target list data are generated in advance based on list data items of the target associated objects of the target objects;
and under the condition that the first target list data is inquired, sending the first target list data to a terminal corresponding to the target object so that the terminal can display the first target list data.
2. The method of listing data presentation in accordance with claim 1, further comprising:
determining the number of target associated objects of a preset object under the condition that the increase of list associated elements of the preset object is monitored;
when the number of target associated objects of the preset object is larger than the preset threshold and the preset object is not in the preset object information, acquiring a first list data item of the target associated objects of the preset object;
generating list data of the preset object based on the first list data item;
storing the list data of the preset object to a preset list storage module;
the querying the first target list data of the target object comprises: and inquiring the first target list data from the preset list storage module.
3. The method of listing data presentation in accordance with claim 2, further comprising:
and adding the preset object to the preset object information.
4. The method of listing data presentation of claim 3, further comprising:
deleting the list data of the preset object in the preset list storage module under the condition that the list associated elements of the preset object are reduced to zero; and removing the preset object from the preset object information.
5. The method of listing data presentation of claim 3, further comprising:
polling objects in the preset object information according to a preset frequency;
acquiring a second list data item of a target associated object of the polled object;
generating list data of the polled object based on the second list data item;
and updating the list data of the polled object to the preset list storage module.
6. The method of listing data presentation in accordance with claim 1, further comprising:
determining an incidence relation between two objects corresponding to an object relation changing behavior under the condition that the object relation changing behavior is monitored;
when the incidence relation is a target incidence relation and the list data of any one of the two objects is in a preset list storage module, updating the list data of the specified object in the two objects;
and the specified object in the two objects is an object of the list data in the preset list storage module.
7. A list data presentation device, comprising:
the first target associated object number determining module is configured to execute a list showing request responding to a target object and determine the target associated object number of the target object;
the target list number query module is configured to execute query of first target list data of the target object under the condition that the number of the target associated objects is larger than a preset threshold, wherein the first target list data is generated in advance based on list data items of the target associated objects of the target object;
the first target list data sending module is configured to send the first target list data to a terminal corresponding to the target object under the condition that the first target list data is inquired, so that the terminal displays the first target list data.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the leaderboard data presentation method of any of claims 1-6.
9. A computer-readable storage medium having instructions therein which, when executed by a processor of an electronic device, enable the electronic device to perform the listing data presentation method of any of claims 1-6.
10. A computer program product comprising computer instructions that, when executed by a processor, implement the leaderboard data presentation method of any of claims 1-6.
CN202110566939.4A 2021-05-24 Method and device for displaying list data, electronic equipment and storage medium Active CN113420236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110566939.4A CN113420236B (en) 2021-05-24 Method and device for displaying list data, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110566939.4A CN113420236B (en) 2021-05-24 Method and device for displaying list data, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113420236A true CN113420236A (en) 2021-09-21
CN113420236B CN113420236B (en) 2024-05-17

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114444004A (en) * 2022-04-11 2022-05-06 飞狐信息技术(天津)有限公司 List processing method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533002A (en) * 2012-07-05 2014-01-22 阿里巴巴集团控股有限公司 Data processing method and system
US20180137169A1 (en) * 2015-07-27 2018-05-17 Alibaba Group Holding Limited Querying a database
CN109614555A (en) * 2018-12-27 2019-04-12 腾讯音乐娱乐科技(深圳)有限公司 The method and apparatus for generating ranking list
CN112807697A (en) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 List generation method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533002A (en) * 2012-07-05 2014-01-22 阿里巴巴集团控股有限公司 Data processing method and system
US20180137169A1 (en) * 2015-07-27 2018-05-17 Alibaba Group Holding Limited Querying a database
CN109614555A (en) * 2018-12-27 2019-04-12 腾讯音乐娱乐科技(深圳)有限公司 The method and apparatus for generating ranking list
CN112807697A (en) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 List generation method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114444004A (en) * 2022-04-11 2022-05-06 飞狐信息技术(天津)有限公司 List processing method and apparatus

Similar Documents

Publication Publication Date Title
CN107169094B (en) Information aggregation method and device
CN109492019B (en) Service request response method, device, computer equipment and storage medium
CN110245069B (en) Page version testing method and device and page display method and device
US10528627B1 (en) Universal search service for multi-region and multi-service cloud computing resources
CN110233879B (en) Intelligent interface pushing method and device, computer equipment and storage medium
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN110297995B (en) Method and device for collecting information
CN112807697A (en) List generation method and device, electronic equipment and storage medium
US20200004785A1 (en) Automatic grouping based on user behavior
CN108809810B (en) Instant messaging-based message record checking method and system and computer equipment
CN113051458A (en) Data processing method and device, electronic equipment and storage medium
CN113315981A (en) Task data updating method, device and system, electronic equipment and storage medium
CN113467855A (en) Webpage request processing method and device, electronic equipment and storage medium
CN113329231A (en) Resource distribution method, device, system, electronic equipment and storage medium
CN107045688B (en) Control method and device for accurately identifying target terminal
CN111767481A (en) Access processing method, device, equipment and storage medium
CN113420236B (en) Method and device for displaying list data, electronic equipment and storage medium
CN113420236A (en) List data display method and device, electronic equipment and storage medium
US20190286671A1 (en) Algorithmic computation of entity information from ip address
CN116028696A (en) Resource information acquisition method and device, electronic equipment and storage medium
CN115374154A (en) Data verification method and device, electronic equipment and storage medium
CN115017538A (en) Data processing method and device, electronic equipment and storage medium
CN115795100A (en) User event processing method and device, electronic equipment and readable storage medium
CN112532406B (en) Data processing method and device for contrast experiment, computer equipment and storage medium
CN110266610B (en) Traffic identification method and device and electronic equipment

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