CN107577808B - Method, device, server and medium for sorting multi-level list pages - Google Patents

Method, device, server and medium for sorting multi-level list pages Download PDF

Info

Publication number
CN107577808B
CN107577808B CN201710884304.2A CN201710884304A CN107577808B CN 107577808 B CN107577808 B CN 107577808B CN 201710884304 A CN201710884304 A CN 201710884304A CN 107577808 B CN107577808 B CN 107577808B
Authority
CN
China
Prior art keywords
data
classification
video
sequencing
class
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710884304.2A
Other languages
Chinese (zh)
Other versions
CN107577808A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710884304.2A priority Critical patent/CN107577808B/en
Publication of CN107577808A publication Critical patent/CN107577808A/en
Application granted granted Critical
Publication of CN107577808B publication Critical patent/CN107577808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method, a device, a server and a medium for sorting multi-level list pages, wherein the method comprises the following steps: the main coroutine acquires video data and classification data from a database, wherein the classification data comprises a first-level classification and a second-level classification; the main coroutine divides the video data into a plurality of subprocesses according to the classification data to carry out parallel sequencing calculation so as to obtain the secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification; the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine; and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data. The invention solves the technical problem of high TCP link overhead in the prior art for calculating the ordering of the video list pages, and achieves the technical effects of reducing the calculation amount and reducing the TCP link overhead of the database.

Description

Method, device, server and medium for sorting multi-level list pages
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, a server and a medium for sorting multi-level list pages.
Background
Due to the live broadcast and strong interactivity, more and more users select live broadcast as a platform for entertainment, training and communication, and then more and more anchor broadcasters are led to set live broadcast rooms on the live broadcast platform.
In order to enable anchor and audience users to have more and more perfect experience and embody fairness and real-time performance on the basis of improving the initiative of the anchor and the users, the video sequence on a live broadcast platform page is required to be refreshed in a short period.
Currently, video sorting is performed by opening a plurality of go programs, and calculating a sorted video sorting by each go program. However, since each program will establish a connection with the database and acquire data to perform calculations, the overhead of TCP link for the database is large.
Therefore, the technical problem of high TCP link overhead exists in the prior art for calculating the sequencing of the video list pages.
Disclosure of Invention
The embodiment of the application provides a method, a device, a server and a medium for sorting multi-level list pages, and solves the technical problem that TCP link overhead is large when the sorting of video list pages is calculated in the prior art.
In a first aspect, the present application provides a method for sorting multi-level list pages, where the method is applied to a server and includes:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
Optionally, the second-level ranking data includes a ranking order of the videos in the second-level classification and a ranking score of the videos in the second-level classification, where the ranking score is a score calculated by the plurality of subprograms according to a same preset ranking rule.
Optionally, the calculating, by the master co-routine, first-level ranking data of videos in the first-level classification according to the plurality of second-level ranking data includes: and the main coroutine carries out sequencing calculation on the videos in the first-level classification according to the sequencing scores in the plurality of second-level sequencing data to obtain first-level sequencing data of the videos in the first-level classification.
Optionally, the method further includes: and when the sub coroutines perform parallel sequencing calculation, controlling the times of the Transmission Control Protocol (TCP) operation of the sub coroutines and the main coroutines to be less than the preset times.
Optionally, after the calculating the first-level ranking data of the videos in the first-level classification, the method further includes: receiving a trigger operation acting on a preset plug-in component; editing the secondary sorting data or the primary sorting data based on the triggering operation; wherein the editing is deleting the video, adding the video, modifying video sequencing data or setting the top of the video.
Optionally, after the calculating the first-level ranking data of the videos in the first-level classification, the method further includes: displaying ordered pages of the video, wherein the ordered pages comprise ordered pages of the primary category and ordered pages of the secondary category.
In a second aspect, an apparatus for multi-level list page sorting is provided, where the apparatus is a server, and includes:
the data acquisition module is used for acquiring video data and classification data from a database by a main coroutine, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the dividing module is used for dividing the video data into a plurality of subprocesses according to the secondary classification and performing parallel sequencing calculation by the main coroutine according to the classification data so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates video data of one secondary classification;
the secondary calculation module is used for storing the calculated secondary sequencing data to the main coroutine by the plurality of subprograms;
and the primary calculation module is used for calculating primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data by the main coroutine.
Optionally, the second-level ranking data includes a ranking order of the videos in the second-level classification and a ranking score of the videos in the second-level classification, where the ranking score is a score calculated by the plurality of subprograms according to a same preset ranking rule.
In a third aspect, a server is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the processor implements the following steps:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
according to the method, the device, the server and the medium, the main coroutine communicates with the database to obtain video data and classification data, the video data are divided into the sub-coroutines according to the secondary classification to be calculated and sorted, the sub-coroutines return the secondary sorting data to the main coroutine to be stored, the main coroutine directly calculates primary sorting data according to the secondary sorting data, namely, all videos do not need to be calculated again to be sorted in the primary classification, the calculated amount is effectively reduced, the main coroutine only needs to establish connection with the database before calculation and obtain data, each sub-coroutine does not need to establish connection with the database, and the TCP (transmission control protocol) link overhead of the database is effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart of a method of multi-level list page sorting in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a server in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer-readable storage medium 400 in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a method, a device, a server and a medium for sorting multi-level list pages, solves the technical problem that TCP link overhead is large when the sorting of video list pages is calculated in the prior art, and achieves the technical effects of reducing the calculation amount and reducing the TCP link overhead of a database.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
a method for sorting multi-level list pages, which is applied to a server, comprises the following steps:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
Specifically, the main coroutine communicates with a database to obtain video data and classification data, the video data are divided into sub-coroutines according to two-level classification for calculation and sequencing, the sub-coroutines return the two-level sequencing data to the main coroutine for storage after calculation, and the main coroutine directly calculates primary sequencing data according to the secondary sequencing data, namely, all videos do not need to be re-calculated to be sequenced in the primary classification, the calculated amount is effectively reduced, only the main coroutine needs to be connected with the database before calculation and obtain data, and each sub-coroutine does not need to be connected with the database, so that the overhead of TCP (transmission control protocol) link of the database is effectively reduced.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Example one
As shown in fig. 1, the present embodiment provides a method for sorting multiple levels of list pages, where the method is applied to a server and includes:
step S101, a main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class and data of a second class, and the second class is a subclass of the first class;
step S102, the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates video data of one secondary classification;
step S103, the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and step S104, the main routine calculates the primary sorting data of the videos in the primary sorting according to the plurality of secondary sorting data.
In this embodiment, the server may be a computer device, a cloud, or a group of computer devices, which is not limited herein.
The following describes in detail specific implementation steps of the method for sorting multi-level list pages provided in this embodiment with reference to fig. 1: ' Qiyi
First, step S101 is executed, the main coroutine acquires video data and classification data from a database, where the classification data includes data of a first class and data of a second class, and the second class is a subclass of the first class.
Specifically, on a page of a live broadcast platform, videos are classified in order to facilitate finding of the videos by audience users, when the number of the videos is large, multi-level classification is adopted to facilitate detailed query by the audience users, as in the first-level classification and the second-level classification in the embodiment, the second-level classification is a sub-classification in the corresponding first-level classification, for example, the first-level classification includes game competition, outdoor fun and food sharing, and the second-level classification of the game competition may include secondary classifications of game events, stand-alone games, hero alliances and the like.
In this embodiment, the coroutines may also be referred to as threads, and the main coroutines and the sub-coroutines are coroutines of different levels in a GO program. The main program establishes a link with a database, and acquires video data and classification data, wherein the video data may include a video name, main broadcast information corresponding to the video, video content description information, a video click number, a video online time, video received gift data, a video current online viewer number, and the like, so that a subsequent sub program calculates a sequence according to the video data. Wherein the classification data comprises: the video classification system comprises data used for representing the classification to which each video belongs, a partition list of the primary classification and a partition list of the secondary classification under each primary classification.
In this embodiment of the application, the main coroutine may periodically acquire the video data and the classification data from the database, where a specific acquisition period may be one minute, 10 minutes, or one hour, which is not limited herein; certainly, the main routine may also trigger to acquire video data and classification data from the database, and the triggering event may be that a new video is online or a new video is offline; of course, it is also possible to combine periodicity and triggering, i.e. periodically acquiring video data and classification data, but the acquisition of video data and classification data is also supplemented when a triggering event occurs.
Then, step S102 is executed, the main coroutine divides the video data into a plurality of subprocesses according to the second-level classification according to the classification data to perform parallel sequencing calculation, so as to obtain second-level sequencing data of the video in each second-level classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates video data of one second-level classification.
In the embodiment of the application, the main coroutine divides the video data according to two-level classification, and then correspondingly sends the video data under one two-level classification to one sub-coroutine for sequencing calculation, and the plurality of sub-coroutines respectively calculate a plurality of two-level classifications in parallel, so as to improve the calculation speed. For example, if there are two-level classifications of game events, stand-alone games, hero alliances, etc., the video data of game events are sent to the subprogram No. 1 for sequencing calculation, the video data of stand-alone games are sent to the subprogram No. 2 for sequencing calculation, the video data of hero alliances are sent to the subprogram No. 3 for sequencing calculation, and the three subprograms are calculated in parallel.
Specifically, the video data is classified according to the classification data, and the video data belonging to a two-level classification may be classified together according to the classified data to which each video belongs in the classification data; or the video data may be classified according to a division list classified in two levels and then by using a big data calculation method according to the video content description information, which is not limited herein.
In this embodiment of the present application, the second-level ranking data includes a ranking order of videos in the second-level classification and a ranking score of the videos in the second-level classification, where the ranking score is a score calculated by the plurality of sub-programs according to a same preset ranking rule. For example, assuming that there are A, B, C, D, E, F, G video data in the two-level classification of the game event, the calculated two-level ranking data includes C, E, D, G, A, B, F the ranking order and also includes scores C (70), E (68), D (50), G (46), a (44), B (37), and F (11).
The scores calculated according to the same preset ordering rule may be scores calculated according to current viewing viewers, scores calculated according to anchor good scores, or scores calculated according to historical accumulated gift receiving values, which are not limited herein and are not listed one by one, but the method for calculating the scores by each sub-routine is required to be guaranteed to be uniform, so that the calculation of the subsequent first-level ordering data can be conveniently performed.
Then, step S103 and step S104 are executed, and the plurality of subprograms save the calculated plurality of secondary sequence data to the main coroutine; and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
Specifically, after the subprocess calculates the secondary sequencing data of the video under the corresponding secondary classification according to the preset sequencing rule, the secondary sequencing data is returned to the main coroutine, and the main coroutine can acquire the secondary sequencing data of the video under all the secondary classifications.
Then, the main routine calculates the first-level sorting data of the videos in the first-level classification according to the plurality of second-level sorting data.
In the embodiment of the present application, the first-level ranking data of the video under the first-level classification is calculated according to the second-level ranking data corresponding to the second-level classification under the first-level classification. Specifically, the main co-program may perform ranking calculation on the videos in the first-level classification according to the ranking scores in the plurality of second-level ranking data, so as to obtain first-level ranking data of the videos in the first-level classification.
For example, assume that there are 2 secondary categories of game events and stand-alone games under the primary category of game play. Wherein, the number 1 subroutine calculates the second-level sequencing data corresponding to the game events as C (70), E (68), D (50), G (46), A (44), B (37) and F (11); and calculating the secondary sorting data corresponding to the single game by the subsidiary program No. 2 as K (61), H (55), I (55), L (40) and J (35), and quickly calculating the primary sorting data in the primary classified game competition as C (70), E (68), K (61), H (55), I (55), D (50), G (46), A (44), L (40), J (35), B (37) and F (11) according to the scores after the main program acquires all the secondary sorting data.
Namely, the primary sorting data of the primary classification can be obtained only by simply sorting and calculating the obtained secondary sorting data, and calculation is not required according to the preset sorting rule, so that the calculation amount is greatly reduced.
In the embodiment of the application, when the classification of more than 2 levels exists, only the classification of the lowest level is needed to be performed on each subprocess for sequencing calculation, then the sequencing data of the lowest level classification is stored in the main process, and the sequencing data of the higher level classification and the highest level classification are calculated by the main process by adopting the method.
Further, in order to reduce the overhead of database TCP link, when the subprogram performs parallel sequencing calculation, the number of times of controlling the subprogram and the main carrying process to perform TCP operation is set to be less than the preset number of times. The TCP operation is mainly placed at the early stage and the later stage with small sequencing calculation amount, and when each subprogram in the middle stage carries out secondary sequencing data calculation, the TCP operation is reduced as much as possible so as to ensure the calculation speed.
Further, in order to facilitate the staff to find the problem of the sorting page in time, after the calculating the first-level sorting data of the videos in the first-level sorting, the method further includes: displaying ordered pages of the video, wherein the ordered pages comprise ordered pages of the primary category and ordered pages of the secondary category. Specifically, a preview environment before online of a live broadcast platform interface is provided, so that a worker can preview before formal online of a page and find problems of ordered pages.
Further, in order to change the ordering after finding a problem, and to set functions such as modification, set-top, delete, and the like, in the prior art, all functions are packaged together, and when the functions need to be used, a preset instruction must be sent, and then the device searches which function is provided according to the preset instruction. In order to avoid the mutual influence among functions and reduce the development difficulty, the embodiment can also be used for receiving the trigger operation acting on the preset plug-in component; editing the secondary sorting data or the primary sorting data based on the triggering operation; wherein the editing is deleting the video, adding the video, modifying video sequencing data or setting the top of the video. Specifically, each function is independently made into a plug-in unit, and the plug-in unit is operated by triggering the plug-in unit, for example, functions such as queue insertion and top placement in a video list are independently made into independent plug-in units and called externally, internal logic is not concerned, and it is not required to determine which function is to be decoupled.
Specifically, the main coroutine communicates with a database to obtain video data and classification data, the video data are divided into sub-coroutines according to two-level classification for calculation and sequencing, the sub-coroutines return the two-level sequencing data to the main coroutine for storage after calculation, and the main coroutine directly calculates primary sequencing data according to the secondary sequencing data, namely, all videos do not need to be re-calculated to be sequenced in the primary classification, the calculated amount is effectively reduced, only the main coroutine needs to be connected with the database before calculation and obtain data, and each sub-coroutine does not need to be connected with the database, so that the overhead of TCP (transmission control protocol) link of the database is effectively reduced.
Based on the same inventive concept, the application provides a device corresponding to the embodiment, which is detailed in the second embodiment.
Example two
As shown in fig. 2, the present embodiment provides an apparatus for sorting multiple list pages, where the apparatus is a server, and the apparatus includes:
a data obtaining module 201, configured to obtain, by a master coroutine, video data and classification data from a database, where the classification data includes data of a first class and data of a second class, and the second class is a subclass of the first class;
a dividing module 202, configured to divide the video data into multiple sub-coroutines according to the secondary classification and perform parallel sequencing calculation according to the classification data by the main coroutine, so as to obtain secondary sequencing data of a video in each of the secondary classifications, where each of the multiple sub-coroutines correspondingly calculates video data of one secondary classification;
a secondary calculation module 203, configured to store the calculated multiple secondary sequencing data in the main coroutine by the multiple subprograms;
a primary calculation module 204, configured to calculate, by the master coroutine, primary ranking data of videos in the primary classification according to the plurality of secondary ranking data.
In this embodiment, the server may be a computer device, a cloud, or a group of computer devices, which is not limited herein.
In this embodiment of the present application, the second-level ranking data includes a ranking order of videos in the second-level classification and a ranking score of the videos in the second-level classification, where the ranking score is a score calculated by the plurality of sub-programs according to a same preset ranking rule.
Since the apparatus described in this embodiment is an apparatus used for implementing a method for sorting multi-level list pages in the first embodiment of the present application, a person skilled in the art can understand the specific implementation manner of the apparatus of this embodiment and various variations thereof based on the method described in the first embodiment of the present application, and therefore, how to implement the method in the embodiment of the present application by the apparatus is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides a server corresponding to the third embodiment.
EXAMPLE III
The present embodiment provides a server, as shown in fig. 3, including a memory 310, a processor 320, and a computer program 311 stored on the memory 320 and capable of running on the processor 320, where the processor 320 executes the computer program 311 to implement the following steps:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
In particular, when the processor 320 executes the computer program 311, any one of the first embodiment can be implemented.
Since the server described in this embodiment is a device used for implementing the method for sorting a multi-level list page in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a person skilled in the art can understand a specific implementation manner of the server in this embodiment and various variations thereof, and therefore, how to implement the method in the embodiment of the present application by the server is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides a storage medium corresponding to the fourth embodiment, which is described in detail in the fourth embodiment.
Example four
As shown in fig. 4, the present implementation provides a computer-readable storage medium 400, on which a computer program 411 is stored, which computer program 411, when being executed by a processor, realizes the following steps:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
In a specific implementation, when the computer program 411 is executed by a processor, any one of the first embodiment may be implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for sorting multi-level list pages, which is applied to a server and comprises the following steps:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
2. The method of claim 1, wherein the secondary ranking data comprises a ranking order of videos in the secondary category and a ranking score of videos in the secondary category, wherein the ranking score is a score calculated by the plurality of sub-co-programs according to a same preset ranking rule.
3. The method of claim 2, wherein said master co-routine computes first order ranking data for videos in said first order classification from a plurality of said second order ranking data, comprising:
and the main coroutine carries out sequencing calculation on the videos in the first-level classification according to the sequencing scores in the plurality of second-level sequencing data to obtain first-level sequencing data of the videos in the first-level classification.
4. The method of claim 1, further comprising:
and when the sub coroutines perform parallel sequencing calculation, controlling the times of the Transmission Control Protocol (TCP) operation of the sub coroutines and the main coroutines to be less than the preset times.
5. The method of claim 1, wherein after said computing first order data for videos in said first class, further comprising:
receiving a trigger operation acting on a preset plug-in component;
editing the secondary sorting data or the primary sorting data based on the triggering operation; wherein the editing is deleting the video, adding the video, modifying video sequencing data or setting the top of the video.
6. The method of claim 1, wherein after said computing first order data for videos in said first class, further comprising:
displaying ordered pages of the video, wherein the ordered pages comprise ordered pages of the primary category and ordered pages of the secondary category.
7. An apparatus for multi-level list page ordering, the apparatus being a server comprising:
the data acquisition module is used for acquiring video data and classification data from a database by a main coroutine, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the dividing module is used for dividing the video data into a plurality of subprocesses according to the secondary classification and performing parallel sequencing calculation by the main coroutine according to the classification data so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates video data of one secondary classification;
the secondary calculation module is used for storing the calculated secondary sequencing data to the main coroutine by the plurality of subprograms;
and the primary calculation module is used for calculating primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data by the main coroutine.
8. The apparatus of claim 7, wherein the secondary ranking data comprises a ranking order of videos in the secondary class and a ranking score of videos in the secondary class, wherein the ranking score is a score calculated by the plurality of sub-co-programs according to a same preset ranking rule.
9. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
10. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
the main coroutine acquires video data and classification data from a database, wherein the classification data comprises data of a first class classification and data of a second class classification, and the second class classification is a subclass of the first class classification;
the main coroutine divides the video data into a plurality of subprocesses according to the secondary classification according to the classification data to perform parallel sequencing calculation so as to obtain secondary sequencing data of the video in each secondary classification, wherein each subprocess in the plurality of subprocesses correspondingly calculates the video data of one secondary classification;
the plurality of subprograms store the calculated plurality of secondary sequencing data to the main coroutine;
and the main coroutine calculates primary sequencing data of the videos in the primary classification according to the plurality of secondary sequencing data.
CN201710884304.2A 2017-09-26 2017-09-26 Method, device, server and medium for sorting multi-level list pages Active CN107577808B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710884304.2A CN107577808B (en) 2017-09-26 2017-09-26 Method, device, server and medium for sorting multi-level list pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710884304.2A CN107577808B (en) 2017-09-26 2017-09-26 Method, device, server and medium for sorting multi-level list pages

Publications (2)

Publication Number Publication Date
CN107577808A CN107577808A (en) 2018-01-12
CN107577808B true CN107577808B (en) 2020-03-17

Family

ID=61039290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710884304.2A Active CN107577808B (en) 2017-09-26 2017-09-26 Method, device, server and medium for sorting multi-level list pages

Country Status (1)

Country Link
CN (1) CN107577808B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647347B (en) * 2018-05-14 2023-07-11 中国平安财产保险股份有限公司 Paging display method, user equipment, storage medium and device
CN114157500A (en) * 2021-12-07 2022-03-08 北京天融信网络安全技术有限公司 Data packet processing method, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154224A (en) * 2006-09-30 2008-04-02 阿里巴巴公司 Websites navigation method and system thereof
CN102354315A (en) * 2011-09-22 2012-02-15 奇智软件(北京)有限公司 Generation method of site navigation page and device thereof
CN102880654A (en) * 2012-08-28 2013-01-16 深圳Tcl新技术有限公司 Method for dynamically updating favorites of information terminal browser
CN103473031A (en) * 2013-01-18 2013-12-25 龙建 Cooperative concurrent message bus, driving member assembly model and member disassembly method
CN104144181A (en) * 2013-05-08 2014-11-12 中国科学院声学研究所 Terminal aggregation method and system for network videos
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN105471707A (en) * 2015-11-19 2016-04-06 北京梅泰诺通信技术股份有限公司 Method and system for ordering friend lists
CN106390453A (en) * 2016-08-31 2017-02-15 腾讯科技(深圳)有限公司 Game system and game processing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154224A (en) * 2006-09-30 2008-04-02 阿里巴巴公司 Websites navigation method and system thereof
CN102354315A (en) * 2011-09-22 2012-02-15 奇智软件(北京)有限公司 Generation method of site navigation page and device thereof
CN102880654A (en) * 2012-08-28 2013-01-16 深圳Tcl新技术有限公司 Method for dynamically updating favorites of information terminal browser
CN103473031A (en) * 2013-01-18 2013-12-25 龙建 Cooperative concurrent message bus, driving member assembly model and member disassembly method
CN104144181A (en) * 2013-05-08 2014-11-12 中国科学院声学研究所 Terminal aggregation method and system for network videos
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN105471707A (en) * 2015-11-19 2016-04-06 北京梅泰诺通信技术股份有限公司 Method and system for ordering friend lists
CN106390453A (en) * 2016-08-31 2017-02-15 腾讯科技(深圳)有限公司 Game system and game processing method

Also Published As

Publication number Publication date
CN107577808A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
US11077362B2 (en) Machine learning driven resource allocation
US11628356B2 (en) Massive multi-player compute
CN107577808B (en) Method, device, server and medium for sorting multi-level list pages
CN110365994A (en) Recommended method, device, server and readable storage medium storing program for executing is broadcast live
CN112190927B (en) Game resource allocation method based on cloud computing and cloud game service platform
CN113440864A (en) Live broadcast indication information recommendation method, device, equipment and storage medium
CN111104583A (en) Live broadcast room recommendation method, storage medium, electronic device and system
CN112263835A (en) Game balance testing method and device, electronic equipment and storage medium
JP2022525880A (en) Server load prediction and advanced performance measurement
CN112199885B (en) Distributed model training system and application method
CN110196951A (en) User matching method and equipment
CN111888763B (en) Method and device for generating obstacle in game scene
CN111569412B (en) Cloud game resource scheduling method and device
CN115454654B (en) Adaptive resource matching obtaining method and device
CN106294395B (en) A kind of method and device of task processing
CN109173259A (en) Audio optimization method, device and equipment in a kind of game
CN109561349B (en) Method and device for pushing video
CN107609015A (en) A kind of methods of exhibiting of hot list, device, live Platform Server and medium
CN113395549A (en) Play resource downloading method, device, equipment, storage medium and program product
US20150058333A1 (en) Generating sequences of program items
CN107360466A (en) A kind of method and device to the single sequence of video frequency program
CN110831677A (en) System and method for managing content presentation in a multiplayer online game
CN107404657A (en) Method and apparatus are recommended in a kind of advertisement
CN117011744A (en) Video clip determining method, device, equipment, storage medium and program product
CN113569127A (en) Method, device, equipment and storage medium for determining recommended object

Legal Events

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