CN112231589A - Information management method and device - Google Patents

Information management method and device Download PDF

Info

Publication number
CN112231589A
CN112231589A CN202011079608.XA CN202011079608A CN112231589A CN 112231589 A CN112231589 A CN 112231589A CN 202011079608 A CN202011079608 A CN 202011079608A CN 112231589 A CN112231589 A CN 112231589A
Authority
CN
China
Prior art keywords
information
piece
fragment
time
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011079608.XA
Other languages
Chinese (zh)
Other versions
CN112231589B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011079608.XA priority Critical patent/CN112231589B/en
Publication of CN112231589A publication Critical patent/CN112231589A/en
Application granted granted Critical
Publication of CN112231589B publication Critical patent/CN112231589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing

Abstract

The embodiment of the application provides an information management method and a device, the method comprises the steps of firstly receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index; then, according to the access identification, determining a target information slice, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different; determining a target information fragment from all information fragments included in the target information fragment according to the information index; determining display content to be pushed from the target information fragment according to historical pushing data corresponding to the access identifier; and finally, pushing the display content to be pushed to the terminal. Through grouping setting in this application, different grouping parameters that correspond are different with the burst parameter, have reduced the space that the information piece burst took, have saved the resource, also make simultaneously to the sequencing work load reduction of information display content at every turn, have shortened the sequencing time, have improved user experience.

Description

Information management method and device
Technical Field
The present application relates to the field of computers, and in particular, to an information management method and apparatus.
Background
In a post community of a game platform, users need to screen circles and post sorting modes on a product page to select interested post lists for reading and interaction, and in the browsing process, the users usually perform pull-down refreshing operation to obtain more post lists.
In order to avoid the problem that the sequence of the current post list is changed due to the fact that the sequence of the current post list is changed by the top post operations of other users such as praise, comment, post issuing or post deleting when a user executes a pull-down refreshing operation, and the refreshed post list is disordered with a new post list and an old post list, a fragment concurrency control mechanism is generally adopted in the prior art, namely a plurality of information fragments are generated at regular time, the latest information fragment is pulled when the user accesses, different post lists are obtained from the information fragment according to different screening items selected by the user, the same user corresponds to the same information fragment when browsing and pulling down the refreshed post list, and the top post operations of other users in other information fragments do not influence the post list in the information fragment during the period, so that the sequence change of the list caused by the top post operations of other users can be avoided. However, in this way, all posts in the community need to be sorted in full and incremental ways each time, and after a post list is correspondingly generated and cached in the information fragment, the data volume in the information fragment is large, which causes excessive occupation of space and waste of resources.
Content of application
The embodiment of the application provides an information management method and device, which can relieve the problem of resource waste and improve user experience.
In one aspect, the present application provides an information management method, including:
receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index;
determining a target information slice according to the access identifier, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different;
according to the information index, determining a target information fragment from all information fragments included in the target information fragment;
determining display content to be pushed from the target information fragment according to historical pushing data corresponding to the access identifier;
and pushing the display content to be pushed to the terminal.
In one aspect, the present application provides an information management apparatus, including:
the receiving module is used for receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index;
the information piece determining module is used for determining a target information piece according to the access identifier, wherein the target information piece comprises at least two grouped information pieces, and the grouping parameters and the piece parameters corresponding to different groups are different;
the information fragment determining module is used for determining a target information fragment from all information fragments included in the target information fragment according to the information index;
the display content determining module is used for determining display content to be pushed from the target information fragment according to historical push data corresponding to the access identifier;
and the pushing module is used for pushing the display content to be pushed to the terminal.
In an embodiment, the information management apparatus further includes an allocation module, configured to receive an information access request, and allocate an information piece to an access identifier corresponding to the information access request according to a request time of the information access request.
In one embodiment, the assignment module is to: and binding the index identification and the access identification corresponding to the information piece.
In an embodiment, the information management apparatus further includes a detection module, configured to detect time validity of an information piece, and if the existence time of the information piece exceeds a preset expiration time, re-assign the information piece to the access identifier.
In one embodiment, the information management apparatus further includes:
the first acquisition module is used for acquiring grouping parameters and dividing information into at least two groups according to the grouping parameters, wherein each group corresponds to different types of information indexes;
the second acquisition module is used for acquiring the fragment parameters corresponding to each group and fragmenting the display content of the information corresponding to each group according to the fragment parameters to obtain the information fragments of each group;
and the generating module is used for combining the latest information fragments of each group to obtain the information fragments and generating the index identifications corresponding to the information fragments when the information fragments need to be generated according to the local time.
In one embodiment, the grouping parameter includes at least one of a total amount of user interest, an amount of user browsing, an amount of user posting operations, and a user browsing duration.
In an embodiment, the generating module is configured to monitor whether a new information fragment is generated since a previous information fragment is generated, and if so, the information fragment needs to be generated.
In one embodiment, the second obtaining module includes:
the first obtaining submodule is used for obtaining the fragment time length corresponding to the packet with the highest packet level;
and the determining submodule is used for determining the fragment time length of other level groups according to the fragment time length.
In one embodiment, the information management apparatus further includes:
and the updating module is used for receiving the incremental information and updating the display content of the incremental information to the latest information fragment of the corresponding group according to the group identification of the incremental information.
In one aspect, embodiments of the present application provide a server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method as described above.
In one aspect, the present application provides a computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the steps of the above-described method.
The embodiment of the application provides an information management method and a device, the method comprises the steps of firstly receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index; then, according to the access identification, determining a target information slice, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different; determining a target information fragment from all information fragments included in the target information fragment according to the information index; determining display content to be pushed from the target information fragment according to historical pushing data corresponding to the access identifier; and finally, pushing the display content to be pushed to the terminal. By grouping the information display content, grouping parameters and fragment parameters corresponding to different groups are different, namely, the generation time interval and the number of the information fragments in the different groups are different, all the grouped information fragments do not need to be generated at each time, only part of the grouped information fragments need to be generated, the space occupied by the information fragment fragments is reduced, resources are saved, meanwhile, the workload of sequencing the information display content at each time is reduced, the sequencing time is shortened, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of an information management system provided in an embodiment of the present application;
fig. 2 is a first flowchart of an information management method provided in an embodiment of the present application;
FIG. 3 is a logic block diagram of an information management method provided by an embodiment of the present application;
fig. 4 is a schematic view of a first page of a terminal in an information management method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a second page of a terminal in an information management method according to an embodiment of the present application;
fig. 6 is a second flowchart of an information management method provided in an embodiment of the present application;
FIG. 7 is a schematic structural diagram of an information management apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an information management method and device, a server and a computer readable storage medium. The information management apparatus may be integrated in a server, and the server may be a terminal or the like.
The information management method provided by the embodiment of the application relates to management of a post list in a game community. After receiving an information switching request of a terminal, determining a target information piece according to an access identifier carried by the information switching request, wherein the target information piece comprises at least two grouped information pieces, and the grouping parameters and the piece parameters corresponding to different groups are different.
In the embodiment of the present application, the game platform refers to a game communication platform that supports a game intermodal activity center running in a terminal, supports users to view, download, and comment games, supports various gift bag retrievals of games, can also recommend games to users in a personalized manner, and supports diversification of game communities, credits, and the like. A post community is arranged in the game platform, users can publish posts in the post community, and can browse posts published by other users and carry out interaction such as praise and comment.
In the embodiment of the application, the information refers to various posts issued by users in a post community of a game platform, wherein the posts comprise titles and texts, and the texts comprise texts, pictures or video contents.
In the embodiment of the present application, the display content refers to a post list displayed on a terminal in a preset sorting manner, each post in the post list only displays a part of content, such as only a subject, a user name of a user who issues the post, a time when the post is issued or approved or commented, and the like, or further displays a part of pictures, words, videos, and the like in the post, so that the user can intuitively know the rough content of the post, and further determine whether to click to enter the post to browse the whole content of the post.
In the embodiment of the present application, the top post operation refers to operations of the user for approving, commenting, posting, and deleting posts, and when the user performs these operations, the corresponding posts are arranged at the front of the post list in the next ranking.
In the embodiment of the present application, the circle refers to the field division of resources in each game unit in the game platform, and the posts related to a certain game are all located within the circle division range of the game, that is, within the same circle. The name of the circle may be named directly by the name of the game or may be other names associated with the game. In addition, other resources belonging to the same game, such as a download address of the game, a detailed description of the game, game related comments, etc., may also be in the same circle as the game related posts.
Referring to fig. 1, fig. 1 is a schematic view of an office view of an information management system according to an embodiment of the present application, where the system may include terminals and servers, and the terminals, the servers, and the terminals and the servers are connected and communicated through internet formed by various gateways, and the like, where the application office view includes a user terminal 11 and a server 12; wherein:
the user terminal 11 includes, but is not limited to, a tablet Computer, a notebook Computer, a Personal Computer (PC), a micro processing box, or other devices;
the server 12 includes a local server and/or a remote server, etc.
The user terminal 11 and the server 12 are located in a wireless network or a wired network for data interaction.
After the user terminal 11 finishes reading the current information display content, an information switching request is sent, the server 12 determines a target information piece according to an access identifier carried in the information switching request, the target information piece comprises at least two grouped information pieces, and the grouping parameters and the piece parameters corresponding to different groups are different, determines a target information piece in all the information pieces included in the target information piece according to an information index carried in the information switching request, then determines the display content to be pushed from the target information piece according to historical pushing data corresponding to the access identifier, and finally pushes the display content to be pushed to the user terminal 11.
It should be noted that the schematic diagram of the office view of the system shown in fig. 1 is only an example, the server and the office view described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not constitute a limitation to the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows, with the evolution of the system and the emergence of a new office view, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 2, fig. 2 is a first flowchart of an information management method according to an embodiment of the present application, applied to the server, where the information management method includes:
201: and receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index.
The method comprises the steps that a terminal user browses information display contents in a post community of a game platform, namely browses a post list, when interested posts are encountered, the terminal user clicks to enter specific contents of the browsed posts and can perform operations such as praise and comment, after the current post list on a terminal page is browsed, the user wants to acquire more latest post lists, an information switching request is sent, and the information switching request can be specifically expressed as a pull-down refreshing request.
The information switching request carries an access identifier and an information index, the access identifier is a registered account of a user for the user with the registered account, and the access identifier is a terminal identifier such as a device number, an IP address and the like for the user without the registered account. When a user enters a post community area, the user can execute multiple selections on a screening item provided by a platform according to the type of a post list which the user wants to obtain, wherein the selections can comprise selection of a circle, selection of a post type, selection of a sorting mode of each post and the like, and an information index is generated according to a selection combination corresponding to each selection. In the selection of the circles, all games on line in the game platform have corresponding circles, so that the selection range of the circles is wide. The selection of the post types comprises all, essence, strategy, player popular and the like, the classification enables a user to select to browse all posts in a certain circle, or select to browse a list of only part of the posts in the circle, all posts belonging to the same circle are divided into various types according to different labels, and the user selects to pull the post list in the corresponding type according to the requirement. The selection of the sorting modes of the posts comprises various sorting modes such as a reverse order of publishing time, a reverse order of comment time, a positive order of post popularity, a positive order of reading quantity and the like. And generating an information index according to the option combination of the three screening options. It should be noted that the options for generating the information index are not limited to these three options, and other contents may also be included, for example, after selecting the circle, the post content, and the sorting manner, some options such as only image and text, only video, and image and text plus video may be added, and further refinement may be performed, the more the selectable filter items are, the smaller the range of the information index is.
202: and determining a target information slice according to the access identifier, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different.
When the user selects the circle, the sorting mode and the post type in the post community, because other users can continuously perform operations of posting, deleting, approving and commenting the post, when the operation is sorted according to the preset sorting mode, the relative positions of the posts corresponding to the operation and other posts are constantly changed, if the corresponding post list needs to be generated online, the time for generating the final post list is longer because the number of posts needing to be sorted is larger, therefore, inside the server, an offline index is generated in advance according to the option content of each screening option which can be selected by the user on the front-end page, a plurality of offline postings lists are generated according to the offline index, and then caching the lists, and subsequently, directly pulling the corresponding post list according to the information index of the user at the terminal so as to shorten the time for pulling the list and ensure the user experience.
Since other users in the community continuously perform post-posting operations, the post sub-list also changes with time in the same sorting mode, so the server can firstly acquire the post-posting operations of all the users and store the corresponding data, and then adjust the arrangement sequence of the posts in the corresponding offline post list according to the data of the operations and the offline indexes. Meanwhile, in order to avoid the problem that the sequence of the current post list is changed due to the fact that the sequence of the current post list is changed by the top post operations of other users such as praise, comment, post issuing or post deleting when the user executes the pull-down refreshing operation, and the problem that the refreshed post list is repeated and the new and old post lists are disordered is caused, an information sheet is generated in the server at regular intervals and used for caching the plurality of offline post lists, each time a new information sheet is generated, the post list generated by the offline index at the moment is cached in the new information sheet, then the top post operations of all users in the community are continuously obtained from the moment, a new offline post list is continuously generated according to the offline index, and then when the next information sheet is generated, the updated offline post list is cached in the information sheet. The information slice is to divide the total amount of information to be stored into a plurality of information slices when storing information, and store the plurality of information slices in a plurality of storage servers in a scattered manner or in different partitions of the same storage server, wherein each information slice comprises a plurality of pieces of information, so as to share the data storage pressure. For example, 10000 pieces of information need to be stored, and the 10000 pieces of information may be divided into 100 pieces of information, where each 100 pieces of information are regarded as one piece of information, to obtain 100 pieces of information. In the embodiment of the application, only one information piece is generated at the same time, and a plurality of information pieces are simultaneously stored in the server.
For each piece of information, it must be ensured that it can be kept for a certain time after being generated, so that the user has enough time to browse and send information switching requests for many times in the piece of information, and therefore, after each piece of information is generated, the information is stored in the server for a period of time, and during this period, new pieces of information are continuously generated, so that a preset number of pieces of information always exist in the server. Meanwhile, when the time of existence of one information piece is long enough, the cached offline post list exceeds timeliness, the user does not need to pull the information piece, and a certain space is occupied, so that the information piece with the longest generation time is eliminated in time sequence according to the length of the generation time of the information pieces when the preset number is ensured. Specifically, after an information piece is generated, a user pulls the information piece and browses a post list in the information piece, and selects interested posts to read contents, based on reading habits of most users, other applications or other work needs to be done after the post list is browsed for a period of time, and the state of browsing the post list is not kept all the time, so that the user exits from browsing after the user reads the same information piece for a period of time, and then enters the community again to pull a new information piece in an idle time. At this time, the server may first obtain the browsing durations of all users in one information piece, and then determine the optimal browsing duration with the largest number of corresponding users from the browsing durations, and take the optimal browsing duration as a preset expiration time; or determining the optimal browsing duration with the longest duration from the browsing durations, and taking the optimal browsing duration as the preset expiration time. When a new information piece is generated, the server adds generation time to the new information piece, and calculates the existence time of the information piece from the generation time, when the existence time of the information piece does not exceed the preset expiration time, most users can continue browsing in the same information piece, the reading experience of the users is ensured, and when the existence time of the information piece exceeds the preset expiration time, because the information piece has already passed a period of time since the generation, the top post operation of other users in the period of time causes the ordering of the posts in the post list to be changed, and for the users, the cached offline post list exceeds timeliness, the information piece with the existence time exceeding the preset expiration time can be removed, and the occupation space is avoided.
In one embodiment, before the step of receiving the information switching request from the terminal, the method further includes: and receiving an information access request, and distributing information pieces for an access identifier corresponding to the information access request according to the request time of the information access request. When a user pulls a post list for the first time, an information access request is initiated firstly, a server distributes information pieces for access marks corresponding to the information access request according to the request time of the request, and the latest generated information pieces are distributed to the access marks during distribution. When the user finishes browsing the current post list and wants to acquire more latest post list information, an information switching request is initiated, then according to the access identifier of the user, an information piece which is distributed to the user is determined and is used as a target information piece of the information switching request, namely the target information piece is an information piece which is generated in the server and has the shortest time and is pulled by the user when the user pulls the post list for the first time. In a certain period of time, when a user executes multiple information switching requests, data is pulled in the same target information piece, and in the period, the top post operation of other users cannot be reflected in the target information piece, so that the problems of repeated posts and disorder of new and old post lists in the target information piece after the pull-down refreshing are avoided.
In one embodiment, the step of allocating an information piece for the access identifier corresponding to the information access request includes: and binding the index identification and the access identification corresponding to the information piece. When a latest information piece is generated each time, a unique index identifier is generated for the information piece in the server, after the information piece distributed by the access identifier is determined, the index identifier corresponding to the information piece and the access identifier are bound, so that the unique information piece can be always pulled before a new information access request is not initiated by the same user, and the information pieces corresponding to the data switching requests sent each time are the information pieces. After the user exits, the index identifier and the access identifier corresponding to the information piece are unbound, and when the user initiates a new information access request again, the object bound with the access identifier becomes the index identifier corresponding to the newly allocated information piece.
In one embodiment, after the step of allocating the information piece to the access identifier corresponding to the information access request, the method further includes: detecting the time validity of the information piece; and if the existence time of the information piece exceeds the preset expiration time, the information piece is distributed for the access identification again. After the information pieces are generated, a certain time is required to be kept, so that a user has enough time to browse and interact in the corresponding information pieces, but when new information pieces are continuously generated in the following process, the information cached in the old information pieces is invalid relative to the information cached in the new information pieces, and the old information pieces are continuously reserved and only occupy storage space, so that preset expiration time needs to be set for each information piece, and the information pieces are removed after expiration. Therefore, if the time that the user browses in one piece of information is too long, the information piece pulled by the user may have a risk that the time validity of the information piece is already exceeded by a preset expiration time, so that after the information piece is allocated to the access identifier corresponding to the information access request, the time validity of the information piece needs to be detected, if the time that the information piece exists does not exceed the preset expiration time, the access identifier can continue to browse and interact information in the information piece, if the time that the information piece exists exceeds the preset expiration time, the information piece is allocated to the access identifier again, and a current latest information piece can be allocated to the access identifier during allocation.
In one embodiment, before the step of receiving the information switching request from the terminal, the method further includes:
acquiring grouping parameters, dividing information into at least two groups according to the grouping parameters, wherein each group corresponds to different types of information indexes;
acquiring fragmentation parameters corresponding to each group, and fragmenting the display content of the information corresponding to each group according to the fragmentation parameters to obtain information fragments of each group;
and according to the local time, when the information piece needs to be generated, combining the latest information pieces of each group to obtain the information piece, and generating the index identification corresponding to the information piece.
The target information slice comprises at least two groups of information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different. And for each information slice, each information slice comprises one information slice in each group, namely each information slice comprises at least two information slices, each information slice corresponds to one group, and the display contents of all information in the group are cached in the information slice.
Grouping parameters comprise at least one of user attention total amount, user browsing amount, user post operation amount and user browsing duration, grouping information according to the grouping parameters, specifically, determining the activity of a circle to which each post belongs in a community by calculating the weight of each parameter, and classifying the circles according to the intervals in which the activity of each circle is located, wherein a plurality of circles with the activity in the same interval are of the same type, and all information contained in the circles belong to the same group. For different types of circles, the total amount of user attention, the user browsing amount, the user posting operation amount, the user browsing duration and the like are different, so that the grouping parameters corresponding to different groups are also different. In the present application, a packet with a higher activity level is defined as a high-level packet, and a packet with a lower activity level is defined as a low-level packet.
For different groups, the information contained in the groups belongs to different types of circles, so that each group corresponds to different types of information indexes, wherein the different types of the information indexes refer to different types of circles, all circles in the information indexes corresponding to the high-level groups are of the same type, namely, the type with higher activity, and all circles in the information indexes corresponding to the low-level groups are also of the same type, namely, the type with lower activity. After dividing the information into at least two groups, each group comprises a plurality of circles of the same type, the group with higher level comprises higher circle activity, correspondingly less circles are provided with more information, the group with lower level comprises lower circle activity, correspondingly more circles are provided with more information, and the group with lower level comprises less information.
The fragmentation parameters comprise the frequency of generating information fragments and the number of generating information fragments, and after the server divides the information into at least two groups according to the grouping parameters, the server determines different fragmentation parameters of each group according to different requirements for information updating in each group. For the packets of different levels, because the intervals of the circle activity degrees are different, the update speed of the circle information in the packet of higher level is higher, in order to ensure that the user can obtain the latest information as much as possible when entering, the fragment parameters corresponding to different packets are also different, the generation frequency of the information fragment corresponding to the packet of higher level is higher, that is, the time interval between the generation of two information fragments is shorter, and in order to ensure that the information fragments have enough existence time, the number of the information fragments which need to be stored in the packet of higher level is also larger. The updating speed of the circle information in the lower-level group is lower, so the generation frequency of the information fragments corresponding to the lower-level group is lower, and the number of the information fragments which need to be stored is less. For a middle-level packet whose level is between the high level and the low level, the generation frequency and the generation number of the corresponding information slice are also between the two. And according to the slicing parameters, slicing the display content of the corresponding information of each group to obtain the information slices of each group. The information fragment in each group only caches the display content of the information in the group, namely the offline postings list corresponding to the group.
In the embodiment of the application, the groups of different levels generate the information fragments according to different fragment parameters. For the packets with higher levels, the generation frequency of the information fragments is higher, so that the timeliness of the information is ensured, for the packets with lower levels, the requirement on the timeliness of the information is not high, the generation frequency of the information fragments is lower, and correspondingly, the number of the information fragments is also smaller, so that the occupation of the storage space of the server is reduced.
After the information fragments of each group are obtained, according to the local time of the server and the preset time required to generate the information fragments each time, when the information fragments are required to be generated, the latest information fragments of each group are combined to obtain the information fragments, namely the information fragments in the application are not an integer, but are formed by respectively selecting the latest information fragments from each group, after the information fragments are obtained, the index identification corresponding to the information fragments is generated, and as the information fragments are continuously generated along with the time, each information fragment is unique, the corresponding index identification is also unique, and the index identification refers to the ID of the information fragment.
In an embodiment, when the information piece needs to be generated, the step of combining the latest information pieces of each hierarchical information to obtain the information piece includes: monitoring whether a new information fragment is generated after the last information fragment is generated; if yes, the information piece needs to be generated. Because the fragmentation parameters in different groups are different, the time for generating the information fragments is also different, therefore, a monitoring mechanism can be set in the server to monitor whether a new information fragment is generated since the last information fragment is generated, if so, it indicates that a new information fragment needs to be generated at the moment, if not, the last information fragment is still the latest information fragment in the server, and the monitoring needs to be continued until the next new information fragment appears, and it is determined that a new information fragment needs to be generated. And when a new information fragment is generated, the server takes the information fragment as the previous information fragment and restarts to monitor whether the new information fragment is generated.
In one implementation, the step of obtaining the fragmentation parameter corresponding to each packet includes: acquiring the time length of the fragment corresponding to the packet with the highest packet level; and determining the fragmentation time lengths of other level groups according to the fragmentation time lengths. For different packets, the amount of information and the information updating speed included in the packets are different, the frequency of generating information fragments in the packets with higher levels is higher, and the corresponding fragment time length is shorter, wherein the fragment time length refers to the time interval between the time of generating the previous information fragment and the time of generating the next information fragment. The grouping with higher level needs to ensure that the time length of the fragmentation in the grouping with the highest grouping level is more reasonable firstly because more users participate and the requirement on the fragmentation is higher, so that the timeliness of pulling the post list by the user can be ensured, and larger memory space cannot be occupied. Then, after the fragmentation time length corresponding to the packet with the highest packet level is obtained, according to the size of the fragmentation time length, the fragmentation time lengths of the packets of other levels are determined, and the fragmentation requirements of the packets of other levels are correspondingly low, so that the fragmentation time length is relatively large.
In one embodiment, when an information piece needs to be generated, after the step of combining the latest information pieces of each hierarchical information to obtain an information piece and generating an index identifier corresponding to the information piece, the method further includes: and receiving the incremental information, and updating the display content of the incremental information to the latest information fragment of the corresponding group according to the group identification of the incremental information. When the user in the community carries out top post operation, posts which are issued, praised and commented constitute incremental information, posts which are not operated constitute historical information, the display content corresponding to the historical information is stored in the existing information fragment in the group, and the user still carries out the posting operation continuously in the time interval of waiting for generating the next information fragment, so that incremental information can be generated, at the moment, determining the circle to which the incremental information belongs according to the grouping identification of the incremental information, further determining the grouping to which the incremental information belongs, and according to the off-line index, sequencing and updating the display contents of the incremental information and the historical information, and when the latest information fragment is generated by the grouping, and updating the display content of the incremental information into the latest information fragment of the corresponding group, so that the user pulling the information fragment can see the latest information display content at the current moment.
If the whole information piece is generated each time, the display contents of all information in the community need to be stored in the information piece, correspondingly, when a post list is generated according to an offline index, all incremental information in the community also needs to be sorted in an incremental mode, when the full-scale sorting is needed, all information in the community needs to be sorted, regardless of the incremental sorting and the full-scale sorting, the sorted information quantity is huge, correspondingly, the sorting time is long, and when a user pulls the post list, the pulling overtime can be caused.
In the method, the circles are firstly grouped, information fragments are generated at different frequencies corresponding to each group, the information fragments of each group are combined to form the information fragments, only part of the grouped information fragments are generated at most of the time, and other groups do not generate new information fragments at the time, so that the information and the incremental information in the groups generated by the information fragments are correspondingly sorted and sorted in an incremental mode during the off-line index stage sorting, the workload of each sorting is reduced, the sorting time is shortened, the overtime rate of a user for pulling the list is reduced, and the user experience is improved.
203: and determining the target information fragment from all the information fragments included in the target information fragment according to the information index.
And after the target information piece is determined, determining the target information piece from all the information pieces included in the target information piece according to the information index. The information index is generated by combining options such as selection of a circle by a user, selection of a post type, selection of a sorting mode of each post and the like, wherein the options of the circle are included, and for a specific circle, a determined group is also available, and according to which group the circle belongs to, information fragments belonging to the corresponding group in the target information fragment are determined as the target information fragment.
204: and determining the display content to be pushed from the target information fragment according to the historical pushing data corresponding to the access identifier.
A plurality of offline postings lists are cached in the target information fragment, when a user initiates an information access request for the first time, selection of each screening item is already performed, a corresponding information index is generated, and when an information switching request is subsequently sent out, the information index is the same as the information index generated when the information access request is initiated, so that the displayed content is also in the same postings list. When the same user obtains the post list for the first time, due to the fact that the data volume of the post list is large, the number of posts which can be displayed at each time of the terminal is limited, partial display content can be pushed to be displayed each time, namely, partial lists in a complete post list are displayed, after the display, the displayed content can be stored as historical push data, when an information switching request is initiated each time, corresponding historical push data is determined according to the access identification of the user, then the display content to be pushed is determined from the target information fragment, and the display content to be pushed is not repeated with the historical push data.
205: and pushing the display content to be pushed to the terminal.
After the display content to be pushed is determined, the display content to be pushed is pushed to the terminal, and the display content to be pushed appears in the front row of the post list of the terminal page, so that the user can continue to browse more display content in the corresponding target information piece.
Through the five steps, firstly, receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index; then, according to the access identification, determining a target information slice, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different; determining a target information fragment from all information fragments included in the target information fragment according to the information index; determining display content to be pushed from the target information fragment according to historical pushing data corresponding to the access identifier; and finally, pushing the display content to be pushed to the terminal. By grouping the information display content, grouping parameters and fragment parameters corresponding to different groups are different, namely, the generation time interval and the number of the information fragments in the different groups are different, all the grouped information fragments do not need to be generated at each time, only part of the grouped information fragments need to be generated, the space occupied by the information fragment fragments is reduced, resources are saved, meanwhile, the workload of sequencing the information display content at each time is reduced, the sequencing time is shortened, and the user experience is improved.
Fig. 3 is a logic block diagram of an information management method according to an embodiment of the present application. In a post community in a game platform, a user performs a post operation 31, which may specifically include posting, approval, comment and the like, data corresponding to the post operation 31 is written into a database via a message queue 32 for storage, the database includes a DB database 331 and a Redis database 332, wherein the DB database 331 is a warehouse for organizing, storing and managing data according to a data structure, and is a collection of a large amount of data which is stored in a computer for a long time, organized, sharable and uniformly managed, and the Redis database 332 is a remote dictionary service, is an open source written using ANSI C language, supports a network, a log-type and Key-Value database which can be based on an internal memory and can also be persisted, and provides APIs of multiple languages. When writing to the database, at least one of the DB database 331 and the Redis database 332 is selected as necessary to complete the storage of the data.
The server reads the data corresponding to the top post operation 31 from the database, and generates an offline post list through the offline index 34. In the server, information is divided into at least two groups according to grouping parameters, specifically, the activity of a circle to which each post belongs is determined according to at least one of the total user attention amount, the user browsing amount, the user top post operation amount and the user browsing duration, then the circles are classified according to intervals in which the activity of each circle is located, a plurality of circles with the activity in the same interval are of the same type, and all information contained in the circles belong to the same group. For example, each circle may be divided into a hot circle, a normal circle, and a long-tailed circle according to the liveness, and the corresponding groups are a hot circle subgroup, a normal circle subgroup, and a long-tailed circle subgroup. In the game platform of the application, 1500 circles are classified and grouped, so that the number of circles in a hit circle is about 100, the number of circles in a normal circle is about 600, and the number of circles in a long tail circle is about 800.
Then, according to the offline index 34, the information in each group is processed, when a user selects a circle, a sorting mode and a post type in the post community, because other users will continuously perform operations such as posting, deleting, approving and commenting, etc., the state of posts in the community is dynamically updated in real time, if a corresponding post list needs to be generated online, because the post volume is large, the generation time is long, and therefore, inside the server, the offline index 34 is generated in advance according to the option content of each screening option that can be selected by the user on the front-end page, specifically, the selection of the circle, the selection of the post type, the selection of the sorting mode of each post, etc. For example, if the option combination of an offline index is circle 1+ strategy + distribution time in reverse order, all posts belonging to circle 1 are determined in the server, then the post content is determined to be partial posts of game strategy, and then the posts are sorted according to the distribution time of the posts to generate an offline post list, wherein the most recently distributed posts are located in the top row of the list, and the posts with the longest distribution time are located in the last row of the list. Since the information has been previously grouped, the task of generating the list is performed by the grouping corresponding to circle 1.
When the offline post list is generated in each group, corresponding to each group, n cores in the server concurrently complete the task of generating the offline post list, Loader-1 to Loader-n in fig. 3 respectively represent the 1 st core to the nth core, a concurrency lock is set between the cores, and the concurrent processing mode enables the efficiency of generating the offline post list to be high and shortens the sequencing time.
In the present application, each group reads data corresponding to the posting operation 31 from the database, determines incremental information, and executes an offline post list generation task at a frequency preset by the group. When the top posting operation 31 performed by the user is to like, comment and delete a post, the incremental information refers to the post that is liked, commented and deleted in the currently existing post, and when the top posting operation 31 performed by the user is to newly publish a post, the incremental information refers to the post that is newly added on the basis of the currently existing post. After the incremental information is determined, which group performs the data reading task is determined according to the group identification of the incremental information, namely the circle to which the incremental information belongs, then the corresponding group performs the data reading at the preset reading frequency of the group, and then the incremental information and the current existing information are correspondingly sequenced according to the offline index 34 to generate a latest offline post list.
Because each group has different requirements on information updating, the hot circle sub-group has higher information updating speed and correspondingly has faster change of the positions of the posts in the offline post list. In order to ensure that the user can acquire the latest information as much as possible when entering, the frequency of reading the data corresponding to the top post operation 31 from the database by the hot circle sub-group and generating the offline post list in sequence is higher, and the updating speed of the circle information in the long-tailed circle sub-group is lower, so that the frequency of reading the data corresponding to the top post operation 31 from the database and generating the offline post list in sequence is lower, and the updating speed of the circle information in the common circle sub-group is between the two, so the frequency of reading the data corresponding to the top post operation 31 from the database and generating the offline post list in sequence is between the two. In the application, the hot circle sub-group reads data from the database once every 10 seconds and carries out corresponding sequencing, the common circle sub-group reads data from the database once every 30 seconds and carries out corresponding sequencing, and the long-tailed circle sub-group reads data from the database once every 5 minutes and carries out corresponding sequencing.
After the offline post list is generated, cache 35 is needed, and the generated offline post list is stored in the information fragment, so that each group is fragmented based on its own fragment parameters. The fragment parameters comprise the frequency of generating the information fragments and the number of generating the information fragments, and in the same group, the frequency of generating the information fragments is the same as the frequency of sequencing the historical information and the incremental information according to the offline index, namely, a new information fragment is generated and cached every time the postings list is updated. And according to the slicing parameters, slicing the display content of the corresponding information of each group to obtain the information slices of each group. The information fragment in each group only caches the display content of the information in the group, namely the offline postings list corresponding to the group.
In the present application, a mechanism of sending slices at regular time is adopted, that is, for the same packet, the time interval for generating information slices each time is the same. For the hot circle sub-group, a new information fragment is generated every 10 seconds, and 90 information fragments are stored in a coexistence manner, so that the existing time of each information fragment can be kept for 15 minutes after the generation, wherein 15 minutes is the longest time that most users may stay in the same information fragment, and when the 91 st information fragment is generated, the 1 st information fragment with the longest time is eliminated according to the sequence of the generation time. For the common circle packet, a new information fragment is generated every 30 seconds, 30 information fragments are stored in the common circle packet, and for the long tail circle packet, a new information fragment is generated every 5 minutes, and 3 information fragments are stored in the common circle packet. In this way, for the hot circle sub-packet, the storage space of 90 information fragments is about 3G, for the normal circle sub-packet, the storage space of 30 information fragments is about 6G, and for the long tail circle sub-packet, the storage space of 3 information fragments is about 0.8G.
It should be noted that the present application is not limited to this, and the information fragment may not be generated at a fixed frequency for each packet. In general, users will have more posts and browse volume in some time periods of the day, and will define it as a golden time period, and the posts and browse volume in other time periods will be correspondingly less, and will define it as a non-golden time period, in order to further reduce the occupation of storage space, in the golden time period, all the packets are time sliced in a first mode, in the non-golden time period, all the packets are time sliced in a second mode, the frequency of generating information slices by the same packet is higher in the first mode than in the second mode, for example, in the first mode, a hot circle sub-packet generates a new information slice every 10 seconds, a normal circle sub-packet generates a new information slice every 30 seconds, a long tail circle sub-packet generates a new information slice every 5 minutes, and in the second mode, a hot circle sub-packet generates a new information slice every 20 seconds, the common circle sub-group generates a new information fragment every 60 seconds, and the long tail circle sub-group generates a new information fragment every 10 minutes. Compared with the non-time-division mode, the time-division mode can further reduce the resource occupation and shorten the sequencing bottleneck.
When a new information fragment is generated each time, the latest information fragments of each group at the moment are combined to form an information fragment, and a corresponding index identifier is generated for the information fragment. Then, when a user enters a post community for the first time, an information access request is sent, the server allocates an information piece for an access identifier corresponding to the information access request according to the request time of the information access request, and binds an index identifier and the access identifier corresponding to the information piece, wherein the information piece is the current latest information piece. When a user initiates an information access request on a game platform, a page as shown in fig. 4 is displayed, wherein a "xx game circle" represents the name of the game platform, and areas in the page respectively display information such as a "recommended circle", a "recently browsed" and a "today hotline", wherein a plurality of circle names are displayed in a list below the recommended circle, the name of each circle can be consistent with the corresponding game name, a plurality of recently browsed circles are displayed in recent browsing, and a certain postings list with high hotness is displayed in the today hotline. When the user wants to browse the posts in a certain circle, the user can select from the recommendation circle or the latest browsing, and can click more after the recommendation circle to obtain a more circles list and select a circle from the more circles list.
Taking the circle 18 selected by the user as an example, at this time, the page displayed by the terminal is as shown in fig. 5, and related resources such as details, evaluations, circles and the like belonging to the game corresponding to the circle 18 are displayed on the page, and when the user wants to browse the posts, the user selects the "circle", and then the post list is displayed on the sub-page corresponding to the "circle". When the user selects the circle 18, the screening items on the page default to "all", "recently published", and "teletext + video", and a post list is generated according to each selected screening item, only part of the content of each post, such as a user name, publication time, title, important picture or video, praise and comment quantity, is displayed in the post list, and the user can read the content in the post list in reverse order according to the publication time of the post. When a circle is selected each time, a post list is pulled according to the default item, a user can select the screening items on the page again, and after each selection, an information index corresponding to each option combination is generated.
When a user pulls a post list for the first time, an information access request is initiated firstly, a server distributes information pieces for access marks corresponding to the information access request according to the request time of the request, and the latest generated information pieces are distributed to the access marks during distribution. When the user finishes browsing the current post list and wants to acquire more latest post list information, an information switching request is initiated, generally, a pull-down refreshing operation is performed, then, according to the access identifier of the user, the information piece which is allocated to the user is determined and is used as the target information piece of the information switching request. In a certain period of time, when a user executes multiple information switching requests, data is pulled in the same target information piece, and in the period, the top post operation of other users cannot be reflected in the target information piece, so that the problems of repeated posts and disorder of new and old post lists in the target information piece after the pull-down refreshing are avoided.
And after the target information piece is determined, determining the target information piece from all the information pieces contained in the target information piece according to the information index. The information index is generated by combining options such as selection of a circle by a user, selection of a post type, selection of a sorting mode of each post and the like, wherein the options of the circle are included, and for a specific circle, a determined group is also available, and according to which group the circle belongs to, information fragments belonging to the corresponding group in the target information fragment are determined as the target information fragment.
The target information fragment is cached with a plurality of offline postings lists generated according to the offline indexes, when a user initiates an information access request for the first time, selection of each screening item is already carried out, a corresponding information index is generated, and when an information switching request is subsequently sent out, the information index is the same as the information index generated when the information access request is initiated, so that the displayed content is the content in the same postings list. When the same user obtains the post list for the first time, due to the fact that the data volume of the post list is large, the number of posts which can be displayed by the terminal each time is limited, partial data can be pushed to be displayed each time, namely, partial lists in a complete post list are displayed, after the partial lists are displayed, the displayed content can be stored as historical pushing data, when an information switching request is initiated each time, corresponding historical pushing data is determined according to the access identification of the user, then the displayed content to be pushed is determined from the target information fragment, and the displayed content to be pushed is not repeated with the historical pushing data.
After the display content to be pushed is determined, the display content to be pushed is pushed to the terminal, and the display content to be pushed appears in the front row of the post list of the terminal page, so that the user can continue to browse more display content in the corresponding target information piece.
And if the user initiates an information access request again, the newly generated information fragment is distributed to the user again according to the request time of the information access request.
The information management method performs information grouping in the interval where the circle activity degree is located, and the information sorting frequency is different corresponding to different groups. Taking the number of posts of 400 ten thousand as an example, when all the information is not grouped, a large information piece is directly generated each time, correspondingly, all the circles of posts are sorted at the same frequency each time an offline post list is generated, at this time, the number of posts sorted in full is 400 ten thousand each time, and the number of posts sorted in increment is generally different from 100 to 10000. The method for grouping the information is adopted, the method corresponds to different groups, and the sorting frequency is different, so that at most of time, only posts in one group are sorted, and the post lists in other groups do not need to be updated, namely, when an information piece is generated each time, only the group corresponding to one information piece is sorted in a plurality of information pieces forming the information piece, and other groups do not generate new information pieces and do not naturally need to be sorted, so that the total sorting quantity of the posts is reduced to 100-200 ten thousand, and the increment sorting quantity is reduced to 100-500. Due to the fact that the number of posts participating in slicing at each time can be effectively controlled by adopting the slicing mode, the number cannot be linearly or exponentially increased along with the continuous increase of the posts, the sorting bottleneck can be solved, the whole sorting time of the single-dimensional slicing is reduced from 15 seconds on average to 1.5 seconds, the sorting time is reduced by 90%, the incremental sorting time of the single-dimensional slicing is reduced from 3 seconds on average to 100 milliseconds, finally the list pull-out timeout rate is reduced from 10% to 0, and user experience is greatly improved.
In addition, under the mechanism of no grouping, the information piece generated each time needs to store the ordered list of all posts, so that the occupied space is large, under the mechanism of the grouping piece of the application, the frequency of generating the information piece in the common circle grouping and the long tail circle grouping is low, and the storage quantity is small, so that the occupied space can be reduced, compared with the scheme of no grouping, the resource storage is reduced by 79%, the storage space is greatly reduced, the problem of long tail resource waste is solved, and the research and development cost is saved.
Fig. 6 is a second flowchart of an information management method according to an embodiment of the present application, please refer to fig. 6, where the information management method includes the following steps:
601: the server obtains the grouping parameters from the first user terminal.
The grouping parameters comprise at least one of user attention total amount, user browsing amount, user posting operation amount and user browsing duration, and the server analyzes various behaviors of a first user terminal user on the game platform and acquires the grouping parameters, wherein the first user terminal refers to all user terminals capable of posting and browsing in a posting community of the game platform.
602: the server divides the information into at least two packets.
The server groups all information according to the grouping parameters, specifically, the activity degree of a circle to which each post belongs in the community is determined by calculating the weight of each parameter, then the circles are classified according to the intervals in which the activity degrees of the circles are located, a plurality of circles with activity degrees in the same interval are of the same type, and all information contained in the circles belong to the same group.
603: and the server fragments the display content of the corresponding information of each group according to the fragmentation parameters to obtain the information fragments of each group.
After grouping the information, the server sets different fragment parameters for each group according to the difference of the information updating requirements of each group, wherein the fragment parameters comprise the frequency of generating the information fragments and the number of the generated information fragments, the updating speed of the circle information in the group with higher level is higher, in order to ensure that a user can acquire the latest information as much as possible when entering, the generating frequency of the information fragments corresponding to the group with higher level is higher, and in order to ensure that the information fragments have enough existence time, the number of the information fragments which need to be stored in the group with higher level is also larger. The updating speed of the circle information in the lower-level group is lower, so the generation frequency of the information fragments corresponding to the lower-level group is lower, and the number of the information fragments which need to be stored is less. For a middle-level packet whose level is between the high level and the low level, the generation frequency and the generation number of the corresponding information slice are also between the two. And according to the slicing parameters, slicing the display content of the corresponding information of each group to obtain the information slices of each group. The information fragment in each group only caches the display content of the information in the group, namely the offline postings list corresponding to the group.
604: the server generates pieces of information and corresponding information indexes.
After the server obtains the information fragments of each group, when the information fragments need to be generated, the latest information fragments of each group are combined to obtain the information fragments, namely the information fragments in the application are not a whole, but are formed by respectively selecting the latest information fragments from each group, and after the information fragments are obtained, the index identification corresponding to the information fragments is generated.
605: the server receives incremental information from the first user terminal.
When the first user terminal user carries out the top post operation, all posts which are issued, approved and commented form incremental information, posts which are not operated form historical information, the display content corresponding to the historical information is stored in the existing information fragment in the grouping, and the user still carries out the top post operation continuously in the time interval of waiting for generating the next information fragment, so that the incremental information can be generated.
606: and the server updates the display content of the incremental information to the latest information fragment of the corresponding group.
The server determines a circle to which the incremental information belongs according to the grouping identification of the incremental information, further determines a group to which the incremental information belongs, sequences and updates the display contents of the incremental information and the historical information according to the offline index, and updates the display contents of the incremental information to the latest information fragment of the corresponding group when the latest information fragment is generated by the group, so that a user pulling the information fragment can see the latest information display contents at the current moment.
607: the second user terminal sends an information access request to the server.
When a user wants to pull the post list for the first time on the game platform, an information access request is initiated from a second user terminal, the information access request carries an access identifier and an information index, the access identifier is a registered account of the user for the registered account, and the access identifier is a terminal identifier such as a device number, an IP address and the like for the unregistered user. When a user enters a post community area, the user can execute multiple selections on a screening item provided by a platform according to the type of a post list which the user wants to obtain, wherein the selections can comprise selection of a circle, selection of a post type, selection of a sorting mode of each post and the like, and an information index is generated according to a selection combination corresponding to each selection.
608: the server allocates the pieces of information.
And the server allocates information pieces for the access identifications corresponding to the information access requests according to the request time of the information access requests, and the latest generated information pieces are allocated to the access identifications during allocation.
609: the server distributes the information fragments.
And after determining the target information piece, the server determines the target information piece from all the information pieces contained in the target information piece according to the information index carried by the information access request. The information index is generated by combining options such as selection of a circle by a user, selection of a post type, selection of a sorting mode of each post and the like, wherein the options of the circle are included, and for a specific circle, a determined group is also available, and according to which group the circle belongs to, information fragments belonging to the corresponding group in the target information fragment are determined as the target information fragment.
610: and the server pushes the display content to the second user terminal.
When the second user terminal acquires the post list for the first time, the server pushes part of the display content to display each time because the data volume of the post list is large and the number of posts which can be displayed by the terminal each time is limited.
611: and the second user terminal sends an information switching request to the server.
After the second user terminal finishes browsing the current post list on the terminal page, and wants to acquire more latest post lists, an information switching request can be sent to the server, and the information switching request can be specifically expressed as a pull-down refreshing request. The information switching request also carries the access identifier and the information index, when the second user terminal initiates the information access request, the selection of each screening item is already carried out, the corresponding information index is generated, and when the information switching request is subsequently sent out, the information index is the same as the information index generated when the information access request is initiated.
612: the server determines a target information piece.
The second user terminal also carries the access identifier when initiating the information switching request, and the server determines the information piece which is allocated to the user when initiating the information access request according to the access identifier of the user, and takes the information piece as the target information piece of the information switching request.
613: the server determines the target information fragment.
And the server determines the target information fragment from all the information fragments contained in the target information fragment according to the information index carried by the information switching request. The information index is generated by combining options such as selection of a circle by a user, selection of a post type, selection of a sorting mode of each post and the like, wherein the options of the circle are included, and for a specific circle, a determined group is also available, and according to which group the circle belongs to, information fragments belonging to the corresponding group in the target information fragment are determined as the target information fragment.
614: the server determines the display content to be pushed.
When the same user obtains a post list for the first time, due to the fact that the data volume of the post list is large, and the number of posts which can be displayed by a terminal each time is limited, the server can push part of displayed content to be displayed each time, namely, part of the displayed content in a complete post list is displayed, after the displayed content is displayed, the displayed content can be stored as history push data, when an information switching request is initiated each time, the server determines corresponding history push data according to an access identifier of the user, then determines the displayed content to be pushed from a target information fragment, and the displayed content to be pushed and the history push data are not repeated.
615: and the server pushes the content to be displayed to the second user terminal.
After the display content to be pushed is determined, the display content to be pushed is pushed to the terminal, and the display content to be pushed appears in the front row of the post list of the terminal page, so that the user can continue to browse more display content in the corresponding target information piece.
The application takes the second user terminal to push the display content as an example, which explains that the application can reduce the space occupied by the information piece fragments, save resources, reduce the workload of sequencing the information display content at each time, shorten the sequencing time and improve the user experience.
On the basis of the method in the foregoing embodiment, the present embodiment will be further described from the perspective of an information management apparatus, please refer to fig. 7, where fig. 7 specifically describes the information management apparatus provided in the embodiment of the present application, which may include:
a receiving module 171, configured to receive an information switching request from a terminal, where the information switching request carries an access identifier and an information index;
an information slice determining module 172, configured to determine a target information slice according to the access identifier, where the target information slice includes at least two grouped information slices, and corresponding grouping parameters and slicing parameters of different groups are different;
an information fragment determining module 173, configured to determine a target information fragment in the information fragments according to the information index;
the display content determining module 174 is configured to determine, according to the historical push data corresponding to the access identifier, display content to be pushed from the target information fragment;
the pushing module 175 is configured to push the to-be-pushed display content to the terminal.
In an embodiment, the information management apparatus further includes an allocation module, configured to receive the information access request, and allocate an information piece to an access identifier corresponding to the information access request according to a request time of the information access request.
In one embodiment, the assignment module is to: and binding the index identification and the access identification corresponding to the information piece.
In an embodiment, the information management apparatus further includes a detection module, configured to detect time validity of an information piece, and if the information piece is overtime, re-assign the information piece to the access identifier.
In one embodiment, the information management apparatus further includes:
the first acquisition module is used for acquiring grouping parameters and dividing the information into at least two groups according to the grouping parameters, wherein each group corresponds to different types of information indexes;
the second acquisition module is used for acquiring the fragment parameters corresponding to each group and fragmenting the display content of the information corresponding to each group according to the fragment parameters to obtain the information fragments of each group;
and the generating module is used for combining the latest information fragments of each group to obtain the information fragments and generating the index identifications corresponding to the information fragments when the information fragments need to be generated according to the local time.
In one embodiment, the grouping parameter includes at least one of a total amount of user interest, an amount of user browsing, an amount of user posting operations, and a user browsing duration.
In an embodiment, the generating module is configured to monitor whether a latest information fragment occurs, and if so, the information fragment needs to be generated.
In one embodiment, the second obtaining module includes:
the first obtaining submodule is used for obtaining the fragment time length corresponding to the packet with the highest packet level;
and the determining submodule is used for determining the fragment time length of the other level of grouping according to the fragment time length.
In one embodiment, the information management apparatus further includes:
and the updating module is used for receiving the incremental information and updating the display content of the incremental information to the latest information fragment of the corresponding group according to the group identification of the incremental information.
Different from the prior art, the information management device provided by the application receives an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index; then, according to the access identification, determining a target information slice, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different; determining a target information fragment from all information fragments included in the target information fragment according to the information index; determining display content to be pushed from the target information fragment according to historical pushing data corresponding to the access identifier; and finally, pushing the display content to be pushed to the terminal. By grouping the information display content, grouping parameters and fragment parameters corresponding to different groups are different, namely, the generation time interval and the number of the information fragments in the different groups are different, all the grouped information fragments do not need to be generated at each time, only part of the grouped information fragments need to be generated, the space occupied by the information fragment fragments is reduced, resources are saved, meanwhile, the workload of sequencing the information display content at each time is reduced, the sequencing time is shortened, and the user experience is improved.
Accordingly, an embodiment of the present application further provides a server, as shown in fig. 8, which shows a schematic structural diagram of the server according to the embodiment of the present application, and specifically:
the server may include components such as a processor 801 of one or more processing cores, memory 802 of one or more computer-readable storage media, a power supply 803, and an input sub-module 804. Those skilled in the art will appreciate that the server architecture shown in FIG. 8 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 801 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 802 and calling data stored in the memory 802, thereby performing overall monitoring of the server. Alternatively, processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 801.
The memory 802 may be used to store software programs and modules, and the processor 801 executes various functional applications and data processing by operating the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 802 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 access to the memory 802.
The server further includes a power supply 803 for supplying power to the various components, and preferably, the power supply 803 may be logically connected to the processor 801 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system. The power supply 803 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any like components.
The server may also include an input sub-module 804, the input sub-module 804 operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display sub-module and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 801 in the server loads the executable file corresponding to the process of one or more application programs into the memory 802 according to the following instructions, and the processor 801 runs the application programs stored in the memory 802, thereby implementing various functions as follows:
receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index;
determining a target information slice according to the access identifier, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different;
determining a target information fragment from all information fragments included in the target information fragment according to the information index;
determining display content to be pushed from the target information fragment according to historical pushing data corresponding to the access identifier;
and pushing the display content to be pushed to the terminal.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to implement the following functions:
receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index;
determining a target information slice according to the access identifier, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different;
determining a target information fragment from all information fragments included in the target information fragment according to the information index;
determining display content to be pushed from the target information fragment according to historical pushing data corresponding to the access identifier;
and pushing the display content to be pushed to the terminal.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by any method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The information management method and apparatus provided by the embodiment of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An information management method, comprising:
receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index;
determining a target information slice according to the access identifier, wherein the target information slice comprises at least two grouped information slices, and the grouping parameters and the slicing parameters corresponding to different groups are different;
according to the information index, determining a target information fragment from all information fragments included in the target information fragment;
determining display content to be pushed from the target information fragment according to historical pushing data corresponding to the access identifier;
and pushing the display content to be pushed to the terminal.
2. The information management method of claim 1, wherein before the step of receiving the information switching request from the terminal, further comprising:
receiving an information access request, and distributing information pieces for an access identifier corresponding to the information access request according to the request time of the information access request.
3. The information management method according to claim 2, wherein the step of allocating a piece of information to the access identification corresponding to the information access request comprises:
and binding the index identification and the access identification corresponding to the information piece.
4. The information management method according to claim 2, further comprising, after the step of allocating a piece of information to the access identifier corresponding to the information access request:
detecting the time validity of the information piece;
and if the existence time of the information piece exceeds the preset expiration time, the information piece is distributed for the access identifier again.
5. The information management method of claim 1, wherein before the step of receiving the information switching request from the terminal, further comprising:
acquiring grouping parameters, and dividing information into at least two groups according to the grouping parameters, wherein each group corresponds to different types of information indexes;
acquiring fragmentation parameters corresponding to each group, and fragmenting the display content of the information corresponding to each group according to the fragmentation parameters to obtain information fragments of each group;
according to the local time, when the information piece needs to be generated, combining the latest information pieces of each group to obtain the information piece, and generating the index identification corresponding to the information piece.
6. The information management method according to claim 5, wherein the grouping parameter includes at least one of a user attention amount, a user browsing amount, a user posting operation amount, and a user browsing time period.
7. The information management method according to claim 5, wherein the step of combining the latest information pieces of each hierarchical information to obtain an information piece when the information piece needs to be generated according to the local time comprises:
monitoring whether a new information fragment is generated after the last information fragment is generated;
if yes, the information piece needs to be generated.
8. The information management method according to claim 5, wherein the step of obtaining the fragmentation parameter corresponding to each packet comprises:
acquiring the time length of the fragment corresponding to the packet with the highest packet level;
and determining the fragmentation time lengths of other level groups according to the fragmentation time lengths.
9. The information management method according to claim 5, wherein after the step of combining the latest information pieces of each hierarchical information to obtain an information piece and generating an index identifier corresponding to the information piece when the information piece needs to be generated according to the local time, the method further comprises:
receiving incremental information, and updating the display content of the incremental information to the latest information fragment of the corresponding group according to the group identification of the incremental information.
10. An information management apparatus characterized by comprising:
the receiving module is used for receiving an information switching request from a terminal, wherein the information switching request carries an access identifier and an information index;
the information piece determining module is used for determining a target information piece according to the access identifier, wherein the target information piece comprises at least two grouped information pieces, and the grouping parameters and the piece parameters corresponding to different groups are different;
the information fragment determining module is used for determining a target information fragment from all information fragments included in the target information fragment according to the information index;
the display content determining module is used for determining display content to be pushed from the target information fragment according to historical push data corresponding to the access identifier;
and the pushing module is used for pushing the display content to be pushed to the terminal.
CN202011079608.XA 2020-10-10 2020-10-10 Information management method and device Active CN112231589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011079608.XA CN112231589B (en) 2020-10-10 2020-10-10 Information management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011079608.XA CN112231589B (en) 2020-10-10 2020-10-10 Information management method and device

Publications (2)

Publication Number Publication Date
CN112231589A true CN112231589A (en) 2021-01-15
CN112231589B CN112231589B (en) 2023-09-29

Family

ID=74111949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011079608.XA Active CN112231589B (en) 2020-10-10 2020-10-10 Information management method and device

Country Status (1)

Country Link
CN (1) CN112231589B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094581A (en) * 2021-03-30 2021-07-09 联想(北京)有限公司 Data processing method and device
CN114020711A (en) * 2021-11-10 2022-02-08 重庆紫光华山智安科技有限公司 Storage space processing method and device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771482A (en) * 2008-11-13 2010-07-07 华为终端有限公司 Method, system and device for acquiring business and content access information
US20200192880A1 (en) * 2018-12-14 2020-06-18 Samsung Electronics Co., Ltd. Optimal dynamic shard creation in storage for graph workloads

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771482A (en) * 2008-11-13 2010-07-07 华为终端有限公司 Method, system and device for acquiring business and content access information
US20200192880A1 (en) * 2018-12-14 2020-06-18 Samsung Electronics Co., Ltd. Optimal dynamic shard creation in storage for graph workloads
CN111324777A (en) * 2018-12-14 2020-06-23 三星电子株式会社 Apparatus and system for shard creation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094581A (en) * 2021-03-30 2021-07-09 联想(北京)有限公司 Data processing method and device
CN114020711A (en) * 2021-11-10 2022-02-08 重庆紫光华山智安科技有限公司 Storage space processing method and device, electronic equipment and readable storage medium
CN114020711B (en) * 2021-11-10 2022-11-01 重庆紫光华山智安科技有限公司 Storage space processing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN112231589B (en) 2023-09-29

Similar Documents

Publication Publication Date Title
US10318502B2 (en) Intelligent identification of multimedia content for grouping
US11481657B2 (en) Content recommendation method, apparatus and system
US10902068B2 (en) Systems and methods for automating the retrieval of partitionable search results from a search engine
US7571167B1 (en) Peer-to-peer network content object information caching
CN101692238B (en) Auto-selection of media files
CN102576366B (en) Pre-fetching content items based on social distance
US9319359B1 (en) Promoting content in a real-time messaging platform
US20150039593A1 (en) Pre-delivery of content to a user device
US9367211B1 (en) Interface tab generation
US20160277485A1 (en) Socially driven feed of aggregated content in substantially real time
WO2009135187A1 (en) Method and apparatus for providing dynamic playlists and tag-tuning of multimedia objects
CN112231589B (en) Information management method and device
CN103685528A (en) Information displaying method and device
CN102016843A (en) Method and apparatus for dual mode content searching, selection, delivery, and playout
WO2020258773A1 (en) Method, apparatus, and device for determining pushing user group, and storage medium
US20160275193A1 (en) Socially driven feed of aggregated content in substantially real time
EP2551781A1 (en) Data analysis system
CN112950294A (en) Information sharing method and device, electronic equipment and storage medium
JP3964728B2 (en) Information retrieval method and apparatus, execution program for the method, and recording medium recording the execution program for the method
CN115119021A (en) Data processing method and device, electronic equipment and storage medium
CN111488370B (en) List paging quick response system and method
US20170337253A1 (en) In-memory db connection support type scheduling method and system for real-time big data analysis in distributed computing environment
CN110248395B (en) Wireless network access method, device, storage medium and computer equipment
CN111309960A (en) Singing bill recommendation method and device
JP2000035934A (en) Automatic downloading device

Legal Events

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