Method, device, equipment and storage medium for obtaining sorting information

By setting up high-intensity computing capabilities and memory databases on the edge server, and directly obtaining user attribute update information from the database for local sorting, the problem of slow display of sorting information in the existing technology is solved, and timely update and accurate display of sorting information is achieved.

CN114011086BActive Publication Date: 2025-08-15SHANGHAI MIHAYOULIYUE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111268283.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2025-08-15
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

In the prior art, users need to interact with the center server and data server multiple times when obtaining sorting information through the client, resulting in slow display of sorting information and unable to be updated in time.

Method used

By setting up a central processor and memory database with high-intensity computing capabilities of 64 cores on the edge server, users' attribute update information can be directly obtained from the database server, local sorting and sorting information feedback messages are generated, reducing the number of interactions.

Benefits of technology

This improves the generation speed of sorting information, enables the sorting information to be updated in time, reduces the number of interactions between the client and the server, and improves the display speed and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114011086B_ABST
    Figure CN114011086B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention disclose a ranking information acquisition method, apparatus, device, and storage medium, which are applied to an edge server. The method comprises: in response to a detected ranking information acquisition request, acquiring a requesting user identifier corresponding to the ranking information acquisition request; determining target ranking information corresponding to the requesting user identifier based on current ranking information and user attribute update information, wherein the user attribute update information is acquired from a database server; generating a ranking information feedback message based on the target ranking information, and sending the ranking information feedback message to a client. By having the edge server perform ranking based on the user attribute update information and ranking information acquired from the database server, the ranking speed is improved, thereby increasing the speed of generating the ranking information feedback message and enabling timely updates of the ranking information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for obtaining sorting information. Background Art

[0002] Currently, most games offer various in-game events, where rewards are distributed based on players' rankings in the game leaderboards. Users interested in these events generally want to see the current ranking information displayed to determine whether to adjust ranking attributes. Therefore, accurately displaying leaderboards is a pressing technical challenge. Summary of the Invention

[0003] Embodiments of the present invention provide a method, apparatus, device, and storage medium for obtaining sorting information, so as to achieve smooth display of chat information.

[0004] In a first aspect, an embodiment of the present invention provides a method for obtaining ranking information, which is applied to an edge server and includes:

[0005] In response to the detected ranking information acquisition request, obtaining a requesting user identifier corresponding to the ranking information acquisition request;

[0006] Determining target sorting information corresponding to the requesting user identifier based on current sorting information and user attribute update information, wherein the user attribute update information is complete attribute information of the user whose attributes have been changed obtained from the database server;

[0007] A sorting information feedback message is generated based on the target sorting information, and the sorting information feedback message is sent to the client.

[0008] In a second aspect, an embodiment of the present invention further provides a method for obtaining ranking information, which is applied to a client and includes:

[0009] In response to the detected ranking information acquisition event, acquiring a requesting user identifier corresponding to the ranking information acquisition event;

[0010] Generate a ranking information acquisition request based on the requesting user identifier, and send the ranking information acquisition request to the edge server;

[0011] Receive the sorting information feedback message returned by the edge server, and generate a sorting information display interface based on the sorting information feedback message.

[0012] In a third aspect, an embodiment of the present invention further provides a ranking information acquisition device, which is configured on an edge server and includes:

[0013] a requesting user identification module, configured to obtain a requesting user identification corresponding to the ranking information obtaining request in response to a detected ranking information obtaining request;

[0014] A ranking information generating module, configured to determine target ranking information corresponding to the requesting user identifier based on current ranking information and user attribute update information, wherein the user attribute update information is obtained from a database server;

[0015] The sorting message feedback module is used to generate a sorting information feedback message based on the target sorting information and send the sorting information feedback message to the client.

[0016] In a fourth aspect, an embodiment of the present invention further provides a ranking information acquisition device, which is configured on a client and includes:

[0017] A requesting user identification module, configured to obtain a requesting user identification corresponding to a ranking information acquisition event in response to a detected ranking information acquisition event;

[0018] A sorting information request module, configured to generate a sorting information acquisition request based on a requesting user identifier and send the sorting information acquisition request to an edge server;

[0019] The sorting information display module is used to receive the sorting information feedback message returned by the edge server and generate a sorting information display interface according to the sorting information feedback message.

[0020] In a fifth aspect, an embodiment of the present invention further provides a computer device, comprising:

[0021] one or more processors;

[0022] a storage device for storing one or more programs;

[0023] When one or more programs are executed by one or more processors, the one or more processors implement the method for obtaining sorting information provided by any embodiment of the present invention.

[0024] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for obtaining sorting information as provided in any embodiment of the present invention.

[0025] The ranking information acquisition method provided in an embodiment of the present invention obtains a requesting user identifier corresponding to a ranking information acquisition request in response to a detected ranking information acquisition request; determines target ranking information corresponding to the requesting user identifier based on current ranking information and user attribute update information, wherein the user attribute update information is complete attribute information of users with changed attributes obtained from a database server; generates a ranking information feedback message based on the target ranking information, and sends the ranking information feedback message to a client. By having an edge server perform ranking based on the user attribute update information and ranking information obtained from the database server, the ranking speed is improved, thereby increasing the speed of generating the ranking information feedback message and enabling timely updates of the ranking information. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a flow chart of a method for obtaining ranking information provided in the first embodiment of the present invention;

[0027] Figure 2 This is a flow chart of a method for obtaining ranking information provided in the second embodiment of the present invention;

[0028] Figure 3 This is a structural diagram of a ranking information acquisition device provided by Embodiment 3 of the present invention;

[0029] Figure 4 This is a structural diagram of a ranking information acquisition device provided by a fourth embodiment of the present invention;

[0030] Figure 5 This is a structural diagram of a computer device provided in Example 5 of the present invention. DETAILED DESCRIPTION

[0031] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0032] Example 1

[0033] Figure 1 This is a flow chart of a method for obtaining ranking information provided in the first embodiment of the present invention. This embodiment is applicable to situations where, in response to a ranking information acquisition request initiated by a client, a ranking information feedback message is sent to the client for display, and is particularly applicable to situations where, in response to a ranking information acquisition request initiated by a game application on a mobile terminal, the ranking information acquisition method can be executed by a ranking information acquisition device, which can be implemented in software and / or hardware. For example, the ranking information acquisition device can be configured in a computer device, such as an edge server. Figure 1 As shown, the method includes:

[0034] S110 : In response to the detected ranking information acquisition request, obtain a requesting user identifier corresponding to the ranking information acquisition request.

[0035] To address the existing technical issue of users needing to interact multiple times with a central server, data server, and gateway server before obtaining ranking information through a client, this embodiment employs an edge server to generate and feedback ranking information. To better address this technical issue and increase the speed of message display, the central processing unit (CPU) of the edge server provided in this embodiment of the present invention must possess at least 64 cores of high-intensity computing power to rapidly perform ranking based on user attribute information and generate ranking information feedback messages.

[0036] It is understandable that in order to enable the interaction between the client and the edge server regarding sorting information, it is necessary to predefine the method class, and in order to be able to sort the user attributes in the edge server, it is necessary to predefine the method class for executing the sorting. For example, a rankCalcMgr can be implemented in the edge server to communicate with the game center business server, as well as the edge computing rankings. Furthermore, in order to further improve the sorting speed, an in-memory database is provided in the edge server, and the sorting operation is performed through the in-memory database. Therefore, it is necessary to implement a rankDB for managing a local server in memory form. At the same time, in order to be able to obtain the changed user attribute information in a timely manner, it is also necessary to implement a rankDataMgr for communicating with the front end once every 0.5 seconds.

[0037] In this embodiment, the client directly sends a ranking information request to the edge server. This ranking information request can be initiated by a user through the client to display ranking information. For example, when a user accesses the ranking system through the client, a ranking information request is triggered. Upon receiving the ranking information request initiated by the client, the edge server parses the request, obtains the requesting user identifier corresponding to the ranking information request, and performs ranking based on the requesting user identifier.

[0038] S120: Determine target sorting information corresponding to the requesting user identifier based on the current sorting information and user attribute update information, wherein the user attribute update information is complete attribute information of the user whose attributes have been changed, obtained from the database server.

[0039] Generally speaking, when user attributes are updated, the database server will perform corresponding updates, but the database server updates the user's complete attribute information. In other words, the user attribute update information provided by the database server includes all attribute information for the user whose attributes have changed. For example, suppose the user attributes include grain production, troop combat power, and town power score. The user only updates the grain production attribute information, but the user attribute update information provided by the database server includes the complete attribute information, including grain production, troop combat power, and town power score. Therefore, the user attribute update information obtained from the database server consumes a relatively large amount of memory, and the calculations based on the user attribute update information are also relatively complex.

[0040] In this embodiment, after detecting the ranking information acquisition request, the edge server acquires the attribute information required for ranking, updates the current ranking according to the acquired user attribute update information, and performs the ranking operation.

[0041] It should be noted that the edge server can completely update the current ranking information based on the user attribute update information obtained from the database server to obtain the target ranking information. However, a complete update requires a large amount of computation and is time-consuming. Considering that users are primarily concerned with their own ranking data, such as whether their ranking is rising or falling, in order to quickly provide users with the data they are interested in, it is possible to only sort users within a set interval of their ranking, allowing users to quickly understand their own ranking status.

[0042] In one embodiment of the present invention, the target sorting information corresponding to the requesting user identifier is determined based on the current sorting information and the user attribute update information, including: performing the following operations through the memory database: updating the current sorting information based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and determining the target sorting information corresponding to the requesting user identifier based on the updated sorting information. Preferably, the sorting operation is performed through the memory database in the edge server to speed up the sorting speed. Optionally, part of the user attribute update information can be selected based on the requesting user identifier to update the current sorting information. It can be understood that the selected part of the attribute update information is the attribute update information of the user corresponding to the sorting number associated with the sorting number corresponding to the requesting user identifier.

[0043] In one embodiment, the current sorting information is updated based on the user attribute update information and the requesting user identifier to obtain updated sorting information, including: determining the current sorting sequence number of the requesting user identifier in the current sorting information; determining the associated attribute update information associated with the current sorting sequence number in the user attribute update information; and updating the current sorting information based on the associated attribute update information to obtain updated sorting information. Optionally, the attribute information required for sorting can be determined based on the current sorting sequence number of the requesting user identifier in the current sorting information. The attribute information required for sorting is part of the information in the user attribute update information. For example, assuming that the current sorting sequence number of the requesting user identifier in the current sorting information is 10, then based on sequence number 10, part of the information is selected from the user attribute update information as the associated attribute update information, and re-sorting is performed according to the associated attribute information.

[0044] Optionally, determining the associated attribute update information associated with the current sorting sequence number in the user attribute update information includes: determining the updated sorting sequence number and the updated user identifier corresponding to the updated sorting sequence number according to the current sorting sequence number; and using the user attribute update information corresponding to the updated user identifier as the associated attribute update information. Generally speaking, the ranking of a user in the ranking list is affected by the users before and after its own ranking. Therefore, the updated sorting sequence number is determined according to the current sorting sequence number, the user representation corresponding to the updated sorting sequence number is used as the updated user identifier, and the attribute update information of the updated user identifier in the user attribute update information is used as the associated attribute update information. For example, assuming that the current sorting sequence number is 10, based on the current sorting sequence number 10, the updated sorting sequence number 9 and the updated sorting sequence number 11 are determined, then the user identifier 1 corresponding to the updated sorting sequence number 9 and the user identifier 2 corresponding to the updated sorting sequence number 10 are determined, and then the attribute update information corresponding to the user identifier 1 and the attribute update information corresponding to the user identifier 2 in the user attribute update information are used as the associated attribute update information.

[0045] Based on the above solution, determining the updated sort number based on the current sort number includes: using the sort number within a set interval threshold from the current sort number as the updated sort number. Optionally, the interval threshold can be set according to actual server requirements, and the updated sort number is determined based on the preset interval threshold. Assuming the interval threshold is set to N and the current sort number is M, the updated sort number is an integer between MN and M+N.

[0046] In one embodiment of the present invention, updating current sorting information based on associated attribute update information to obtain updated sorting information includes: determining, for each updating user identifier, an updated sorting sequence number corresponding to the updating user identifier based on the associated attribute update information corresponding to the updating user identifier; and updating the current sorting information based on the updated sorting sequence number of each updating user identifier to obtain updated sorting information. After determining the updating user identifier, calculating the updated attribute value of the updating user for each updating user identifier, and determining the updated sorting sequence number of the updating user based on the updated attribute value. The updated sorting information is then updated based on the updated sorting sequence number to obtain the updated sorting information.

[0047] S130: Generate a ranking information feedback message based on the target ranking information, and send the ranking information feedback message to the client.

[0048] In this embodiment, the edge server completes the sorting of users associated with the requesting user identifier, generates a sorting information feedback message, and sends the sorting information feedback message to the client, so that the client can receive the sorting information feedback message after interacting with the edge server once, which speeds up the display speed of the sorting information and improves the accuracy of the displayed sorting information.

[0049] It should be noted that for each ranking request initiated by a user, the edge server may perform the ranking operation and send ranking information feedback messages more than once. To ensure the accuracy of the ranking information displayed, the edge server will periodically perform the ranking operation and generate and send ranking information feedback messages while the user client is in the ranking system interface. The timing frequency can be set according to actual needs. For example, the edge server can perform the ranking operation and send the ranking information feedback message to the client every 0.5 seconds.

[0050] The ranking information acquisition method provided in an embodiment of the present invention obtains a requesting user identifier corresponding to a ranking information acquisition request in response to a detected ranking information acquisition request; determines target ranking information corresponding to the requesting user identifier based on current ranking information and user attribute update information, wherein the user attribute update information is complete attribute information of users with changed attributes obtained from a database server; generates a ranking information feedback message based on the target ranking information, and sends the ranking information feedback message to a client. By having an edge server perform ranking based on the user attribute update information and ranking information obtained from the database server, the ranking speed is improved, thereby increasing the speed of generating the ranking information feedback message and enabling timely updates of the ranking information.

[0051] Example 2

[0052] Figure 2This is a flow chart illustrating a method for obtaining ranking information provided in the second embodiment of the present invention. This embodiment is applicable to situations where ranking information is displayed to a user in response to a detected ranking information acquisition event, and is particularly applicable to situations where ranking information acquisition events are detected within a gaming application. This method can be performed by a ranking information acquisition device, which can be implemented in software and / or hardware. For example, the ranking information acquisition device can be configured on a computer device, such as a client.

[0053] like Figure 2 As shown, the method includes:

[0054] S210 : In response to a detected ranking information acquisition event, obtain a requesting user identifier corresponding to the ranking information acquisition event.

[0055] In this embodiment, the client detects a ranking information acquisition event initiated by a user, generates a ranking information acquisition request according to the ranking information acquisition event, and sends the ranking information acquisition request to the edge server to obtain the message display content corresponding to the ranking information acquisition event from the edge server.

[0056] For example, a user may trigger a ranking information acquisition event by accessing a ranking system of an application within a client. After detecting the ranking information acquisition event triggered by the user, the client determines the user identifier as the requesting user identifier.

[0057] S220: Generate a ranking information acquisition request based on the requesting user identifier, and send the ranking information acquisition request to the edge server.

[0058] After the client determines the requesting user ID, it generates a sorting information acquisition request based on the requesting user ID and the sorting information acquisition event, and sends the sorting information acquisition request to the edge server. Specifically, the sorting information acquisition request can be sent to the edge server by calling a set interface through a predefined class.

[0059] S230: Receive a sorting information feedback message returned by the edge server, and generate a sorting information display interface according to the sorting information feedback message.

[0060] After receiving the ranking information acquisition request, the edge server performs the ranking operation and generates a ranking information feedback message based on the ranking result, sending it to the client. The client receives the ranking information feedback message returned by the edge server and generates a ranking information display interface based on the ranking information feedback message for display. The specific method for the edge server to perform the ranking operation and generate the ranking information feedback message based on the ranking result can be found in the ranking information acquisition method provided in Example 1 and will not be further described here.

[0061] The ranking information acquisition method provided by an embodiment of the present invention obtains a requesting user identifier corresponding to a detected ranking information acquisition event in response to the event; generates a ranking information acquisition request based on the requesting user identifier and sends the ranking information acquisition request to an edge server; receives a ranking information feedback message returned by the edge server, and generates a ranking information display interface based on the ranking information feedback message. This allows users to obtain ranking information through a single interaction between the client and the edge server, and executing the ranking operation within the edge server accelerates the sorting process, enabling timely updates of ranking information.

[0062] Example 3

[0063] Figure 3 This is a schematic diagram of the structure of a ranking information acquisition device provided by the third embodiment of the present invention. The ranking information acquisition device can be implemented in software and / or hardware. For example, the ranking information acquisition device can be configured in a computer device, such as an edge server. Figure 3 As shown, the apparatus includes a requesting user identification module 310, a sorting information generating module 320, and a sorting message feedback module 330, wherein:

[0064] A requesting user identification module 310 is configured to obtain a requesting user identification corresponding to the ranking information obtaining request in response to a detected ranking information obtaining request;

[0065] A ranking information generating module 320 is configured to determine target ranking information corresponding to the requesting user identifier based on the current ranking information and the user attribute update information, wherein the user attribute update information is obtained from the database server;

[0066] The sorting message feedback module 330 is configured to generate a sorting information feedback message based on the target sorting information and send the sorting information feedback message to the client.

[0067] The ranking information acquisition device provided in an embodiment of the present invention utilizes a requesting user identification module configured within an edge server to respond to a detected ranking information acquisition request and obtain the requesting user identification corresponding to the ranking information acquisition request. A ranking information generation module determines target ranking information corresponding to the requesting user identification based on current ranking information and user attribute update information, where the user attribute update information is obtained from a database server. A ranking message feedback module generates a ranking information feedback message based on the target ranking information and sends the ranking information feedback message to a client. By having the edge server perform ranking based on the user attribute update information and ranking information obtained from the database server, the ranking speed is improved, thereby increasing the speed of generating ranking information feedback messages and enabling timely updates of ranking information.

[0068] Optionally, based on the above solution, the ranking information generating module 320 is specifically configured to:

[0069] Perform the following operations using the in-memory database:

[0070] The current sorting information is updated based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and the target sorting information corresponding to the requesting user identifier is determined according to the updated sorting information.

[0071] Optionally, based on the above solution, the ranking information generating module 320 is specifically configured to:

[0072] Determine the current sorting sequence number of the requesting user ID in the current sorting information;

[0073] Determine the associated attribute update information associated with the current sorting sequence number in the user attribute update information;

[0074] The current sorting information is updated based on the associated attribute update information to obtain updated sorting information.

[0075] Optionally, based on the above solution, the ranking information generating module 320 is specifically configured to:

[0076] Determine the updated sorting sequence number and the updated user ID corresponding to the updated sorting sequence number according to the current sorting sequence number;

[0077] The user attribute update information corresponding to the updated user identifier is used as the associated attribute update information.

[0078] Optionally, based on the above solution, the ranking information generating module 320 is specifically configured to:

[0079] The sorting sequence number that is within the set interval threshold from the current sorting sequence number is used as the updated sorting sequence number.

[0080] Optionally, based on the above solution, the ranking information generating module 320 is specifically configured to:

[0081] For each updated user identifier in turn, determining an update sorting sequence number corresponding to the updated user identifier based on the associated attribute update information corresponding to the updated user identifier;

[0082] The current sorting information is updated based on the updated sorting sequence number of each updating user identifier to obtain updated sorting information.

[0083] The ranking information acquisition device provided in the embodiment of the present invention can execute the ranking information acquisition method provided in the first embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0084] Example 4

[0085] Figure 4 : is a structural diagram of a ranking information acquisition device provided by the fourth embodiment of the present invention. The ranking information acquisition device can be implemented in software and / or hardware. For example, the ranking information acquisition device can be configured in a computer device, such as a client. Figure 4 As shown, the apparatus includes a requesting user identification module 410, a ranking information requesting module 420, and a ranking information displaying module 430, wherein:

[0086] The requesting user identification module 410 is configured to obtain a requesting user identification corresponding to a ranking information acquisition event in response to a detected ranking information acquisition event;

[0087] The ranking information request module 420 is configured to generate a ranking information acquisition request based on a requesting user identifier and send the ranking information acquisition request to an edge server;

[0088] The sorting information display module 430 is configured to receive the sorting information feedback message returned by the edge server and generate a sorting information display interface according to the sorting information feedback message.

[0089] The ranking information acquisition device provided by the embodiment of the present invention utilizes a requesting user identification module configured within a client to respond to a detected ranking information acquisition event and obtain the requesting user identification corresponding to the ranking information acquisition event. The ranking information request module generates a ranking information acquisition request based on the requesting user identification and sends the ranking information acquisition request to an edge server. The ranking information display module receives the ranking information feedback message returned by the edge server and generates a ranking information display interface based on the ranking information feedback message. This allows users to obtain ranking information through a single interaction between the client and the edge server, and executing the ranking operation within the edge server accelerates the sorting process, allowing for timely updates of ranking information.

[0090] The ranking information acquisition device provided in the embodiment of the present invention can execute the ranking information acquisition method provided in the second embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0091] Example 5

[0092] Figure 5 This is a structural diagram of a computer device provided in Example 5 of the present invention. Figure 5 A block diagram of an exemplary computer device 512 suitable for implementing embodiments of the present invention is shown. Figure 5 The computer device 512 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention.

[0093] like Figure 5As shown, computer device 512 is implemented as a general-purpose computing device. Components of computer device 512 may include, but are not limited to, one or more processors 516, a system memory 528, and a bus 518 that connects various system components (including system memory 528 and processor 516).

[0094] Bus 518 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a local bus to processor 516, or a bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0095] The computer device 512 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 512, including volatile and non-volatile media, removable and non-removable media.

[0096] System memory 528 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 530 and / or cache memory 532. Computer device 512 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage device 534 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 5 Not shown, often called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 518 via one or more data media interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.

[0097] A program / utility 540 having a set (at least one) of program modules 542 may be stored, for example, in memory 528. Such program modules 542 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 542 generally implement the functions and / or methodologies of the embodiments described herein.

[0098] The computer device 512 can also communicate with one or more external devices 514 (e.g., a keyboard, pointing device, display 524, etc.), one or more devices that enable a user to interact with the computer device 512, and / or any device that enables the computer device 512 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication can occur via an input / output (I / O) interface 522. Furthermore, the computer device 512 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 520. As shown, the network adapter 520 communicates with the other modules of the computer device 512 via a bus 518. It should be understood that, although not shown, other hardware and / or software modules can be used in conjunction with the computer device 512, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0099] The processor 516 executes various functional applications and data processing by running programs stored in the system memory 528, such as implementing the ranking information acquisition method provided in the first embodiment of the present invention, which includes:

[0100] In response to the detected ranking information acquisition request, acquiring a requesting user identifier corresponding to the ranking information acquisition request;

[0101] Determining target sorting information corresponding to the requesting user identifier based on current sorting information and user attribute update information, wherein the user attribute update information is complete attribute information of the user whose attributes have been changed obtained from the database server;

[0102] Generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client;

[0103] And / or, implementing the method for obtaining ranking information provided in the second embodiment of the present invention, the method comprising:

[0104] In response to the detected ranking information acquisition event, acquiring a requesting user identifier corresponding to the ranking information acquisition event;

[0105] Generate a ranking information acquisition request based on the requesting user identifier, and send the ranking information acquisition request to the edge server;

[0106] Receive the sorting information feedback message returned by the edge server, and generate a sorting information display interface based on the sorting information feedback message.

[0107] Of course, those skilled in the art will understand that the processor can also implement the technical solution of the sorting information acquisition method provided by any embodiment of the present invention.

[0108] Example 6

[0109] The sixth embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for obtaining ranking information provided in the first embodiment of the present invention is implemented. The method includes:

[0110] In response to the detected ranking information acquisition request, acquiring a requesting user identifier corresponding to the ranking information acquisition request;

[0111] Determining target sorting information corresponding to the requesting user identifier based on current sorting information and user attribute update information, wherein the user attribute update information is complete attribute information of the user whose attributes have been changed obtained from the database server;

[0112] Generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client;

[0113] And / or, implementing the method for obtaining ranking information provided in the second embodiment of the present invention, the method comprising:

[0114] In response to the detected ranking information acquisition event, acquiring a requesting user identifier corresponding to the ranking information acquisition event;

[0115] Generate a ranking information acquisition request based on the requesting user identifier, and send the ranking information acquisition request to the edge server;

[0116] Receive the sorting information feedback message returned by the edge server, and generate a sorting information display interface based on the sorting information feedback message.

[0117] Of course, the computer-readable storage medium provided by an embodiment of the present invention stores a computer program which is not limited to the above method operations, but can also perform related operations of the sorting information acquisition method provided by any embodiment of the present invention.

[0118] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0119] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0120] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0121] Computer program code for carrying out the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0122] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions are possible for those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for obtaining ranking information, characterized in that: Applied to an edge server, the method includes: In response to the detected ranking information acquisition request, obtaining a requesting user identifier corresponding to the ranking information acquisition request; Determining target sorting information corresponding to the requesting user identifier based on current sorting information and user attribute update information, wherein the user attribute update information is complete attribute information of the user whose attributes have been changed obtained from the database server; Generate a ranking information feedback message based on the target ranking information, and send the ranking information feedback message to the client; The determining, based on the current sorting information and the user attribute update information, the target sorting information corresponding to the requesting user identifier includes: Perform the following operations using the in-memory database: updating the current ranking information based on the user attribute update information and the requesting user identifier to obtain updated ranking information, and determining target ranking information corresponding to the requesting user identifier according to the updated ranking information; The updating of the current sorting information based on the user attribute update information and the requesting user identifier to obtain updated sorting information includes: Determine the current sorting sequence number of the requesting user identifier in the current sorting information; Determining associated attribute update information associated with the current sorting sequence number in the user attribute update information; The current sorting information is updated based on the associated attribute update information to obtain the updated sorting information; wherein, the attribute information required for sorting is determined based on the current sorting sequence number of the requesting user identifier in the current sorting information, and the attribute information required for sorting is part of the information in the user attribute update information.

2. The method according to claim 1, characterized in that The determining of associated attribute update information associated with the current sorting sequence number in the user attribute update information includes: Determine an updated sorting number and an updated user identifier corresponding to the updated sorting number according to the current sorting number; The user attribute update information corresponding to the updated user identifier is used as the associated attribute update information.

3. The method according to claim 2, characterized in that The step of determining an updated sorting sequence number according to the current sorting sequence number includes: The sorting sequence number that is within a set interval threshold from the current sorting sequence number is used as the updated sorting sequence number.

4. The method according to claim 1, wherein The updating of the current sorting information based on the associated attribute update information to obtain the updated sorting information includes: For each of the updating user identifiers, determining the update sorting sequence number corresponding to the updating user identifier based on the associated attribute update information corresponding to the updating user identifier; The current sorting information is updated based on the updated sorting sequence number of each updated user identifier to obtain the updated sorting information.

5. A method for obtaining ranking information, characterized in that: Applied to the client, including: In response to a detected ranking information acquisition event, acquiring a requesting user identifier corresponding to the ranking information acquisition event; Generate a ranking information acquisition request based on the requesting user identifier, and send the ranking information acquisition request to the edge server; Receive a sorting information feedback message returned by the edge server, and generate a sorting information display interface according to the sorting information feedback message; The determining, based on the current sorting information and the user attribute update information, the target sorting information corresponding to the requesting user identifier includes: Perform the following operations using the in-memory database: updating the current ranking information based on the user attribute update information and the requesting user identifier to obtain updated ranking information, and determining target ranking information corresponding to the requesting user identifier according to the updated ranking information; The updating of the current sorting information based on the user attribute update information and the requesting user identifier to obtain updated sorting information includes: Determine the current sorting sequence number of the requesting user identifier in the current sorting information; Determining associated attribute update information associated with the current sorting sequence number in the user attribute update information; The current sorting information is updated based on the associated attribute update information to obtain the updated sorting information; wherein, the attribute information required for sorting is determined based on the current sorting sequence number of the requesting user identifier in the current sorting information, and the attribute information required for sorting is part of the information in the user attribute update information.

6. A ranking information acquisition device, characterized in that: Configured on the edge server, including: a requesting user identification module, configured to obtain, in response to a detected ranking information acquisition request, a requesting user identification corresponding to the ranking information acquisition request; a ranking information generating module, configured to determine target ranking information corresponding to the requesting user identifier based on current ranking information and user attribute update information, wherein the user attribute update information is obtained from a database server; A sorting message feedback module, configured to generate a sorting information feedback message based on the target sorting information, and send the sorting information feedback message to the client; The sorting information generation module is specifically used to: Perform the following operations using the in-memory database: Update the current sorting information based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and determine the target sorting information corresponding to the requesting user identifier based on the updated sorting information; The sorting information generation module is specifically used to: Determine the current sorting sequence number of the requesting user ID in the current sorting information; Determine the associated attribute update information associated with the current sorting sequence number in the user attribute update information; The current sorting information is updated based on the associated attribute update information to obtain updated sorting information; wherein, the attribute information required for sorting is determined based on the current sorting sequence number of the requesting user identifier in the current sorting information, and the attribute information required for sorting is part of the information in the user attribute update information.

7. A ranking information acquisition device, characterized in that: Configuration on the client, including: A requesting user identification module, configured to obtain a requesting user identification corresponding to a detected ranking information acquisition event; A ranking information request module, configured to generate a ranking information acquisition request based on the requesting user identifier, and send the ranking information acquisition request to an edge server; A sorting information display module is used to receive the sorting information feedback message returned by the edge server and generate a sorting information display interface according to the sorting information feedback message; The sorting information generation module is specifically used to: Perform the following operations using the in-memory database: Update the current sorting information based on the user attribute update information and the requesting user identifier to obtain updated sorting information, and determine the target sorting information corresponding to the requesting user identifier based on the updated sorting information; The sorting information generation module is specifically used to: Determine the current sorting sequence number of the requesting user ID in the current sorting information; Determine the associated attribute update information associated with the current sorting sequence number in the user attribute update information; The current sorting information is updated based on the associated attribute update information to obtain updated sorting information; wherein, the attribute information required for sorting is determined based on the current sorting sequence number of the requesting user identifier in the current sorting information, and the attribute information required for sorting is part of the information in the user attribute update information.

8. A computer device, characterized in that: The device comprises: one or more processors; a storage device for storing one or more programs; When one or more programs are executed by one or more processors, the one or more processors implement the method for obtaining ranking information as described in any one of claims 1 to 4; and / or implement the method for obtaining ranking information as described in claim 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for obtaining ranking information according to any one of claims 1 to 4 is implemented; and / or the method for obtaining ranking information according to claim 5 is implemented.

Citation Information

Patent Citations

  • Product information recommendation method, device and system and storage medium

    CN112650946A

  • Data management system, method and device

    CN113440861A