CN113722533A - 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 PDF

Info

Publication number
CN113722533A
CN113722533A CN202111004826.1A CN202111004826A CN113722533A CN 113722533 A CN113722533 A CN 113722533A CN 202111004826 A CN202111004826 A CN 202111004826A CN 113722533 A CN113722533 A CN 113722533A
Authority
CN
China
Prior art keywords
information
user
data
tag
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111004826.1A
Other languages
Chinese (zh)
Other versions
CN113722533B (en
Inventor
郑源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202111004826.1A priority Critical patent/CN113722533B/en
Publication of CN113722533A publication Critical patent/CN113722533A/en
Application granted granted Critical
Publication of CN113722533B publication Critical patent/CN113722533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/735Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; 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 invention 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 label bitmap data of a corresponding row in the compressed data table by using a target user label, and performing operation 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; and pushing the information to be sent to all user addresses. The invention also relates to digital medical treatment, and the information to be sent can be medical treatment related information. The invention also provides an information pushing device, equipment and a medium. The invention can improve the information pushing efficiency.

Description

Information pushing method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to artificial intelligence technologies, and in particular, to an information pushing method and apparatus, an electronic device, and a readable storage medium.
Background
With the rapid growth of services and the increase of user magnitude, the number of users needing to be pushed is larger and larger, so that the efficiency of information pushing is more and more emphasized by people, the information pushing is delayed due to low efficiency of information pushing, service operation is affected, for example, live broadcast services are provided, live broadcast time starts at eight night, operation complaints are that information can be pushed to inform users of live broadcast time and topics before live broadcast, and if nine live broadcast ends at night, the information can arrive at ten night.
In the existing information pushing method, because the magnitude of the user is larger and the number of the labels is more, the speed of screening the target user for information sending by using the labels is lower, and therefore the information pushing efficiency is lower.
Disclosure of Invention
The invention provides an information pushing method, an information pushing device, electronic equipment and a computer readable storage medium, and mainly aims to improve the information pushing efficiency.
In order to achieve the above object, an information pushing method provided by the present invention includes:
acquiring a tag data table, wherein each column of the tag data table has 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 label values in the label data table to obtain label bitmap data;
replacing the data of the corresponding row in the tag data table with each tag bitmap data to obtain a compressed data table;
acquiring information to be transmitted and a corresponding target user label, inquiring corresponding label bitmap data in the compressed data table by using the target user label, and performing bit operation according to the inquired label bitmap data to obtain initial user information data;
inquiring the 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 pushing the information to be sent to each user address in the user address set.
Optionally, the constructing a bitmap of a 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 where the label values are located in the label data table to obtain the number of the columns;
constructing blank bitmaps with the same dimensionality according to the number of the 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, 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 includes:
constructing a row key corresponding to the target user label by using the preset rule to obtain an inquiry row key;
inquiring label bitmap data corresponding to the same row key row in the compressed data table according to the inquiry row key to obtain the inquiry label data;
and performing bit operation on all the query tag data to obtain initial user information data.
Optionally, the querying, according to the position of the bit value preset 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 sign bit corresponding to the bit value 1 in the initial user information data to obtain a target sign bit;
and determining the target sign bit as a query index, and querying the user address corresponding to the 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 inquiry index corresponding to the user address, and carrying out information name construction on the inquired user name to obtain a target user name;
combining a 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 information name construction of the queried user name to obtain the target user name includes:
acquiring a standard call text;
and replacing a preset field in the standard name text with the inquired user name to obtain the target user name.
Optionally, the sending the target to-be-sent information to the corresponding user address includes:
acquiring the address type of the user address;
inquiring a corresponding information sending mode in a preset information sending mode comparison table according to the address type to obtain a target sending mode;
and pushing the target information to be sent to the corresponding user address according to the target sending mode.
In order to solve the above problem, the present invention further provides an information pushing apparatus, including:
the data conversion module is used for 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; constructing a bitmap of each row of label values in the label data table to obtain label bitmap data; replacing the data of the corresponding row in the tag data table with each tag bitmap data to obtain a compressed data table;
the data query module is used for acquiring information to be sent and a corresponding target user label, querying corresponding label bitmap data in the compressed data table by using the target user label, and performing bit operation according to the queried label bitmap data to obtain initial user information data; inquiring the 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 problem, the present invention also provides an electronic device, 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 problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the information pushing method described above.
In the embodiment of the invention, the target user tag is used for inquiring corresponding tag bitmap data in the compressed data table, bit operation is carried out according to the inquired tag bitmap data to obtain initial user information data, and the screening of the tag user is converted into the operation of the bitmap data, so that the screening speed of the target user is increased, and the information pushing efficiency of the target user is increased.
Drawings
Fig. 1 is a schematic flowchart of an information pushing method according to an embodiment of the present invention;
fig. 2 is an example table of a tag data table in the information pushing method according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of an information pushing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic internal structural diagram of an electronic device implementing an information pushing method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides an information pushing method. The execution subject of the information push method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiments of the present application. In other words, the information pushing method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: the cloud server can be an independent server, or can be a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Referring to fig. 1, which is a schematic flow diagram of an information pushing method according to an embodiment of the present invention, in an embodiment of the present invention, the information pushing method includes:
s1, acquiring a tag data table, wherein each column of the tag data table has 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 invention, 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 male or a female, or an age tag, such as 90 th and 80 th, or a work type tag, such as "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 present invention can improve the query efficiency of data. 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 00 post tag row, and a student tag row, each column has a corresponding index.
S2, constructing a bitmap of each line of label values in the label data table to obtain label bitmap data;
in detail, in order to increase the computation amount of data and reduce the capacity of data, in the embodiment of the present invention, a bitmap (bitmap) of a tag value in each row in the tag data table is constructed, so as to obtain corresponding tag bitmap data.
Specifically, in the embodiment of the present invention, constructing a bitmap of a tag value of each row in the tag data table to obtain tag bitmap data includes:
step A, counting the number of indexes corresponding to the column where the tag value is located in the tag data table to obtain the number of columns;
optionally, in the embodiment of the present invention, a bitmap is constructed for the tag value, and in order to determine the dimension of a bitmap to be constructed subsequently, the number of indexes corresponding to the column where the tag value is located in the tag data table is counted.
B, constructing blank bitmaps with the same dimensionality according to the number of the columns;
in the embodiment of the present invention, the blank bitmap is a bitmap in which bit values corresponding to all bits are 0.
And step 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 to obtain the corresponding label bitmap data.
In detail, in the embodiment of the present invention, the number of columns is the number of columns where the user names in the tag data table are located, and therefore, the number of columns represents the number of users in the tag data table, and for example, three user name columns including a user a, a user B, and a user C are common in the tag data table, 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 present invention constructs blank bitmaps with the same dimension according to the number of columns. For example, if the number of columns is 3, then the blank bitmap is 000.
Further, in the embodiment of the present invention, the bit value of the corresponding position in the blank bitmap is replaced with 1 according to the index of the column where the preset tag value of each row in the tag data table is located, so as to obtain the corresponding tag bitmap data. Optionally, the tag value in the tag data table in the embodiment of the present invention includes: "yes" and "no", and the preset tag value is "yes".
For example, in one embodiment of the present invention, three rows and three columns are shared in the tag data table, the preset tag value is "yes", indexes corresponding to the first column, the second column, and the third column are sequentially 1, 2, and 3, the tag values of the first column and the third column in the first row are "no", the tag value of the second column is "yes", and then the corresponding tag bitmap data is 010; if the label values of the first column and the third column in the second row are "yes" and the label value of the second column is "no", the corresponding label bitmap data is 101; in the first row, the label value of the first column is "yes", and the label values of the second column and the third column are "no", so that the corresponding label bitmap data is 100.
In another embodiment of the invention, the label bitmap data can be stored in the block link points, and the data taking efficiency is improved according to the characteristic of high throughput of the block link points.
S3, replacing the data of the corresponding row in the label data table with each label bitmap data to obtain a compressed data table;
in detail, in order to reduce the storage resource consumption of a data table, the embodiment of the present invention replaces data of a corresponding row in the tag data table with each tag bitmap data to obtain an initial compressed data table;
further, in order to facilitate query of the label bitmap data of each row in the initial compressed data table, a corresponding row key is constructed for each row of the initial compressed data table by using a preset rule to obtain the compressed data table. Such as: the label of the first row in the compressed data table is "male", then the text "male" is converted into a binary character, resulting in a row key 111010100110111 corresponding to the row.
In another embodiment of the present invention, the label category corresponding to each line of labels may be identified by using an artificial intelligence model, and the current year, the label category, and the label in each line are combined by using preset characters to obtain the row key corresponding to the line change, where if the label category corresponding to the male label is Gender, and the current year is 2021, the corresponding row key is 2021-gentr-man.
S4, acquiring information to be transmitted and a corresponding target user label, inquiring corresponding label bitmap data in the compressed data table by using the target user label, and performing bit operation according to the inquired label bitmap data to obtain initial user information data;
in the embodiment of the present invention, the information to be sent is information that needs to be pushed, and the target user tag is a tag corresponding to a target user corresponding to the information to be sent that is set in advance, and may be one or more tags, such as: after 90, teacher, etc.
In detail, in order to query the label bitmap data of the corresponding row in the compressed data table more quickly, the preset rule is used for constructing a row key corresponding to the target user label 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.
Furthermore, in the embodiment of the invention, 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 query data is reduced, and the query speed is increased.
Further, in the embodiment of the present invention, bit operation is performed on all the query tag data to obtain initial user information data. Specifically, in the embodiment of the present invention, the and operation is performed on all the query tag data to obtain the initial user information data.
For example: if the two pieces of inquiry tag data are 101 and 011, then the two pieces of inquiry tag data are subjected to and operation to obtain the initial user information data: 101&011 ═ 001.
S5, inquiring the user address in the label data table according to the position of the 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 invention, querying a 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 a user address set, includes: inquiring a sign bit corresponding to the bit value 1 in the initial user information data to obtain a target sign bit; and determining the target sign bit as a query index, and querying a user address corresponding to a column where the same index is located in the tag data table by using the query index to obtain the user address set, wherein the user address can be a user ip and a user mobile phone number, and optionally, in the embodiment of the present invention, 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 sign bits are 1, 6, and 8, and further, 1, 6, and 8 are used as the query index. And querying the user addresses with indexes 1, 6 and 8 corresponding to the address index mapping table to obtain a user address set.
In the embodiment of the invention, the tag user screening is converted into the bitmap data calculation, so that the data screening speed is increased, and the subsequent information sending speed is increased.
S6, pushing the information to be sent to each user address in the user address set.
In this embodiment of the present invention, each column of the tag data table contains a user name of a user, and a name corresponding to the information to be sent is needed to be sent to a different user, so that pushing the information to be sent to each user address in the user address set includes:
inquiring the user name in the tag data table added with the index according to the query index corresponding to the user address, and carrying out information name construction on the inquired user name to obtain a target user name; combining a target user name corresponding to the user address with the information to be sent to obtain target information to be sent; and 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 conference on time ', the information title is constructed according to the user name ABC, the target user name is ' respected Mr. ABC/lady ', then the target user name is combined with the information to be sent to obtain the target information to be sent which is ' respected Mr. ABC/lady ', please participate in xx conference on time ', 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 invention, performing information name construction on the queried user name to obtain the target user name, where the method includes: acquiring a standard call text; and replacing a preset field in the standard name text with the inquired user name to obtain the target user name. For example: the standard nominal text is 'respected xx Mr. women', the preset field is 'xx', the user name is 'ABC', and then the corresponding target user name is 'respected ABC Mr. women'.
Further, because different types of user addresses are different, a corresponding information push mode needs to be selected according to the type of the user address, for example: if the user address is a mobile phone number, the corresponding information push mode is short message push; if the user address is the device ip, the corresponding information push mode is push; therefore, in the embodiment of the present invention, the address type of the user address needs to be acquired, and the corresponding information sending method is queried in a preset information sending method comparison table according to the address type to obtain the target sending method, where the information sending method comparison table includes sending methods corresponding to different address types.
Further, the embodiment of the present invention pushes the target information to be sent to the corresponding user address according to the target sending mode.
For example: and if the target to-be-sent information corresponding to the user address is 'honored Mr. ABC/lady, please participate in xx conference on time', the user address is a mobile phone number A, and the target sending mode corresponding to the mobile phone number A is short message, the target to-be-sent information is pushed to the intelligent terminal equipment to which the mobile phone number A belongs by the short message.
Further, in the embodiment of the invention, a preset number of information assembly queues are created by using a preset information middleware; optionally, in the embodiment of the present invention, the preset information middleware is a rocktmq, the preset number is 8, and further, the information assembly queue is used to assemble the user addresses in the user address set, the corresponding target sending modes and the target information to be sent into json format sending data; optionally, in the embodiment of the present invention, the user address set may be stored in a Redis cache, and the user address is read from the Redis cache and written into the information assembly queue, so as to increase the writing speed.
Furthermore, in the embodiment of the present invention, a preset number of information sending queues are created by using a preset information middleware, the target information to be sent in the sending data is sent by using the information sending queues, and the assembling process and the sending process of the information are separately performed, so that asynchronous sending of the information is realized, work nodes corresponding to different queues are flexibly allocated, and the rate of sending the information is further improved.
Fig. 3 is a functional block diagram of the information pushing apparatus according to the present invention.
The information pushing device 100 of the invention can be installed in an electronic device. According to the implemented functions, the information pushing apparatus 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, and refer to a series of computer program segments that can be executed by a processor of an electronic device and can perform fixed functions, and are stored in a memory of the electronic device.
In the present embodiment, the functions regarding 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 label values in the label data table to obtain label bitmap data; replacing the data of the corresponding row in the tag data table with 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 the 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, when the modules in the information pushing apparatus 100 according to the embodiment of the present invention are used, the same technical means as the information pushing method described in fig. 1 is adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 3 is a schematic structural diagram of an electronic device implementing the information push method according to the present invention.
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, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and 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 for storing not only application software installed in the electronic device and various types of data, such as codes of an information pushing program, but also temporarily storing data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (such as information push programs) stored in the memory 11 and calling data stored in the memory 11.
The communication bus 12 may be a PerIPheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
Fig. 3 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 3 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply 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 realized through the power management device. The power source may also include any component of one or more dc or ac power sources, recharging devices, power failure classification circuits, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Optionally, the communication interface 13 may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further include a user interface, which may be a Display (Display), an input unit (such as a Keyboard (Keyboard)), and optionally, a standard wired interface, or 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 device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The information pushing program stored in the memory 11 of the electronic device is a combination of a plurality of computer programs, and when running in the processor 10, can realize:
acquiring a tag data table, wherein each column of the tag data table has 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 label values in the label data table to obtain label bitmap data;
replacing the data of the corresponding row in the tag data table with each tag bitmap data to obtain a compressed data table;
acquiring information to be transmitted and a corresponding target user label, inquiring corresponding label bitmap data in the compressed data table by using the target user label, and performing bit operation according to the inquired label bitmap data to obtain initial user information data;
inquiring the 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 pushing the information to be sent to each user address in the user address set.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, 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 said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program may implement:
acquiring a tag data table, wherein each column of the tag data table has 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 label values in the label data table to obtain label bitmap data;
replacing the data of the corresponding row in the tag data table with each tag bitmap data to obtain a compressed data table;
acquiring information to be transmitted and a corresponding target user label, inquiring corresponding label bitmap data in the compressed data table by using the target user label, and performing bit operation according to the inquired label bitmap data to obtain initial user information data;
inquiring the 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 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 according to the use of the blockchain node, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention 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 block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An information pushing method, characterized in that the method comprises:
acquiring a tag data table, wherein each column of the tag data table has 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 label values in the label data table to obtain label bitmap data;
replacing the data of the corresponding row in the tag data table with each tag bitmap data to obtain a compressed data table;
acquiring information to be transmitted and a corresponding target user label, inquiring corresponding label bitmap data in the compressed data table by using the target user label, and performing bit operation according to the inquired label bitmap data to obtain initial user information data;
inquiring the 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 pushing the information to be sent to each user address in the user address set.
2. The information pushing method of claim 1, wherein the constructing a bitmap of tag values of each row in the tag data table to obtain tag bitmap data comprises:
counting the number of indexes corresponding to the columns where the label values are located in the label data table to obtain the number of the columns;
constructing blank bitmaps with the same dimensionality according to the number of the 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 push method according to claim 1, wherein the searching for the corresponding tag bitmap data in the compressed data table by using the target user tag and performing bit operation according to the searched tag bitmap data to obtain initial user information data comprises:
constructing a row key corresponding to the target user label by using the preset rule to obtain an inquiry row key;
inquiring label bitmap data corresponding to the same row key row in the compressed data table according to the inquiry row key to obtain the inquiry label data;
and performing bit operation on all the query tag data to obtain initial user information data.
4. The information push method according to claim 1, wherein the querying the user address in the tag data table according to the position of the bit value preset in the initial user information data and the index to obtain a user address set comprises:
inquiring a sign bit corresponding to the bit value 1 in the initial user information data to obtain a target sign bit;
and determining the target sign bit as a query index, and querying the user address corresponding to the 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 according to any one of claims 1 to 4, wherein 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 inquiry index corresponding to the user address, and carrying out information name construction on the inquired user name to obtain a target user name;
combining a 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.
6. The information push method according to claim 5, wherein the constructing the information name of the queried user name to obtain the target user name comprises:
acquiring a standard call text;
and replacing a preset field in the standard name text with the inquired user name to obtain the target user name.
7. The information pushing method according to claim 5, wherein the sending the target information to be sent to the corresponding user address comprises:
acquiring the address type of the user address;
inquiring a corresponding information sending mode in a preset information sending mode comparison table according to the address type to obtain a target sending mode;
and pushing the target information to be sent to the corresponding user address according to the target sending mode.
8. An information pushing apparatus, comprising:
the data conversion module is used for 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; constructing a bitmap of each row of label values in the label data table to obtain label bitmap data; replacing the data of the corresponding row in the tag data table with each tag bitmap data to obtain a compressed data table;
the data query module is used for acquiring information to be sent and a corresponding target user label, querying corresponding label bitmap data in the compressed data table by using the target user label, and performing bit operation according to the queried label bitmap data to obtain initial user information data; inquiring the 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.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the information push method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the information pushing method according to any one of claims 1 to 7.
CN202111004826.1A 2021-08-30 2021-08-30 Information pushing method and device, electronic equipment and readable storage medium Active CN113722533B (en)

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 true CN113722533A (en) 2021-11-30
CN113722533B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114582301A (en) * 2022-03-08 2022-06-03 康键信息技术(深圳)有限公司 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114582301A (en) * 2022-03-08 2022-06-03 康键信息技术(深圳)有限公司 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

Also Published As

Publication number Publication date
CN113722533B (en) 2023-10-17

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
CN114979120B (en) Data uploading method, device, equipment and storage medium
CN114491047A (en) Multi-label text classification method and device, electronic equipment and storage medium
CN111897831A (en) Service message generation method and device, electronic equipment and storage medium
CN114185895A (en) Data import and export method and device, electronic equipment and storage medium
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN111651453A (en) User historical behavior query method and device, electronic equipment and storage medium
CN114781832A (en) Course recommendation method and device, electronic equipment and storage medium
CN114186132A (en) Information recommendation method and device, electronic equipment and storage medium
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN113868529A (en) Knowledge recommendation method and device, electronic equipment and readable storage medium
CN112464619B (en) Big data processing method, device and equipment and computer readable storage medium
CN114398346A (en) Data migration method, device, equipment and storage medium
CN113505273A (en) Data sorting method, device, equipment and medium based on repeated data screening
CN115496166A (en) Multitasking method and device, electronic equipment and storage medium
CN114840631A (en) Spatial text query method and device, electronic equipment and storage medium
CN114547011A (en) Data extraction method and device, electronic equipment and storage medium
CN113590856B (en) Label query method and device, electronic equipment and readable storage medium
CN114742423B (en) Random grouping method, device, equipment and medium
CN114969043A (en) Label storage method, device, equipment and storage medium
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN113868285A (en) Data reading method and device, electronic equipment and storage medium
CN114723488A (en) Course recommendation method and device, electronic equipment and storage medium
CN115174555A (en) File transmission method and device, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant