CN114238426A - Content pushing method, device, processor and machine-readable storage medium - Google Patents
Content pushing method, device, processor and machine-readable storage medium Download PDFInfo
- Publication number
- CN114238426A CN114238426A CN202111580424.6A CN202111580424A CN114238426A CN 114238426 A CN114238426 A CN 114238426A CN 202111580424 A CN202111580424 A CN 202111580424A CN 114238426 A CN114238426 A CN 114238426A
- Authority
- CN
- China
- Prior art keywords
- content
- attributes
- target
- orientation
- advertisement
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2237—Vectors, bitmaps or matrices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the application provides a content pushing method and device, a processor and a machine-readable storage medium, and relates to the technical field of information pushing. The method comprises the following steps: acquiring all content IDs of which the number of the second directional attributes is not more than that of the first directional attributes from a content ID table, wherein the content ID table comprises different content IDs and corresponding second directional attributes; determining the content ID matched with the first orientation attribute by the second orientation attribute as the target content ID to be pushed; and acquiring the target content information to be pushed according to the target content ID to be pushed, and pushing the target content information to the target object. Through the technical scheme, the content information matched with the directional attribute of the target object can be quickly and accurately retrieved and inquired according to the directional attribute of the target object, the corresponding content information is pushed to the target object, a large-capacity content retrieval request can be supported, and the method and the device have the advantages of high retrieval efficiency and high pushing accuracy.
Description
Technical Field
The present application relates to the field of information push technologies, and in particular, to a content push method, a content push apparatus, a processor, and a machine-readable storage medium.
Background
The content pushing is to return content meeting conditions according to the traffic characteristics and the user characteristics of each content request so as to increase the click rate and the conversion rate of content delivery. The current content push method is mainly realized based on an inverted index algorithm of ES/TS, content can be conveniently retrieved through ES (elastic search), but with the increase of services, the retrieval efficiency of ES becomes a bottleneck, and only the increase of the number of copies of ES can be increased to cope with the increase of the request amount, so that the cost is difficult to control. In addition, the existing content push method also has the problems of low efficiency and low push accuracy.
Disclosure of Invention
An object of an embodiment of the present application is to provide a content pushing method, a content pushing apparatus, a processor, and a machine-readable storage medium.
In order to achieve the above object, a first aspect of the present application provides a content pushing method, including:
acquiring a first orientation attribute of a target object, and determining the number of the first orientation attribute;
acquiring all content IDs of which the number of second orientation attributes is not more than that of the first orientation attributes from a content ID table, wherein the content ID table comprises different content IDs and corresponding second orientation attributes;
determining a content ID matched with the first orientation attribute by the second orientation attribute as a target content ID to be pushed;
and acquiring target content information to be pushed according to the target content ID to be pushed, and pushing the target content information to the target object.
Optionally, the method further comprises:
and sequencing all the content IDs acquired from the content ID table and the corresponding second directional attributes thereof according to the sequence of the number of the second directional attributes from low to high, and constructing a target content ID query index table, wherein the target content ID query index table is composed of a set of content IDs with the same number of second directional attributes.
Optionally, determining that the content ID of the second targeting attribute matched with the first targeting attribute is a target content ID to be pushed includes:
matching the second directional attributes of the content IDs in each set with the first directional attributes respectively to determine the target content IDs in each set;
and taking the target content IDs in all the sets as target content IDs to be pushed.
Optionally, if a set exists in the target content ID lookup index table, where the number of the second directional attributes is the same as the number of the first directional attributes, a content ID in which the second directional attributes in the set are consistent with the first directional attributes is taken as the target content ID in the set.
Optionally, the number of the first orientation attributes is N;
if the target content ID query index table does not have sets with the number of the second orientation attributes identical to the number N of the first orientation attributes, regarding each set, using the content ID with the second orientation attributes consistent with any M first orientation attributes in the N first orientation attributes as the target content ID of the current set, wherein M is the number of the second orientation attributes of the content ID of the current set.
Optionally, the method further comprises:
sequentially encoding all content IDs;
for each content ID, taking the coded content ID as a key and the content ID as a value to obtain bitmap data of the content ID;
storing bitmap data of all content IDs into a database based on Roaring bitmap according to a coding sequence, and constructing a content ID index table, wherein the content IDs in the content ID index table correspond to the content IDs in the content ID table one by one;
the obtaining, from the content ID table, all content IDs for which the number of second orientation attributes is not greater than the number of first orientation attributes includes:
and acquiring all content IDs of which the number of the second orientation attributes is not more than that of the first orientation attributes in the content ID table through the content ID index table.
A second aspect of the present application provides a content pushing apparatus, including:
the data acquisition module is configured to acquire a first orientation attribute of a target object; and
acquiring target content IDs of which the number of second directional attributes is not more than the number of the first directional attributes from a content ID table, wherein the content ID table comprises different target content IDs and corresponding second directional attributes;
the matching module is configured to determine that the content ID of the second orientation attribute matched with the first orientation attribute is a target content ID to be pushed;
and the information pushing module is configured to acquire the target content information to be pushed according to the target content ID to be pushed and push the target content information to the target object.
A third aspect of the present application provides a processor configured to execute the content push method described above.
A fourth aspect of the present application provides a machine-readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to be configured to perform the content push method described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by a processor, implements the content push method described above.
Through the technical scheme, the content information matched with the directional attribute of the target object can be quickly and accurately retrieved and inquired according to the directional attribute of the target object, the corresponding content information is pushed to the target object, a large-capacity content retrieval request can be supported, and the method and the device have the advantages of high retrieval efficiency and high pushing accuracy.
Additional features and advantages of embodiments of the present application will be described in detail in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the embodiments of the disclosure, but are not intended to limit the embodiments of the disclosure. In the drawings:
fig. 1 schematically shows a method flowchart of a content push method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a flow of a process for pushing targeted advertisements in accordance with an embodiment of the present application;
fig. 3 schematically shows a schematic block diagram of a content push apparatus according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of 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 should be understood that the specific embodiments described herein are only used for illustrating and explaining the embodiments of the present application and are not used for limiting the embodiments of the present application. 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.
It should be noted that if directional indications (such as up, down, left, right, front, and back … …) are referred to in the embodiments of the present application, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present application, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
As shown in fig. 1, in an embodiment of the present application, a content pushing method is provided, including:
s100, obtaining a first orientation attribute of a target object, and determining the number of the first orientation attribute;
s200, acquiring all content IDs of which the number of the second directional attributes is not more than that of the first directional attributes from a content ID table, wherein the content ID table comprises different content IDs and corresponding second directional attributes;
s300, determining the content ID matched with the first orientation attribute and the second orientation attribute as the target content ID to be pushed;
s400, acquiring the target content information to be pushed according to the target content ID to be pushed, and pushing the target content information to the target object.
Therefore, the method and the device can quickly and accurately retrieve and query the content information matched with the directional attribute of the target object according to the directional attribute of the target object, push the corresponding content information to the target object, support a large-capacity content retrieval request, and have the advantages of high retrieval efficiency and high pushing accuracy.
It is understood that the push of content information includes, but is not limited to, push of product information, push of news information, push of literary works, and push of advertisements. In this embodiment, advertisement pushing is taken as an example, and currently, when an advertisement is pushed, advertisement information corresponding to a search query is generally retrieved and pushed based on a targeting attribute of a user. The directional attributes of the user include, but are not limited to, region, client, model of mobile phone, age, personal preference, etc. In step S100, the first directional attribute of the target object may be obtained based on a large amount of legally collected data generated by the user in the interaction process between the electronic device and the server, and the data may represent characteristics of the user, such as a favorite, a financial status, or a trip mode, so that when an advertisement is pushed to the user, advertisement information that is preferred by the user may be more accurately retrieved, queried, and pushed. It can be understood that when the method is applied to advertisement push, the content ID table, the content ID and the content information may be corresponding advertisement ID table, advertisement ID and advertisement information; when the method is applied to news pushing, the content ID table, the content ID and the content information can be the corresponding news ID table, news ID and news information, and so on.
In step S200, the advertisement ID table is used to store a corresponding relationship between the advertisement ID and a corresponding second targeting attribute, where the second targeting attribute corresponding to the advertisement ID is used to represent that a push object of the advertisement information corresponding to the current advertisement ID is a target object matched with the second targeting attribute. Taking the advertisement ID table including advertisement IDs Ad 1-Ad 6 as an example, as shown in table 1, the second targeting attribute corresponding to the advertisement with the advertisement ID Ad1 includes region, hobby and gender, and Size is the number of the second targeting attribute. In the second targeting attribute corresponding to the advertisement with the Ad1 as the advertisement ID, the region value is beijing, shanghai, wuhan, the preference is for badminton and football, the gender is male, the pushing object of the advertisement with the Ad1 as the advertisement is beijing, shanghai or wuhan, the male with the preference for badminton or football can understand that the advertisement information corresponding to the advertisement ID can be pushed to all target objects.
TABLE 1
In order to facilitate advertisement retrieval, a forward index may be constructed for the correspondence between the advertisement ID and the second targeting attribute based on the advertisement ID table, that is, all the second targeting attributes corresponding to the advertisement ID may be indexed by using the advertisement ID as an index key, or the corresponding advertisement ID and the second targeting attribute may be indexed by using Size as an index key. In a specific embodiment of the present application, the advertisement information is stored in the database, and each piece of advertisement information is mapped with a corresponding advertisement ID, as shown in fig. 2, the pushing process of the target advertisement is as follows:
when the service is started, a forward index is constructed according to the advertisement data in the database;
when the advertisement data is updated, for example, the advertisement information is added or deleted, the index data is updated in a full-quantity updating mode, and the index data is updated and synchronized in an incremental updating mode through the message queue Mq;
based on the constructed forward index, inquiring the advertisement ID according to the advertisement retrieval condition to obtain an initial result set of the advertisement ID, calculating a final result set according to the matching rule, and taking out corresponding advertisement information from the database for pushing.
The advertisement retrieval condition can be that the number of the second directional attributes corresponding to the advertisement ID is not greater than the number of the first directional attributes of the target object. For example, if the first directional attributes of the target object include maiden, beijing, and badminton, the number thereof is 3, and as can be seen from table 1, if the number of the second directional attributes of Ad1 to Ad6 is not greater than 3, the initial result set of the advertisement IDs is { Ad1, Ad2, Ad3, Ad4, Ad5, Ad6}, and the thus obtained initial result set can fully cover the advertisement IDs of which the second directional attributes at least include one of maiden, beijing, and badminton. In step S300, the second directional attributes corresponding to the advertisement IDs in the obtained initial result set are matched with the first directional attributes according to a matching rule, so as to screen out a final result set. The matching rule includes, but is not limited to, that at least one second targeting attribute corresponding to the advertisement ID is consistent with any one of the first targeting attributes, or that each second targeting attribute corresponding to the advertisement ID is consistent with one of the first targeting attributes.
Wherein, obtaining all advertisement IDs of which the number of the second directional attributes is not more than the number of the first directional attributes from the advertisement ID table comprises:
determining the number N of first orientation attributes;
and sequentially acquiring all advertisement IDs of which the number of the second directional attributes is N, N-1, … and N-i through the advertisement ID table until i is equal to N, and acquiring the advertisement IDs of which the number of the second directional attributes is not more than that of the first directional attributes.
Similarly, taking the example that the first directional attribute of the target object includes maiden, beijing, and badminton as an example, first, the number N of the first directional attribute is determined to be 3, the advertisement ID of which the second directional attribute number is 3 is obtained as { Ad1, Ad2, Ad3} through the advertisement ID table, the advertisement ID of which the second directional attribute number is 2 is obtained as { Ad5} through the advertisement ID table, the advertisement ID of which the second directional attribute number is 1 is obtained as { Ad4} through the advertisement ID table, and finally, the advertisement ID of which the second directional attribute number is 0 is obtained as { Ad6} through the advertisement ID table, so that the initial result set of the advertisement IDs is { Ad1, Ad2, Ad3, Ad4, Ad5, Ad6 }.
In another specific embodiment of the present application, the method further comprises:
and sequencing all the advertisement IDs acquired from the advertisement ID table and the corresponding second directional attributes thereof according to the sequence of the number of the second directional attributes from low to high, and constructing a target advertisement ID query index table, wherein the target advertisement ID query index table is composed of a set of advertisement IDs with the same number of the second directional attributes.
Specifically, based on the number Size of the second targeting attributes corresponding to each advertisement ID as an index key, a forward index of Size, advertisement ID and the second targeting attributes is constructed, the corresponding advertisement ID and the second targeting attributes are indexed, and a target advertisement ID query index table is obtained as shown in table 2.
TABLE 2
In this embodiment, determining that the advertisement ID matching the second targeting attribute with the first targeting attribute is the target advertisement ID to be pushed includes: matching the second directional attributes of the advertisement IDs in each set with the first directional attributes respectively to determine the target advertisement IDs in each set; and taking the target advertisement ID in all the sets as the target advertisement ID to be pushed.
If a set with the number of the second directional attributes identical to the number of the first directional attributes exists in the target advertisement ID query index table, taking the advertisement ID with the second directional attributes and the first directional attributes in the set consistent as the target advertisement ID in the set; if the targeted advertisement ID query index table does not have sets with the number of the second directional attributes identical to the number N of the first directional attributes, regarding each set, using the advertisement ID with the second directional attributes consistent with any M first directional attributes in the N first directional attributes as the targeted advertisement ID of the current set, wherein M is the number of the second directional attributes of the advertisement ID of the current set.
Similarly, taking the example that the first directional attribute of the target object includes maid, beijing, and badminton as an example, first, determining that the number N of the first directional attribute is 3, querying the advertisement ID whose number of the second directional attribute is 3 in the target advertisement ID query index table to obtain a first initial advertisement ID data set of { Ad1, Ad2, Ad3}, then querying the index table by the target advertisement ID to obtain an advertisement ID whose number of the second directional attribute is 2 of { Ad5}, then querying the index table by the target advertisement ID to obtain an advertisement ID whose number of the second directional attribute is 1 of { Ad4}, and finally querying the index table by the target advertisement ID to obtain an advertisement ID whose number of the second directional attribute is 0 of { Ad6}, and further obtain an initial result set of the advertisement ID.
And aiming at the obtained advertisement ID sets { Ad1, Ad2, Ad3}, { Ad5}, { Ad4} and { Ad6}, respectively screening the advertisement IDs according to matching rules to obtain the target advertisement ID of each advertisement ID set. Specifically, it is determined that, among the advertisement ID sets { Ad1, Ad2, Ad3} obtained when Size ═ 3, an advertisement ID having a second targeting attribute that matches all of the 3 first targeting attributes is a target advertisement ID, that is, Size ═ 3, in { Ad1, Ad2, Ad3}, the result set 1 ═ P (female) Λ P (beijing) ^ P (badminton) is obtained by querying the index table with the target advertisement ID, and when Size ═ 3, there is no target advertisement ID that satisfies both P (female) Λ P (beijing) ^ P (badminton).
For an advertisement ID set { Ad5}, which is obtained when the Size is 2, it is determined that, in { Ad5}, an advertisement ID having a second directional attribute that is consistent with any 2 first directional attributes among 3 first directional attributes is a target advertisement ID, that is, the Size is 2, a result set 2 ═ P (female) Λ P (beijing) ] [ P (beijing) ^ P (badminton) ] [ P (female) Λ P (badminton) ], which is obtained by querying an index table by using the target advertisement ID, and when the Size is 2, a target advertisement ID that simultaneously satisfies [ P (female) ^ P (beijing) ] [ P (beijing) ^ P (badminton) ] [ P (female) ^ P (badminton) ], does not exist.
For the advertisement ID set { Ad4}, which is obtained when the Size is 1, it is determined that, in { Ad4}, an advertisement ID having a second targeting attribute that is consistent with any 1 first targeting attribute of the 3 first targeting attributes is a target advertisement ID, that is, when the Size is 1, a result set 3 ═ P (female) P (beijing) v.p (shuttlecock), which can be obtained by querying an index table with the target advertisement ID, and when the Size is 1, the target advertisement ID satisfying P (female) v.p (beijing) P (shuttlecock) is Ad 4.
For the set of Ad IDs { Ad6} obtained when Size is 0, the result set 4 is a (0), i.e., all target Ad IDs with Size 0 are Ad 6.
The final result set is result set 1, result set 2, result set 3, result set 4, and the obtained target advertisement IDs to be pushed are Ad4 and Ad 6.
In order to further improve the query efficiency and compress the storage space of the data, in another specific embodiment of the present application, the method further includes:
encoding all advertisement IDs in sequence;
aiming at each advertisement ID, taking the coded advertisement ID as a key and the advertisement ID as a value to obtain bitmap data of the advertisement ID;
storing bitmap data of all advertisement IDs into a database based on Roaring bitmap according to a coding sequence, and constructing an advertisement ID index table, wherein the advertisement IDs in the advertisement ID index table correspond to the advertisement IDs in the advertisement ID table one by one;
acquiring all advertisement IDs of which the number of the second directional attributes is not more than that of the first directional attributes from an advertisement ID table, wherein the steps comprise:
and acquiring all advertisement IDs of which the number of the second directional attributes is not more than that of the first directional attributes in the advertisement ID table through the advertisement ID index table.
The Roaring bitmap has higher query efficiency and space efficiency than ES, taking 10W data space as an example, after data is compressed by HashSet, SkipList and Roaring bitmap, the data sizes are 200K, 300K and 4K respectively. If the advertisement ID is directly stored, when there are many advertisement IDs, the storage space is very large, and when the service is in a multi-thread and high query request condition, the retrieval efficiency is seriously affected, which affects the throughput of the system. In the embodiment, the dictionary ID of the advertisement ID is constructed based on the Roaring bitmap, and the data storage space is further compressed by RunContainer when the Roaring bitmap is stored, so that the data volume can be effectively compressed, and the query efficiency is improved.
Specifically, all advertisement IDs are encoded as long type numerical values starting from 1, for example, if the advertisement IDs are Ad1 to Ad1000, the advertisement IDs are encoded as long type numerical values of 1 to 1000, and stored as [1, Ad1] in a key value pair manner, taking Ad1 as an example, where 1 is a key, Ad1 is a value, and [1, Ad1] is the obtained bitmap data. Further, all the obtained bitmap data are arranged according to the sequence of the advertisement IDs from small to large or from large to small to obtain an advertisement ID index table, and the coded long type numerical value is used as an index key word to index the corresponding advertisement ID and the second directional attribute. When the new advertisement is needed, the new advertisement is numbered continuously from the current maximum number without modifying the previous advertisement sequence again. And further, under the condition that the first directional attribute of the target object is obtained, the advertisement ID is inquired through an advertisement ID index table constructed based on the dictionary ID, the second directional attribute corresponding to each advertisement ID is obtained from the advertisement ID table according to the advertisement ID, then the advertisement ID inquiry index table is constructed according to the number of the second directional attributes, the initial result set is determined according to the constructed advertisement ID inquiry index table and the matching rule, the final result set is obtained through calculation, and therefore the advertisement information pushed to the target object is determined. Meanwhile, when a final result set is obtained, each piece of dictionary ID data is 1 array, a second directional attribute corresponding to the advertisement ID of the piece of dictionary ID data is used as an element of the array, the dictionary ID is constructed based on Roaring bitmap, each array in the M arrays is ordered, the M arrays form 1 array through rapid sequencing, whether the element appears for N times is judged by comparing whether the first element and the Nth element in the arrays are the same, the element appearing for N times is finally found, the time complexity O (Log (N)) and the space complexity O (M) of the query process are compared with the traditional list query, all data in all advertisement ID tables need to be traversed, the advertisement frequency appearing in each element is recorded, and the time efficiency is better.
As shown in fig. 3, a second aspect of the present application provides a content pushing apparatus, including:
the data acquisition module is configured to acquire a first orientation attribute of a target object; and
acquiring target content IDs of which the number of the second directional attributes is not more than that of the first directional attributes from a content ID table, wherein the content ID table comprises different target content IDs and corresponding second directional attributes;
the matching module is configured to determine that the content ID of the second orientation attribute matched with the first orientation attribute is a target content ID to be pushed;
and the information pushing module is configured to acquire the target content information to be pushed according to the target content ID to be pushed and push the target content information to the target object.
A third aspect of the present application provides a processor configured to execute the content push method described above.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the login authentication management method applied to the user side is realized by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
A fourth aspect of the present application provides a machine-readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to be configured to perform the content push method described above.
The embodiment of the application provides a machine-readable storage medium, which stores instructions that when executed by a processor, cause the processor to be configured to execute the login authentication management method applied to a server or the login authentication management method applied to a user.
Machine-readable storage media include both permanent and non-permanent, removable and non-removable media, and the storage of information may be accomplished by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of machine-readable storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by a processor, implements the content push method described above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A method for pushing content, comprising:
acquiring a first orientation attribute of a target object, and determining the number of the first orientation attribute;
acquiring all content IDs of which the number of second orientation attributes is not more than that of the first orientation attributes from a content ID table, wherein the content ID table comprises different content IDs and corresponding second orientation attributes;
determining a content ID matched with the first orientation attribute by the second orientation attribute as a target content ID to be pushed;
and acquiring target content information to be pushed according to the target content ID to be pushed, and pushing the target content information to the target object.
2. The content pushing method according to claim 1, wherein the method further comprises:
and sequencing all the content IDs acquired from the content ID table and the corresponding second directional attributes thereof according to the sequence of the number of the second directional attributes from low to high, and constructing a target content ID query index table, wherein the target content ID query index table is composed of a set of content IDs with the same number of second directional attributes.
3. The content pushing method according to claim 2, wherein determining that the content ID with the second orientation attribute matching the first orientation attribute is the target content ID to be pushed comprises:
matching the second directional attributes of the content IDs in each set with the first directional attributes respectively to determine the target content IDs in each set;
and taking the target content IDs in all the sets as target content IDs to be pushed.
4. The content push method according to claim 3, wherein if there is a set in the target content ID lookup index table where the number of the second targeting attributes is the same as the number of the first targeting attributes, the content ID in the set where the second targeting attributes are consistent with the first targeting attributes is taken as the target content ID in the set.
5. The content pushing method according to claim 3, wherein the number of the first directional attributes is N;
if the target content ID query index table does not have sets with the number of the second orientation attributes identical to the number N of the first orientation attributes, regarding each set, using the content ID with the second orientation attributes consistent with any M first orientation attributes in the N first orientation attributes as the target content ID of the current set, wherein M is the number of the second orientation attributes of the content ID of the current set.
6. The content pushing method according to claim 1, wherein the method further comprises:
sequentially encoding all content IDs;
for each content ID, taking the coded content ID as a key and the content ID as a value to obtain bitmap data of the content ID;
storing bitmap data of all content IDs into a database based on Roaring bitmap according to a coding sequence, and constructing a content ID index table, wherein the content IDs in the content ID index table correspond to the content IDs in the content ID table one by one;
the obtaining, from the content ID table, all content IDs for which the number of second orientation attributes is not greater than the number of first orientation attributes includes:
and acquiring all content IDs of which the number of the second orientation attributes is not more than that of the first orientation attributes in the content ID table through the content ID index table.
7. A content pushing apparatus, comprising:
the data acquisition module is configured to acquire a first orientation attribute of a target object; and
acquiring target content IDs of which the number of second directional attributes is not more than the number of the first directional attributes from a content ID table, wherein the content ID table comprises different target content IDs and corresponding second directional attributes;
the matching module is configured to determine that the content ID of the second orientation attribute matched with the first orientation attribute is a target content ID to be pushed;
and the information pushing module is configured to acquire the target content information to be pushed according to the target content ID to be pushed and push the target content information to the target object.
8. A processor configured to perform the content push method of any one of claims 1 to 6.
9. A machine-readable storage medium having instructions stored thereon, which when executed by a processor, cause the processor to be configured to perform the content push method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the content push method of any of claims 1 to 6 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111580424.6A CN114238426A (en) | 2021-12-22 | 2021-12-22 | Content pushing method, device, processor and machine-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111580424.6A CN114238426A (en) | 2021-12-22 | 2021-12-22 | Content pushing method, device, processor and machine-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114238426A true CN114238426A (en) | 2022-03-25 |
Family
ID=80761233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111580424.6A Pending CN114238426A (en) | 2021-12-22 | 2021-12-22 | Content pushing method, device, processor and machine-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114238426A (en) |
-
2021
- 2021-12-22 CN CN202111580424.6A patent/CN114238426A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8775471B1 (en) | Representing user behavior information | |
US20170109399A1 (en) | Systems and methods for data conversion and comparison | |
KR101708261B1 (en) | Managing storage of individually accessible data units | |
US7853598B2 (en) | Compressed storage of documents using inverted indexes | |
JP2010508606A (en) | Storage management of individually accessible data units | |
CN111198961B (en) | Commodity searching method, commodity searching device and commodity searching server | |
CN112115227B (en) | Data query method and device, electronic equipment and storage medium | |
CN111475105B (en) | Monitoring data storage method, monitoring data storage device, monitoring data server and storage medium | |
CN106874348A (en) | File is stored and the method for indexing means, device and reading file | |
CA2861898A1 (en) | Download resource recommendation method, system and storage medium | |
CN109992603B (en) | Data searching method and device, electronic equipment and computer readable medium | |
CN108319608A (en) | The method, apparatus and system of access log storage inquiry | |
CN116431726A (en) | Graph data processing method, device, equipment and computer storage medium | |
CN105005567B (en) | Interest point query method and system | |
CN108038253B (en) | Log query processing method and device | |
CN112231398A (en) | Data storage method, device, equipment and storage medium | |
CN111817722A (en) | Data compression method and device and computer equipment | |
CN114817717A (en) | Search method, search device, computer equipment and storage medium | |
CN114116827B (en) | Query system and method for user portrait data | |
CN110532284B (en) | Mass data storage and retrieval method and device, computer equipment and storage medium | |
CN113641681B (en) | Space self-adaptive mass data query method | |
CN114238426A (en) | Content pushing method, device, processor and machine-readable storage medium | |
CN117093579A (en) | Data query and data storage method, device, equipment and storage medium | |
CN116303580A (en) | Data query method, device and database system | |
CN110929002B (en) | Similar article duplicate removal method, device, terminal and computer readable storage medium |
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 |