CN113722533B - Information pushing method and device, electronic equipment and readable storage medium - Google Patents
Information pushing method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN113722533B CN113722533B CN202111004826.1A CN202111004826A CN113722533B CN 113722533 B CN113722533 B CN 113722533B CN 202111004826 A CN202111004826 A CN 202111004826A CN 113722533 B CN113722533 B CN 113722533B
- Authority
- CN
- China
- Prior art keywords
- tag
- information
- user
- data
- data table
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000005540 biological transmission Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 12
- 238000010276 construction Methods 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 238000013473 artificial intelligence Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 4
- 239000003814 drug Substances 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000007726 management method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 238000012216 screening Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/73—Querying
- G06F16/735—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/71—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (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)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to an artificial intelligence technology, and discloses an information pushing method, which comprises the following steps: constructing a bitmap of each row of label values in a label data table to obtain label bitmap data; replacing data of a corresponding row in the tag data table by using each tag bitmap data to obtain a compressed data table; inquiring the label bitmap data of the corresponding row in the compressed data table by using the target user label, and operating according to the inquired label bitmap data to obtain initial user information data; inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index; pushing information to be sent to all user addresses. The application also relates to digital medicine, and the information push to be sent can be medical related information. The application also provides an information pushing device, equipment and a medium. The application can improve the information pushing efficiency.
Description
Technical Field
The present application relates to artificial intelligence technology, and in particular, to an information pushing method, an apparatus, an electronic device, and a readable storage medium.
Background
With the rapid growth of services and the increase of user magnitude, the user quantity to be pushed is larger and larger, so that the information pushing efficiency is more and more important, the information pushing delay is caused by lower information pushing efficiency, the service operation is influenced, for example, the service is live, the live time is the time and topic of eight-point evening, the operation complaint is the time and topic of pushing information to notify the user to live before live, and if nine-point evening live is finished, but the information arrives at ten-point evening.
The current information pushing method has the advantages that the number of labels is large, the speed of screening target users for information transmission by using the labels is low, and therefore the information pushing efficiency is low.
Disclosure of Invention
The application provides an information pushing method, an information pushing device, electronic equipment and a computer readable storage medium, and mainly aims to improve information pushing efficiency.
In order to achieve the above object, the present application provides an information pushing method, including:
obtaining a tag data table, wherein each column of the tag data table has a corresponding index, and each column contains a user address and a tag value of a user tag;
constructing a bitmap of each row of tag values in the tag data table to obtain tag bitmap data;
replacing data of a corresponding row in the tag data table by using each tag bitmap data to obtain a compressed data table;
acquiring information to be transmitted and a corresponding target user tag, inquiring corresponding tag bitmap data in the compressed data table by using the target user tag, and performing bit operation according to the inquired tag bitmap data to obtain initial user information data;
inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index to obtain a user address set;
pushing the information to be sent to each user address in the user address set.
Optionally, the constructing a bitmap of the tag value of each row in the tag data table to obtain tag bitmap data includes:
counting the number of indexes corresponding to the columns of the tag values in the tag data table to obtain the number of columns;
constructing a blank bitmap with the same dimension according to the number of columns;
and replacing the bit value of the corresponding position in the blank bitmap with 1 according to the index of the column where the preset label value is located in each row in the label data table to obtain the corresponding label bitmap data.
Optionally, the querying, by using the target user tag, the corresponding tag bitmap data in the compressed data table, and performing bit operation according to the queried tag bitmap data, to obtain initial user information data, including:
constructing a row key corresponding to the target user label by utilizing the preset rule to obtain a query row key;
inquiring label bitmap data corresponding to the same row key row in the compressed data table according to the inquiring row key to obtain inquiring label data;
and carrying out bit operation on all the query tag data to obtain initial user information data.
Optionally, the querying, according to the position of the preset bit value in the initial user information data and the index, the user address in the tag data table to obtain a user address set includes:
inquiring a symbol bit corresponding to the bit value 1 in the initial user information data to obtain a target symbol bit;
and determining the target sign bit as a query index, and querying a user address corresponding to a column of the same index in the tag data table by using the query index to obtain the user address set.
Optionally, the pushing the information to be sent to each user address in the user address set includes:
each column of the tag data table contains a user name;
inquiring a user name in the tag data table according to the inquiring index corresponding to the user address, and performing information title construction on the inquired user name to obtain a target user name;
combining the target user name corresponding to the user address with the information to be sent to obtain target information to be sent;
and sending the target information to be sent to the corresponding user address.
Optionally, the constructing the information name of the queried user name to obtain the target user name includes:
acquiring standard call text;
and replacing a preset field in the standard call text with the queried user name to obtain the target user name.
Optionally, the sending the target information to be sent to the corresponding user address includes:
acquiring the address type of the user address;
inquiring a corresponding information transmission mode in a preset information transmission mode comparison table according to the address type to obtain a target transmission mode;
pushing the information to be sent of the target to the corresponding user address according to the target sending mode.
In order to solve the above problems, the present application also provides an information pushing apparatus, including:
the data conversion module is used for obtaining a tag data table, wherein each column of the tag data table is provided with a corresponding index, and each column comprises a user address and a tag value of a user tag; constructing a bitmap of each row of tag values in the tag data table to obtain tag bitmap data; replacing data of a corresponding row in the tag data table by using each tag bitmap data to obtain a compressed data table;
the data query module is used for acquiring information to be transmitted and a corresponding target user tag, querying corresponding tag bitmap data in the compressed data table by utilizing the target user tag, and performing bit operation according to the queried tag bitmap data to obtain initial user information data; inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index to obtain a user address set;
and the information pushing module is used for pushing the information to be sent to each user address in the user address set.
In order to solve the above-mentioned problems, the present application also provides an electronic apparatus including:
a memory storing at least one computer program; and
And the processor executes the computer program stored in the memory to realize the information pushing method.
In order to solve the above-mentioned problems, the present application also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the above-mentioned information push method.
According to the information pushing method, device, electronic equipment and readable storage medium, the corresponding label bitmap data is queried in the compressed data table by utilizing the target user label, bit operation is carried out according to the queried label bitmap data, initial user information data is obtained, screening of the label user is converted into operation of the bitmap data, and therefore screening speed of the target user is improved, information pushing efficiency of the target user is further improved.
Drawings
Fig. 1 is a flow chart of an information pushing method according to an embodiment of the present application;
fig. 2 is an exemplary table of a tag data table in the information pushing method according to an embodiment of the present application;
FIG. 3 is a schematic block diagram of an information pushing device according to an embodiment of the present application;
fig. 4 is a schematic diagram of an internal structure of an electronic device for implementing an information pushing method according to an embodiment of the present application;
the achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The embodiment of the application provides an information pushing method. The execution main body of the information pushing method includes, but is not limited to, at least one of a server, a terminal and the like capable of being configured to execute the method provided by the embodiment of the application. In other words, the information pushing method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: the server can be an independent server, or can be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDNs), basic cloud computing services such as big data and artificial intelligent platforms, and the like.
Referring to fig. 1, a flowchart of an information pushing method according to an embodiment of the present application is shown, where in an embodiment of the present application, the information pushing method includes:
s1, acquiring a tag data table, wherein each column of the tag data table is provided with a corresponding index, and each column comprises a user address and a tag value of a user tag;
in detail, in the embodiment of the present application, the tag data table is a data table including tag values of all tags corresponding to different users or user groups, each column of the tag data table has a corresponding index, and each column includes a user address and a tag value of a user tag, where the user tag may be a gender tag, such as a man or a woman, or an age tag, such as a post 90 post 80 post, or a work type tag, such as a "teacher", "student", "programmer" or the like. Each column in the tag data table also includes a user name of the user.
Further, the index of the column of the tag data table in the embodiment of the application can improve the data query efficiency. For example, referring to FIG. 2, in a tag data table consisting of a user name row, a user address row, a female tag row, a post-00 tag row, and a student tag row, each column has a corresponding index.
S2, constructing a bitmap of each row of tag values in the tag data table to obtain tag bitmap data;
in detail, in order to increase the operand of data and reduce the capacity of data, the embodiment of the application constructs a bitmap (bitmap) of each row of tag values in the tag data table to obtain the corresponding tag bitmap data.
Specifically, in the embodiment of the present application, a bitmap of a tag value of each row in the tag data table is constructed to obtain tag bitmap data, including:
step A, counting the number of indexes corresponding to the columns of the label values in the label data table to obtain the number of columns;
optionally, in the embodiment of the present application, a bitmap is constructed for the tag value, so that in order to determine the dimension of the bitmap to be constructed subsequently, the number of indexes corresponding to the columns where the tag value is located in the tag data table is counted.
Step B, constructing a blank bitmap with the same dimension according to the number of columns;
in the embodiment of the application, the blank bitmap is that the bit values corresponding to all bits are 0.
And C, replacing the bit value of the corresponding position in the blank bitmap with 1 according to the index of the column where the preset label value is located in each row in the label data table, and obtaining the corresponding label bitmap data.
In detail, in the embodiment of the present application, the number of columns is the number of columns where the user names in the tag data table are located, so the number of columns represents the number of users in the tag data table, for example, there are three user name columns in the tag data table, namely, user a, user B, and user C, and since the user name columns are obtained by converting user name rows in the tag data table into columns, each user name row has a corresponding index, and therefore, each user name column has a corresponding index, for example: the number of indexes is 3, then the number of columns in the tag data table is 3.
Further, the embodiment of the application constructs the blank bitmap with the same dimension according to the number of columns. For example, the number of columns is 3, then the blank bitmap is 000.
Further, according to the embodiment of the application, the bit value of the corresponding position in the blank bitmap is replaced by 1 according to the index of the column where the preset label value of each row in the label data table is located, so as to obtain the corresponding label bitmap data. Optionally, in the embodiment of the present application, the tag value in the tag data table includes: yes, not, the preset tag value is yes.
For example, in one embodiment of the present application, the tag data table has three rows and three columns, the preset tag value is "yes", the indexes corresponding to the first column, the second column and the third column are sequentially 1, 2 and 3, the tag value of the first column and the third column in the first row is "no", the tag value of the second column is "yes", and then the corresponding tag bitmap data is 010; the label values of the first column and the third column in the second row are yes, the label value of the second column is not, and then the corresponding label bitmap data is 101; in the first row, the label value of the first column is yes, the label values of the second column and the third column are not, and then the corresponding label bitmap data is 100.
In another embodiment of the present application, the tag bitmap data may be stored in a blockchain node, so as to improve the data access efficiency according to the high throughput characteristic of the blockchain node.
S3, replacing data of corresponding rows in the tag data table by using each tag bitmap data to obtain a compressed data table;
in detail, in order to reduce the consumption of storage resources of a data table, the embodiment of the application replaces the data of the corresponding row in the tag data table with each tag bitmap data to obtain an initial compressed data table;
further, in order to facilitate the query of the label bitmap data of each line in the initial compression data table, a preset rule is used to construct a corresponding line key for each line of the initial compression data table to obtain the compression data table, and optionally, in the embodiment of the present application, the preset rule is to convert the label of each line into a binary character to obtain the line key corresponding to the line. Such as: the label of the first row in the compressed data table is "man", then the text "man" is converted into binary characters, and the row key corresponding to the row is obtained 111010100110111.
In another embodiment of the present application, the label category corresponding to each row of labels may be identified by using the artificial intelligence model, and the current year, the label category, and the labels of each row are combined by using preset characters to obtain the row key corresponding to the line change, for example, if the label category corresponding to the male label is Gender and the current year is 2021, then the corresponding row key is 2021-Gender-man.
S4, acquiring information to be transmitted and a corresponding target user tag, inquiring corresponding tag bitmap data in the compressed data table by using the target user tag, and performing bit operation according to the inquired tag bitmap data to obtain initial user information data;
in the embodiment of the present application, the information to be sent is information to be pushed, and the target user tag is a tag corresponding to a target user corresponding to the information to be sent set in advance, and may be one or more tags, for example: 90, teacher, etc.
In detail, in order to query the label bitmap data of the corresponding row in the compressed data table more quickly, a row key corresponding to the target user label is constructed by utilizing the preset rule to obtain a query row key, and the label bitmap data corresponding to the same row key row in the compressed data table is queried according to the query row key to obtain the query label data.
Further, in the embodiment of the application, the user corresponding to the target user label is converted into the label bitmap data corresponding to the target user label, so that the scale of the query data is reduced, and the query speed is improved.
Further, the embodiment of the application carries out bit operation on all the query tag data to obtain initial user information data. Specifically, in the embodiment of the application, all query tag data are subjected to AND operation to obtain initial user information data.
For example: and (3) performing AND operation on the two query tag data to obtain initial user information data, wherein the total two query tag data are 101 and 011: 101& 011=001.
S5, inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index to obtain a user address set;
in detail, in the embodiment of the present application, according to the position of the preset bit value in the initial user information data and the index, the user address in the tag data table is queried to obtain a user address set, which includes: inquiring a symbol bit corresponding to the bit value 1 in the initial user information data to obtain a target symbol bit; and determining the target sign bit as a query index, and querying a user address corresponding to a column of the same index in the tag data table by using the query index to obtain the user address set, wherein the user address can be user ip or user mobile phone number, and optionally, in the embodiment of the application, the preset bit value is 1. For example: the initial user information data is 10000101, and the preset bit value is 1, so that the target symbol bits are 1, 6 and 8, and further, 1, 6 and 8 are used as query indexes. And inquiring the corresponding user addresses with indexes of 1, 6 and 8 in the address index mapping table to obtain a user address set.
In the embodiment of the application, the label user is filtered and converted into bitmap data for calculation, so that the speed of data filtering is improved, and the speed of subsequent information transmission is improved.
And S6, pushing the information to be sent to each user address in the user address set.
In the embodiment of the present application, each column of the tag data table includes a user name of a user, and the information to be sent needs to be correspondingly called to different users, so that pushing the information to be sent to each user address in the user address set includes:
inquiring a user name in the tag data table of the added index according to the inquiry index corresponding to the user address, and performing information title construction on the inquired user name to obtain a target user name; combining the target user name corresponding to the user address with the information to be sent to obtain target information to be sent; pushing the target information to be sent to the corresponding user address.
For example: the user name is 'ABC', the information to be sent is 'please participate in xx meeting on time', the information title construction is carried out according to the user name 'ABC', so that the target user name 'honored ABC mr/lady' is obtained, then the target user name and the information to be sent are combined, so that the target information to be sent is 'honored ABC mr/lady' and the xx meeting on time is requested, and then the target information to be sent is sent to the user address corresponding to the 'ABC' user.
Optionally, in the embodiment of the present application, performing information naming construction on the queried user name to obtain a target user name, including: acquiring standard call text; and replacing a preset field in the standard call text with the queried user name to obtain the target user name. For example: the standard call text is "honored Mr xx/lady", the preset field is "xx", the user name is "ABC", and then the corresponding target user name is "honored Mr ABC/lady".
Further, because the types of different user addresses are different, a corresponding information pushing mode needs to be selected according to the type of the user address, for example: the user address is the mobile phone number, and then the corresponding information pushing mode is short message pushing; the user address is the equipment ip, and then the corresponding information pushing mode is push pushing; therefore, the embodiment of the application needs to acquire the address type of the user address, and inquire the corresponding information transmission mode in the preset information transmission mode comparison table according to the address type to acquire the target transmission mode, wherein the information transmission mode comparison table comprises the corresponding transmission modes of different address types.
Further, according to the embodiment of the application, the information to be sent of the target is pushed to the corresponding user address according to the target sending mode.
For example: the target to-be-sent information corresponding to the user address is 'honored Mr ABC/lady please participate in xx meeting on time', the user address is a mobile phone number A, and the target sending mode corresponding to the mobile phone number A is a short message, so that the target to-be-sent information is pushed to intelligent terminal equipment to which the mobile phone number A belongs by utilizing the short message.
Further, in the embodiment of the application, a preset number of information assembly queues are created by utilizing a preset information middleware; optionally, in the embodiment of the present application, the preset information middleware is a rock mq, the preset number is 8, and further, the user address in the user address set, the corresponding target sending mode and the target information to be sent are assembled into json format sending data by using the information assembly queue; optionally, in the embodiment of the present application, the set of user addresses may be stored in a Redis cache, and the user addresses are read from the Redis cache and written into the information assembly queue, so as to improve the writing speed.
Further, the embodiment of the application creates the information sending queues with the preset quantity by utilizing the preset information middleware, sends the target information to be sent in the sending data by utilizing the information sending queues, and separates the information assembling process from the information sending process, thereby realizing asynchronous sending of the information, being convenient for flexibly distributing the working nodes corresponding to different queues and further improving the information sending speed.
As shown in fig. 3, a functional block diagram of the information pushing device of the present application is shown.
The information pushing device 100 of the present application may be installed in an electronic apparatus. Depending on the functions implemented, the information pushing device may include a data conversion module 101, a data query module 102, and an information pushing module 103, which may also be referred to as a unit, refers to a series of computer program segments capable of being executed by a processor of an electronic device and of performing a fixed function, which are stored in a memory of the electronic device.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the data conversion module 101 is configured to obtain a tag data table, where each column of the tag data table has a corresponding index, and each column includes a user address and a tag value of a user tag; constructing a bitmap of each row of tag values in the tag data table to obtain tag bitmap data; replacing data of a corresponding row in the tag data table by using each tag bitmap data to obtain a compressed data table;
the data query module 102 is configured to obtain information to be sent and a corresponding target user tag, query corresponding tag bitmap data in the compressed data table by using the target user tag, and perform bit operation according to the queried tag bitmap data to obtain initial user information data; inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index to obtain a user address set;
the information pushing module 103 is configured to push the information to be sent to each user address in the user address set.
In detail, each module of the information pushing device 100 in the embodiment of the present application adopts the same technical means as the information pushing method described in fig. 1 and can produce the same technical effects when in use, and will not be described herein.
Fig. 3 is a schematic structural diagram of an electronic device for implementing the information pushing method according to the present application.
The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as an information push program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 11 may in other embodiments also be an external storage device of the electronic device, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only for storing application software installed in an electronic device and various data, such as codes of an information push program, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing programs or modules (e.g., an information push program, etc.) stored in the memory 11, and calling data stored in the memory 11.
The communication bus 12 may be a peripheral component interconnect standard (perIPheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 is not limiting of the electronic device and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure classification circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
Optionally, the communication interface 13 may comprise a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The information push program stored in the memory 11 in the electronic device is a combination of a plurality of computer programs, which when run in the processor 10, can implement:
obtaining a tag data table, wherein each column of the tag data table has a corresponding index, and each column contains a user address and a tag value of a user tag;
constructing a bitmap of each row of tag values in the tag data table to obtain tag bitmap data;
replacing data of a corresponding row in the tag data table by using each tag bitmap data to obtain a compressed data table;
acquiring information to be transmitted and a corresponding target user tag, inquiring corresponding tag bitmap data in the compressed data table by using the target user tag, and performing bit operation according to the inquired tag bitmap data to obtain initial user information data;
inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index to obtain a user address set;
pushing the information to be sent to each user address in the user address set.
In particular, the specific implementation method of the processor 10 on the computer program may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
Further, the electronic device integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
Embodiments of the present application may also provide a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, may implement:
obtaining a tag data table, wherein each column of the tag data table has a corresponding index, and each column contains a user address and a tag value of a user tag;
constructing a bitmap of each row of tag values in the tag data table to obtain tag bitmap data;
replacing data of a corresponding row in the tag data table by using each tag bitmap data to obtain a compressed data table;
acquiring information to be transmitted and a corresponding target user tag, inquiring corresponding tag bitmap data in the compressed data table by using the target user tag, and performing bit operation according to the inquired tag bitmap data to obtain initial user information data;
inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index to obtain a user address set;
pushing the information to be sent to each user address in the user address set.
Further, the computer-usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
In addition, each functional module in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present application without departing from the spirit and scope of the technical solution of the present application.
Claims (8)
1. An information pushing method, characterized in that the method comprises:
obtaining a tag data table, wherein each column of the tag data table has a corresponding index, and each column contains a user address and a tag value of a user tag;
constructing a bitmap of each row of tag values in the tag data table to obtain tag bitmap data;
replacing data of a corresponding row in the tag data table by using each tag bitmap data to obtain a compressed data table;
acquiring information to be transmitted and a corresponding target user tag, inquiring corresponding tag bitmap data in the compressed data table by using the target user tag, and performing bit operation according to the inquired tag bitmap data to obtain initial user information data;
inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index to obtain a user address set;
pushing the information to be sent to each user address in the user address set;
wherein pushing the information to be sent to each user address in the user address set includes: each column of the tag data table contains a user name; inquiring the user name in the tag data table according to the inquiring index corresponding to the user address, and performing information title construction on the inquired user name to obtain a target user name; combining the target user name corresponding to the user address with the information to be sent to obtain target information to be sent; transmitting the target information to be transmitted to the corresponding user address;
the step of carrying out information naming construction on the queried user name to obtain a target user name comprises the following steps: acquiring standard call text; and replacing a preset field in the standard call text with the queried user name to obtain the target user name.
2. The information pushing method as claimed in claim 1, wherein said constructing a bitmap of tag values of each row in the tag data table to obtain tag bitmap data includes:
counting the number of indexes corresponding to the columns of the tag values in the tag data table to obtain the number of columns;
constructing a blank bitmap with the same dimension according to the number of columns;
and replacing the bit value of the corresponding position in the blank bitmap with 1 according to the index of the column where the preset label value is located in each row in the label data table to obtain the corresponding label bitmap data.
3. The information pushing method as claimed in claim 1, wherein the querying the corresponding tag bitmap data in the compressed data table by using the target user tag, performing bit operation according to the queried tag bitmap data, and obtaining initial user information data, includes:
constructing a row key corresponding to the target user label by utilizing the preset rule to obtain a query row key;
inquiring label bitmap data corresponding to the same row key row in the compressed data table according to the inquiring row key to obtain inquiring label data;
and carrying out bit operation on all the query tag data to obtain initial user information data.
4. The information pushing method as claimed in claim 1, wherein said querying the user address in the tag data table according to the position of the preset bit value in the initial user information data and the index to obtain the user address set includes:
inquiring a symbol bit corresponding to the bit value 1 in the initial user information data to obtain a target symbol bit;
and determining the target sign bit as a query index, and querying a user address corresponding to a column of the same index in the tag data table by using the query index to obtain the user address set.
5. The information pushing method as claimed in claim 1, wherein the sending the target information to be sent to the corresponding user address includes:
acquiring the address type of the user address;
inquiring a corresponding information transmission mode in a preset information transmission mode comparison table according to the address type to obtain a target transmission mode;
pushing the information to be sent of the target to the corresponding user address according to the target sending mode.
6. An information pushing apparatus for implementing the information pushing method according to any one of claims 1 to 5, comprising:
the data conversion module is used for obtaining a tag data table, wherein each column of the tag data table is provided with a corresponding index, and each column comprises a user address and a tag value of a user tag; constructing a bitmap of each row of tag values in the tag data table to obtain tag bitmap data; replacing data of a corresponding row in the tag data table by using each tag bitmap data to obtain a compressed data table;
the data query module is used for acquiring information to be transmitted and a corresponding target user tag, querying corresponding tag bitmap data in the compressed data table by utilizing the target user tag, and performing bit operation according to the queried tag bitmap data to obtain initial user information data; inquiring a user address in the tag data table according to the position of a preset bit value in the initial user information data and the index to obtain a user address set;
and the information pushing module is used for pushing the information to be sent to each user address in the user address set.
7. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the information pushing method of any of claims 1 to 5.
8. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the information push method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111004826.1A CN113722533B (en) | 2021-08-30 | 2021-08-30 | Information pushing method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111004826.1A CN113722533B (en) | 2021-08-30 | 2021-08-30 | Information pushing method and device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113722533A CN113722533A (en) | 2021-11-30 |
CN113722533B true CN113722533B (en) | 2023-10-17 |
Family
ID=78679163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111004826.1A Active CN113722533B (en) | 2021-08-30 | 2021-08-30 | Information pushing method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113722533B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114582301B (en) * | 2022-03-08 | 2024-07-23 | 康键信息技术(深圳)有限公司 | Information display method and device, electronic equipment and storage medium |
CN115277835A (en) * | 2022-08-01 | 2022-11-01 | 网易(杭州)网络有限公司 | Information pushing method and device, storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704527A (en) * | 2017-09-18 | 2018-02-16 | 华为技术有限公司 | Date storage method, device and storage medium |
CN108075978A (en) * | 2016-11-17 | 2018-05-25 | 华为技术有限公司 | A kind of file transmitting method, node configuration method and relevant device |
CN110648185A (en) * | 2019-11-28 | 2020-01-03 | 苏宁云计算有限公司 | Target crowd circling method and device and computer equipment |
US20200159708A1 (en) * | 2017-08-03 | 2020-05-21 | Huawei Technologies Co., Ltd. | Data Storage Method and Apparatus, and Storage Medium |
CN112532748A (en) * | 2020-12-24 | 2021-03-19 | 北京百度网讯科技有限公司 | Message pushing method, device, equipment, medium and computer program product |
CN112631731A (en) * | 2020-12-30 | 2021-04-09 | 平安证券股份有限公司 | Data query method and device, electronic equipment and storage medium |
-
2021
- 2021-08-30 CN CN202111004826.1A patent/CN113722533B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108075978A (en) * | 2016-11-17 | 2018-05-25 | 华为技术有限公司 | A kind of file transmitting method, node configuration method and relevant device |
US20200159708A1 (en) * | 2017-08-03 | 2020-05-21 | Huawei Technologies Co., Ltd. | Data Storage Method and Apparatus, and Storage Medium |
CN107704527A (en) * | 2017-09-18 | 2018-02-16 | 华为技术有限公司 | Date storage method, device and storage medium |
CN110648185A (en) * | 2019-11-28 | 2020-01-03 | 苏宁云计算有限公司 | Target crowd circling method and device and computer equipment |
CN112532748A (en) * | 2020-12-24 | 2021-03-19 | 北京百度网讯科技有限公司 | Message pushing method, device, equipment, medium and computer program product |
CN112631731A (en) * | 2020-12-30 | 2021-04-09 | 平安证券股份有限公司 | Data query method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113722533A (en) | 2021-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112052370A (en) | Message generation method and device, electronic equipment and computer readable storage medium | |
CN113722533B (en) | Information pushing method and device, electronic equipment and readable storage medium | |
CN111897831A (en) | Service message generation method and device, electronic equipment and storage medium | |
CN112464619B (en) | Big data processing method, device and equipment and computer readable storage medium | |
CN113868528A (en) | Information recommendation method and device, electronic equipment and readable storage medium | |
CN114186132B (en) | Information recommendation method and device, electronic equipment and storage medium | |
CN114185895A (en) | Data import and export method and device, electronic equipment and storage medium | |
CN114491047A (en) | Multi-label text classification method and device, electronic equipment and storage medium | |
CN111930897B (en) | Patent retrieval method, device, electronic equipment and computer-readable storage medium | |
CN114781832A (en) | Course recommendation method and device, electronic equipment and storage medium | |
CN113890712A (en) | Data transmission method and device, electronic equipment and readable storage medium | |
CN114840631A (en) | Spatial text query method and device, electronic equipment and storage medium | |
CN113505273B (en) | Data sorting method, device, equipment and medium based on repeated data screening | |
CN113468175A (en) | Data compression method and device, electronic equipment and storage medium | |
CN113590856B (en) | Label query method and device, electronic equipment and readable storage medium | |
CN115002011B (en) | Flow bidirectional test method and device, electronic equipment and storage medium | |
CN115982454A (en) | User portrait based questionnaire pushing method, device, equipment and storage medium | |
CN115496166A (en) | Multitasking method and device, electronic equipment and storage medium | |
CN115033605A (en) | Data query method and device, electronic equipment and storage medium | |
CN113704616B (en) | Information pushing method and device, electronic equipment and readable storage medium | |
CN115174555A (en) | File transmission method and device, electronic equipment and storage medium | |
CN114840388A (en) | Data monitoring method and device, electronic equipment and storage medium | |
CN111553133B (en) | Report generation method and device, electronic equipment and storage medium | |
CN113641697B (en) | Crowd generation method, crowd generation device, electronic equipment and storage medium | |
CN114742423B (en) | Random grouping method, device, equipment and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |