CN104133871A - Method and device for processing subscription information - Google Patents

Method and device for processing subscription information Download PDF

Info

Publication number
CN104133871A
CN104133871A CN201410348666.6A CN201410348666A CN104133871A CN 104133871 A CN104133871 A CN 104133871A CN 201410348666 A CN201410348666 A CN 201410348666A CN 104133871 A CN104133871 A CN 104133871A
Authority
CN
China
Prior art keywords
mark
content provider
subscription
subscriber
record
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
CN201410348666.6A
Other languages
Chinese (zh)
Other versions
CN104133871B (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.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201410348666.6A priority Critical patent/CN104133871B/en
Publication of CN104133871A publication Critical patent/CN104133871A/en
Application granted granted Critical
Publication of CN104133871B publication Critical patent/CN104133871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events

Abstract

The invention discloses a method and a device for processing subscription information, and belongs to the technical field of computers. The method comprises the following steps that: a subscription request sent by a terminal is received, and a first identification corresponding to a subscriber and a second identification corresponding to a content provider are carried in the subscription request; a corresponding relationship of the first identification and the second identification is used as a subscription record to be respectively stored in a subscriber identification and content provider identification corresponding relationship using a subscriber identification as a main key and a subscriber identification and content provider identification corresponding relationship using a content provider identification as a main key; and in a corresponding relationship of the content provider identification and the content provider subscription record total number, the subscription record total number corresponding to the second identification is subjected to one adding operation. The method and the device for processing subscription information have the advantages that the query process and the subscription and unsubscription writing-in process are separated; the efficiency of the query process is improved; and the time consumed in the query process is reduced.

Description

A kind of method and device of processing subscription information
Technical field
The present invention relates to field of computer technology, particularly a kind of method and device of processing subscription information.
Background technology
Along with the development of computer technology, user's life has been enriched in the appearance of online voice and video platform greatly, wherein in this platform, provides the content of multimedia such as video frequency program or audio program to user.In online voice and video platform, the user that class of subscriber is subscriber's classification can subscribe to the content of multimedia that it provides for the user of content provider's classification to class of subscriber.The content of multimedia that the user of the user of subscriber's classification or content provider's classification can oneself subscribe to by the mark inquiry of self or the subscription record sum that the content of multimedia self providing is provided.
In the database of Subscriber, store specially subscription information table, for storing the corresponding relation of subscriber's mark and content provider's mark.Inquire about the subscription of self subscribing to while recording the user of subscriber's classification, be identified at according to subscriber the subscription record that inquiry packet in subscription information table is effective status containing subscriber's mark and state; In user's query subscription when sum record of content provider's classification, be identified in subscription information table inquiry packet containing the subscription record of content provider's mark according to content provider, and obtain subscribing to record sum by cumulative the quantity of the subscription record inquiring.
Inventor finds that prior art at least exists following problem:
Because the user base number of online voice and video platform is extremely huge, therefore the query manipulation carrying out in subscription information table, and user is to other operations of carrying out in this subscription information table, as subscription operation and the operation that cancels subscriptions, can cause great burden to Subscriber.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of method and device of processing subscription information.Described technical scheme is as follows:
On the one hand, provide a kind of method of processing subscription information, described method comprises:
The subscribe request that receiving terminal sends, carries the first mark corresponding to subscriber and the second mark corresponding to content provider in described subscribe request;
Using the corresponding relation of described the first mark and described the second mark as a subscription record, be stored in respectively with subscriber and be designated subscriber's mark of major key and the corresponding relation of content provider's mark and be designated in subscriber's mark of major key and the corresponding relation of content provider's mark with content provider;
Record in total corresponding relation and to identify corresponding subscription by described second and record sum and add an operation in content provider mark and content provider's subscription.
Optionally, described method comprises:
The inquiry request for subscription information that receiving terminal sends, carries mark classification and the 3rd mark in described inquiry request; Wherein, in subscription information, include the subscription record between the user of subscriber's classification and the user of content provider's classification;
In the time identifying described mark classification for subscriber's classification, in buffer memory, whether inquiry there is subscription record corresponding to described the 3rd mark; If do not inquired, identify in the corresponding relation identifying with content provider the subscription record that inquiry packet identifies containing the described the 3rd and state is effective status the subscriber who is designated major key with subscriber;
When identifying described mark classification when content provider's classification, record in content provider's mark and content provider's subscription that in total corresponding relation, to inquire about subscription record corresponding to described the 3rd mark total.
Optionally, described in the corresponding relation that subscriber identifies and content provider identifies that is designated major key with subscriber, after the subscription that inquiry packet identifies containing the described the 3rd and state is effective status is recorded, described method also comprises:
The subscription record inquiring is stored in buffer memory, and the subscription inquiring described in arranging is recorded in the effective time in described buffer memory.
Optionally, described method also comprises:
The request of cancelling subscriptions that receiving terminal sends, carries the 4th mark and the 5th mark corresponding to content provider corresponding to subscriber in described subscribe request;
Identify in the corresponding relation identifying with content provider the subscriber who is designated major key with subscriber, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
Identify in the corresponding relation identifying with content provider the subscriber who is designated major key with content provider, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
Record in total corresponding relation and to identify corresponding subscription by the described the 5th and record sum and subtract an operation in content provider mark and content provider's subscription.
Optionally, described method also comprises:
Periodically according to the corresponding relation of subscriber's mark with content provider's mark that is designated major key with content provider, content provider's mark and content provider's subscription are recorded in total corresponding relation to content provider and identify corresponding subscription and record sum and upgrade and revise.
On the other hand, provide a kind of device of processing subscription information, described device comprises:
The first receiver module, the subscribe request sending for receiving terminal, carries the first mark corresponding to subscriber and the second mark corresponding to content provider in described subscribe request;
The first memory module, be used for using the corresponding relation of described the first mark and described the second mark as a subscription record, be stored in respectively with subscriber and be designated subscriber's mark of major key and the corresponding relation of content provider's mark and be designated in subscriber's mark of major key and the corresponding relation of content provider's mark with content provider;
The first processing module, identifies corresponding subscription by described second and records sum and add an operation for record total corresponding relation in content provider mark and content provider's subscription.
Optionally, described device also comprises:
The second receiver module, the inquiry request for subscription information sending for receiving terminal, carries mark classification and the 3rd mark in described inquiry request; Wherein, in subscription information, include the subscription record between the user of subscriber's classification and the user of content provider's classification;
The first enquiry module, in the time identifying described mark classification for subscriber's classification, in buffer memory, whether inquiry there is subscription record corresponding to described the 3rd mark; If do not inquired, identify in the corresponding relation identifying with content provider the subscription record that inquiry packet identifies containing the described the 3rd and state is effective status the subscriber who is designated major key with subscriber;
The second enquiry module, for when identifying described mark classification when content provider's classification, records in content provider's mark and content provider's subscription that in total corresponding relation, to inquire about subscription record corresponding to described the 3rd mark total.
Optionally, described device also comprises:
The second memory module, for the subscription record inquiring is stored in to buffer memory, and the subscription inquiring described in arranging is recorded in the effective time in described buffer memory.
Optionally, described device also comprises:
The 3rd receiver module, the request of cancelling subscriptions sending for receiving terminal, carries the 4th mark and the 5th mark corresponding to content provider corresponding to subscriber in described subscribe request;
The first change module, for be designated subscriber's mark of major key and the corresponding relation that content provider identifies with subscriber, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
The second change module, for be designated subscriber's mark of major key and the corresponding relation that content provider identifies with content provider, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
The second processing module, identifies corresponding subscription by the described the 5th and records sum and subtract an operation for record total corresponding relation in content provider mark and content provider's subscription.
Optionally, described device also comprises:
Update module,, content provider's mark and content provider's subscription are recorded in total corresponding relation to content provider and identify corresponding subscription and record sum and upgrade and revise according to the corresponding relation of subscriber's mark with content provider's mark that is designated major key with content provider for periodically.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By managing respectively subscribing in the subscription information table that record is stored in respectively in subscription information table corresponding to subscriber and content provider is corresponding, and directly record total corresponding relation in content provider's mark with content provider's subscription and increase each content provider's subscription sum, to at directly query contents supplier's subscription sum in this subscription record of when inquiry, improved inquiry velocity.In addition, for fear of large data level, other adds to subscribe to record or cancel subscriptions and records in operating process the Data Update mistake easily occurring, also can periodically record total corresponding relation to content provider's mark and content provider's subscription and safeguard.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of the processing subscription information that provides of the embodiment of the present invention one;
Fig. 2 adds the method flow diagram of subscribing to record in the method for the processing subscription information that provides of the embodiment of the present invention two;
Fig. 3 is the method flow diagram of query subscription record in the method for the processing subscription information that provides of the embodiment of the present invention three;
Fig. 4 is the method flow diagram of record of cancelling subscriptions in the method for the processing subscription information that provides of the embodiment of the present invention four;
Fig. 5 is the apparatus structure schematic diagram of the processing subscription information that provides of the embodiment of the present invention five.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The embodiment of the present invention provides a kind of method of processing subscription information, and referring to Fig. 1, method flow comprises:
101: the subscribe request that receiving terminal sends, in subscribe request, carry the first mark corresponding to subscriber and the second mark corresponding to content provider;
102: using the corresponding relation of the first mark and the second mark as a subscription record, be stored in respectively with subscriber and be designated subscriber's mark of major key and the corresponding relation of content provider's mark and be designated in subscriber's mark of major key and the corresponding relation of content provider's mark with content provider;
103: record and in total corresponding relation, subscription corresponding the second mark is recorded to sum and add an operation in content provider mark and content provider's subscription.
Enforcement scene for the embodiment of the present invention can include but not limited to: online education platform, audio-visual amusement platform.Wherein, online education platform middle school student's class of subscriber is subscriber's classification, and teacher's class of subscriber is content provider's classification, the online course that student can watch the teacher of subscription to provide in this online education platform; In audio-visual amusement platform, user's class of subscriber is subscriber's classification, and main broadcaster's class of subscriber is content provider's classification, the content of multimedia that user can watch the main broadcaster of subscription to provide in this audio-visual amusement platform.
Wherein, in the database of Subscriber, preserve in advance three tables, be respectively subscription information table corresponding to subscriber, the subscription sum table that the subscription information table that content provider is corresponding and content provider are corresponding.
In subscription information table corresponding to subscriber, store the corresponding relation that is designated subscriber's mark with content provider's mark of major key with subscriber, in subscription information table corresponding to this subscriber every subscribes to and in record, can also preserve this subscription and record corresponding state, for identifying the validity of this subscription record, i.e. effective status or disarmed state; Can also preserve the change time of this record.Wherein, be designated the major key of this table with subscriber,, in the time being designated search key by subscriber and inquiring about, can improve the inquiry velocity in this table.
In subscription information table corresponding to content provider, store the corresponding relation that is designated subscriber's mark with content provider's mark of major key with subscriber, in subscription information table corresponding to this subscriber every subscribes to and in record, can also preserve this subscription and record corresponding state, for identifying the validity of this subscription record, i.e. effective status or disarmed state; Can also preserve the change time of this record.Wherein, be designated the major key of this table with content provider,, in the time being designated search key by content provider and inquiring about, can improve the inquiry velocity in this table.
Subscription sum corresponding to content provider stores content provider's mark in showing and records total corresponding relation with content provider's subscription.
In the embodiment of the present invention, add the process of subscribing to record, manage respectively subscribing in the subscription information table that record is stored in respectively in subscription information table corresponding to subscriber and content provider is corresponding, and directly record total corresponding relation in content provider's mark with content provider's subscription and increase each content provider's subscription sum, to at directly query contents supplier's subscription sum in this subscription record of when inquiry, improved inquiry velocity.In addition, for fear of large data level, other adds to subscribe to record or cancel subscriptions and records in operating process the Data Update mistake easily occurring, also can periodically record total corresponding relation to content provider's mark and content provider's subscription and safeguard.
Embodiment bis-
The embodiment of the present invention provides in a kind of method of processing subscription information adds the method for subscribing to record, and referring to Fig. 2, method flow comprises:
201: the subscribe request that receiving terminal sends, in subscribe request, carry the first mark corresponding to subscriber and the second mark corresponding to content provider.
202: using the corresponding relation of described the first mark and described the second mark as a subscription record, be stored in respectively with subscriber and be designated subscriber's mark of major key and the corresponding relation of content provider's mark and be designated in subscriber's mark of major key and the corresponding relation of content provider's mark with content provider.
The corresponding relation of the first mark and the second mark is stored in subscription information table corresponding to subscriber, and the state that this corresponding relation is stored in subscription in subscription information table corresponding to subscriber record is set to effective status, and it is the current time by change set of time.
The corresponding relation of the first mark and the second mark is stored in subscription information table corresponding to subscribed person, and the state that this corresponding relation is stored in subscription in subscription information table corresponding to subscriber record is set to effective status, and it is the current time by change set of time.
203: record and in total corresponding relation, subscription corresponding the second mark is recorded to sum and add an operation in content provider mark and content provider's subscription.
Preferably, in the subscription information table corresponding to subscriber and subscription information table corresponding to content provider, add in the operating process of subscribing to record and cancelling subscriptions record, record sum and make mistakes for fear of subscribing in subscription corresponding to the content provider who too much causes due to operating process sum table, a kind of method that subscription sum table corresponding to content provider safeguarded is also provided in the embodiment of the present invention, and the method step is not restricted to the time sequencing in said process.
204: periodically according to the corresponding relation of subscriber's mark with content provider's mark that is designated major key with content provider, content provider's mark and content provider's subscription are recorded in total corresponding relation to content provider and identify corresponding subscription and record sum and upgrade and revise.
In the embodiment of the present invention, add the process of subscribing to record, manage respectively subscribing in the subscription information table that record is stored in respectively in subscription information table corresponding to subscriber and content provider is corresponding, and directly record total corresponding relation in content provider's mark with content provider's subscription and increase each content provider's subscription sum, to at directly query contents supplier's subscription sum in this subscription record of when inquiry, improved inquiry velocity.In addition, for fear of large data level, other adds to subscribe to record or cancel subscriptions and records in operating process the Data Update mistake easily occurring, also can periodically record total corresponding relation to content provider's mark and content provider's subscription and safeguard.
Embodiment tri-
The embodiment of the present invention provides the method for query subscription record in a kind of method of processing subscription information, and referring to Fig. 3, method flow comprises:
301: the inquiry request for subscription information that receiving terminal sends, in inquiry request, carry mark classification and the 3rd mark; Wherein, in subscription information, include the subscription record between the user of subscriber's classification and the user of content provider's classification.
302: in the time identifying mark classification for subscriber's classification, in buffer memory, whether inquiry exists subscription record corresponding to the 3rd mark.
Wherein, in buffer memory, store the subscription record that subscriber inquired about before default effective time, the subscription record of storing in buffer memory comprises that subscriber identifies the corresponding relation identifying with content provider, each subscribes to record all can arrange effective time, in the time that arrive in effective time, in buffer memory, can delete this subscription record.
303: have subscription record corresponding to the 3rd mark if inquired in buffer memory, the subscription this being inquired record returns to terminal as Query Result.
304: if do not inquired, identify in the corresponding relation identifying with content provider the subscription record that inquiry packet identifies containing the 3rd and state is effective status the subscriber who is designated major key with subscriber.
Query script is to inquire about in subscription information table corresponding to subscriber, is designated search key with the 3rd, and in the corresponding relation of subscriber's mark and content provider's mark, inquiry comprises the subscription record of the 3rd mark.
305: if comprise the 3rd mark and state as the subscription record of effective status being designated taking subscriber to inquire in the subscriber mark of major key and the corresponding relation of content provider's mark, the subscription record inquiring is returned to terminal as Query Result.
306: the subscription record inquiring is stored in buffer memory, and the subscription that setting inquires is recorded in the effective time in buffer memory.
In the time that arrive in effective time, this subscription record being stored in buffer memory is deleted.
307: when identifying mark classification when content provider's classification, record in content provider's mark and content provider's subscription that in total corresponding relation, to inquire about subscription record corresponding to the 3rd mark total.
Query script is to inquire about in subscription sum table corresponding to content provider.
308: the subscription record sum inquiring is returned to terminal as Query Result.
The embodiment of the present invention judges by the mark classification in the inquiry request for subscription information, in the time that mark classification is subscriber's classification, in buffer memory, whether inquiry there is subscription record corresponding to the 3rd mark, if there is no in the corresponding relation that subscriber identifies and content provider identifies that is designated major key with subscriber, inquires about subscription record corresponding to the 3rd mark; In mark classification while be content provider's classification, record and in total corresponding relation, inquire about subscription corresponding to the 3rd mark and record total in content provider's mark and content provider's subscription.These two kinds of inquiry modes for different classes of user, can distinguish query script and subscription and the ablation process cancelling subscriptions, and have improved the efficiency of query script, have reduced the time that query script consumes.
Embodiment tetra-
The embodiment of the present invention provides a kind of method that cancels subscriptions and record in method of processing subscription information, and referring to Fig. 4, method flow comprises:
401: the request of cancelling subscriptions that receiving terminal sends, in subscribe request, carry the 4th mark and the 5th mark corresponding to content provider corresponding to subscriber.
402: identify in the corresponding relation identifying with content provider the subscriber who is designated major key with subscriber, inquiry packet identifies the subscription record of corresponding relation containing the 4th mark and the 5th, and the state in the subscription record inquiring is changed to disarmed state.
Wherein, in subscription information table corresponding to subscriber, and state in the subscription record that comprises the 4th mark and the 5th mark corresponding relation is set to disarmed state, and is the current time by changing set of time.
403: identify in the corresponding relation identifying with content provider the subscriber who is designated major key with content provider, inquiry packet identifies the subscription record of corresponding relation containing the 4th mark and the 5th, and the state in the subscription record inquiring is changed to disarmed state.
Wherein, in subscription information table corresponding to subscribed person, and state in the subscription record that comprises the 4th mark and the 5th mark corresponding relation is set to disarmed state, and is the current time by changing set of time.
404: record in total corresponding relation and to identify corresponding subscription by the 5th and record sum and subtract an operation in content provider mark and content provider's subscription.
In subscription corresponding to content provider sum table, inquire about subscription record corresponding to the 5th mark, and subscription corresponding to the 5th mark in this subscription record subtracts an operation in recording sum.
The process of the record that cancels subscriptions in the embodiment of the present invention is managed respectively respectively subscribing to record in subscription information table corresponding to subscriber and in subscription information table corresponding to content provider.And directly record total corresponding relation in content provider's mark and content provider's subscription and delete each content provider's subscription sum so that in the time of inquiry direct query contents supplier's subscription sum in this subscription record, improved inquiry velocity.
Embodiment five
The embodiment of the present invention provides a kind of device of processing subscription information, and referring to Fig. 5, this device comprises:
The first receiver module 501, the subscribe request sending for receiving terminal, carries the first mark corresponding to subscriber and the second mark corresponding to content provider in described subscribe request;
The first memory module 502, be used for using the corresponding relation of described the first mark and described the second mark as a subscription record, be stored in respectively with subscriber and be designated subscriber's mark of major key and the corresponding relation of content provider's mark and be designated in subscriber's mark of major key and the corresponding relation of content provider's mark with content provider;
The first processing module 503, identifies corresponding subscription by described second and records sum and add an operation for record total corresponding relation in content provider mark and content provider's subscription.
Wherein, described device also comprises:
The second receiver module 504, the inquiry request for subscription information sending for receiving terminal, carries mark classification and the 3rd mark in described inquiry request; Wherein, in subscription information, include the subscription record between the user of subscriber's classification and the user of content provider's classification;
The first enquiry module 505, in the time identifying described mark classification for subscriber's classification, in buffer memory, whether inquiry there is subscription record corresponding to described the 3rd mark; If do not inquired, identify in the corresponding relation identifying with content provider the subscription record that inquiry packet identifies containing the described the 3rd and state is effective status the subscriber who is designated major key with subscriber;
The second enquiry module 506, for when identifying described mark classification when content provider's classification, records in content provider's mark and content provider's subscription that in total corresponding relation, to inquire about subscription record corresponding to described the 3rd mark total.
Wherein, described device also comprises:
The second memory module 507, for the subscription record inquiring is stored in to buffer memory, and the subscription inquiring described in arranging is recorded in the effective time in described buffer memory.
Wherein, described device also comprises:
The 3rd receiver module 508, the request of cancelling subscriptions sending for receiving terminal, carries the 4th mark and the 5th mark corresponding to content provider corresponding to subscriber in described subscribe request;
The first change module 509, for be designated subscriber's mark of major key and the corresponding relation that content provider identifies with subscriber, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
The second change module 510, for be designated subscriber's mark of major key and the corresponding relation that content provider identifies with content provider, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
The second processing module 511, identifies corresponding subscription by the described the 5th and records sum and subtract an operation for record total corresponding relation in content provider mark and content provider's subscription.
Wherein, described device also comprises:
Update module 512,, content provider's mark and content provider's subscription are recorded in total corresponding relation to content provider and identify corresponding subscription and record sum and upgrade and revise according to the corresponding relation of subscriber's mark with content provider's mark that is designated major key with content provider for periodically.
In the embodiment of the present invention, add and subscribe to record and the process of the record that cancels subscriptions, in subscription information table corresponding to subscriber and in subscription information table corresponding to content provider, manage respectively respectively subscribing to record, and directly record total corresponding relation increase or delete each content provider's subscription sum in content provider's mark and content provider's subscription, to at directly query contents supplier's subscription sum in this subscription record of when inquiry, improved inquiry velocity.In addition, for fear of large data level, other adds to subscribe to record or cancel subscriptions and records in operating process the Data Update mistake easily occurring, also can periodically record total corresponding relation to content provider's mark and content provider's subscription and safeguard.
In addition, judge by the mark classification in the inquiry request for subscription information, in the time that mark classification is subscriber, in buffer memory, whether inquiry there is the subscription record of the first mark correspondence, if there is no in the corresponding relation that subscriber identifies and content provider identifies that is designated major key with subscriber, inquires about subscription record corresponding to the first mark; In mark classification while be content provider, record and in total corresponding relation, inquire about subscription corresponding to the first mark and record total in content provider's mark and content provider's subscription.These two kinds of inquiry modes for different classes of user, can distinguish query script and subscription and the ablation process cancelling subscriptions, and have improved the efficiency of query script, have reduced the time that query script consumes.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a method of processing subscription information, is characterized in that, described method comprises:
The subscribe request that receiving terminal sends, carries the first mark corresponding to subscriber and the second mark corresponding to content provider in described subscribe request;
Using the corresponding relation of described the first mark and described the second mark as a subscription record, be stored in respectively with subscriber and be designated subscriber's mark of major key and the corresponding relation of content provider's mark and be designated in subscriber's mark of major key and the corresponding relation of content provider's mark with content provider;
Record in total corresponding relation and to identify corresponding subscription by described second and record sum and add an operation in content provider mark and content provider's subscription.
2. method according to claim 1, is characterized in that, described method comprises:
The inquiry request for subscription information that receiving terminal sends, carries mark classification and the 3rd mark in described inquiry request; Wherein, in subscription information, include the subscription record between the user of subscriber's classification and the user of content provider's classification;
In the time identifying described mark classification for subscriber's classification, in buffer memory, whether inquiry there is subscription record corresponding to described the 3rd mark; If do not inquired, identify in the corresponding relation identifying with content provider the subscription record that inquiry packet identifies containing the described the 3rd and state is effective status the subscriber who is designated major key with subscriber;
When identifying described mark classification when content provider's classification, record in content provider's mark and content provider's subscription that in total corresponding relation, to inquire about subscription record corresponding to described the 3rd mark total.
3. method according to claim 1, it is characterized in that, described in the corresponding relation that subscriber identifies and content provider identifies that is designated major key with subscriber, after the subscription that inquiry packet identifies containing the described the 3rd and state is effective status is recorded, described method also comprises:
The subscription record inquiring is stored in buffer memory, and the subscription inquiring described in arranging is recorded in the effective time in described buffer memory.
4. method according to claim 1, is characterized in that, described method also comprises:
The request of cancelling subscriptions that receiving terminal sends, carries the 4th mark and the 5th mark corresponding to content provider corresponding to subscriber in described subscribe request;
Identify in the corresponding relation identifying with content provider the subscriber who is designated major key with subscriber, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
Identify in the corresponding relation identifying with content provider the subscriber who is designated major key with content provider, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
Record in total corresponding relation and to identify corresponding subscription by the described the 5th and record sum and subtract an operation in content provider mark and content provider's subscription.
5. method according to claim 1, is characterized in that, described method also comprises:
Periodically according to the corresponding relation of subscriber's mark with content provider's mark that is designated major key with content provider, content provider's mark and content provider's subscription are recorded in total corresponding relation to content provider and identify corresponding subscription and record sum and upgrade and revise.
6. a device of processing subscription information, is characterized in that, described device comprises:
The first receiver module, the subscribe request sending for receiving terminal, carries the first mark corresponding to subscriber and the second mark corresponding to content provider in described subscribe request;
The first memory module, be used for using the corresponding relation of described the first mark and described the second mark as a subscription record, be stored in respectively with subscriber and be designated subscriber's mark of major key and the corresponding relation of content provider's mark and be designated in subscriber's mark of major key and the corresponding relation of content provider's mark with content provider;
The first processing module, identifies corresponding subscription by described second and records sum and add an operation for record total corresponding relation in content provider mark and content provider's subscription.
7. device according to claim 6, is characterized in that, described device also comprises:
The second receiver module, the inquiry request for subscription information sending for receiving terminal, carries mark classification and the 3rd mark in described inquiry request; Wherein, in subscription information, include the subscription record between the user of subscriber's classification and the user of content provider's classification;
The first enquiry module, in the time identifying described mark classification for subscriber's classification, in buffer memory, whether inquiry there is subscription record corresponding to described the 3rd mark; If do not inquired, identify in the corresponding relation identifying with content provider the subscription record that inquiry packet identifies containing the described the 3rd and state is effective status the subscriber who is designated major key with subscriber;
The second enquiry module, for when identifying described mark classification when content provider's classification, records in content provider's mark and content provider's subscription that in total corresponding relation, to inquire about subscription record corresponding to described the 3rd mark total.
8. device according to claim 6, is characterized in that, described device also comprises:
The second memory module, for the subscription record inquiring is stored in to buffer memory, and the subscription inquiring described in arranging is recorded in the effective time in described buffer memory.
9. device according to claim 6, is characterized in that, described device also comprises:
The 3rd receiver module, the request of cancelling subscriptions sending for receiving terminal, carries the 4th mark and the 5th mark corresponding to content provider corresponding to subscriber in described subscribe request;
The first change module, for be designated subscriber's mark of major key and the corresponding relation that content provider identifies with subscriber, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
The second change module, for be designated subscriber's mark of major key and the corresponding relation that content provider identifies with content provider, inquiry packet identifies the subscription record of corresponding relation containing described the 4th mark and the described the 5th, and the state in the subscription record inquiring is changed to disarmed state;
The second processing module, identifies corresponding subscription by the described the 5th and records sum and subtract an operation for record total corresponding relation in content provider mark and content provider's subscription.
10. device according to claim 6, is characterized in that, described device also comprises:
Update module,, content provider's mark and content provider's subscription are recorded in total corresponding relation to content provider and identify corresponding subscription and record sum and upgrade and revise according to the corresponding relation of subscriber's mark with content provider's mark that is designated major key with content provider for periodically.
CN201410348666.6A 2014-07-21 2014-07-21 A kind of method and device of processing subscription information Active CN104133871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410348666.6A CN104133871B (en) 2014-07-21 2014-07-21 A kind of method and device of processing subscription information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410348666.6A CN104133871B (en) 2014-07-21 2014-07-21 A kind of method and device of processing subscription information

Publications (2)

Publication Number Publication Date
CN104133871A true CN104133871A (en) 2014-11-05
CN104133871B CN104133871B (en) 2018-09-18

Family

ID=51806549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410348666.6A Active CN104133871B (en) 2014-07-21 2014-07-21 A kind of method and device of processing subscription information

Country Status (1)

Country Link
CN (1) CN104133871B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740337A (en) * 2016-01-22 2016-07-06 东南大学 Rapid event matching method in content-based publishing subscription system
CN105791082A (en) * 2014-12-23 2016-07-20 阿里巴巴集团控股有限公司 Message transmission method and device thereof based on message oriented middleware between computer clusters
CN106303734A (en) * 2016-08-29 2017-01-04 上海银天下科技有限公司 Main broadcaster's method for subscribing and device
CN107918673A (en) * 2017-12-12 2018-04-17 腾讯科技(深圳)有限公司 Subscribe to data processing method, device, storage medium and computer equipment
CN108418779A (en) * 2017-02-10 2018-08-17 华为技术有限公司 A kind of method and relevant device of the real-time Communication for Power in Internet of Things
CN112597164A (en) * 2020-12-26 2021-04-02 中国农业银行股份有限公司 Identification distribution method and device
CN114520832A (en) * 2020-11-19 2022-05-20 腾讯科技(深圳)有限公司 Data stream processing method, device, equipment and computer storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127941A (en) * 2006-08-18 2008-02-20 华为技术有限公司 A method and management center server for subscribing mobile service for groups

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127941A (en) * 2006-08-18 2008-02-20 华为技术有限公司 A method and management center server for subscribing mobile service for groups

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱晓萍: "基于RSS技术的图书馆信息发布与订阅系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑(电子期刊)》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791082A (en) * 2014-12-23 2016-07-20 阿里巴巴集团控股有限公司 Message transmission method and device thereof based on message oriented middleware between computer clusters
CN105791082B (en) * 2014-12-23 2019-08-02 阿里巴巴集团控股有限公司 Method for message transmission and its device between computer cluster based on message-oriented middleware
CN105740337A (en) * 2016-01-22 2016-07-06 东南大学 Rapid event matching method in content-based publishing subscription system
CN105740337B (en) * 2016-01-22 2019-03-12 东南大学 A kind of event fast matching method in distribution subscription system based on content
CN106303734A (en) * 2016-08-29 2017-01-04 上海银天下科技有限公司 Main broadcaster's method for subscribing and device
CN108418779A (en) * 2017-02-10 2018-08-17 华为技术有限公司 A kind of method and relevant device of the real-time Communication for Power in Internet of Things
CN108418779B (en) * 2017-02-10 2020-12-08 华为技术有限公司 Method for real-time communication in Internet of things and related equipment
CN107918673A (en) * 2017-12-12 2018-04-17 腾讯科技(深圳)有限公司 Subscribe to data processing method, device, storage medium and computer equipment
CN107918673B (en) * 2017-12-12 2022-11-04 腾讯科技(深圳)有限公司 Subscription data processing method and device, storage medium and computer equipment
CN114520832A (en) * 2020-11-19 2022-05-20 腾讯科技(深圳)有限公司 Data stream processing method, device, equipment and computer storage medium
CN114520832B (en) * 2020-11-19 2023-08-25 腾讯科技(深圳)有限公司 Data stream processing method, device, equipment and computer storage medium
CN112597164A (en) * 2020-12-26 2021-04-02 中国农业银行股份有限公司 Identification distribution method and device

Also Published As

Publication number Publication date
CN104133871B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN104133871A (en) Method and device for processing subscription information
CN105897946B (en) A kind of acquisition methods and system of access address
CN102750365B (en) Retrieval method and system of instant voice messages, user device and server
US20120254229A1 (en) Determining potential relationships between individuals
CN106682006B (en) Information prompting method and device about communication content
CN101339642A (en) Multi-party interactive automatized electronic business system
CN106101358A (en) A kind of method of contact person information updating and smart machine
CN103369408B (en) Method for the content channel using user feedback
CN105956009B (en) A method of do something for the occasion in real time content matching and push
CN110889263A (en) Document backlog generation method, device, equipment and storage medium
CN111813900A (en) Multi-turn conversation processing method and device, electronic equipment and storage medium
CN104750729A (en) Data management method and system based on journal file
CN104184824B (en) Mobile phone newspaper customizes and the device and method of push
CN106648899A (en) Cloud computing storage method and device based on surplus storage space of terminal device
CN108259314A (en) Information-pushing method and device
CN107770037A (en) By group chat Content Transformation into the method for seminar, server, terminal and system
US20130253989A1 (en) Using the inheritance of professional-social network information to facilitate organizational position changes
CN109062578B (en) Development platform based on APP modularization
CN103391276B (en) The method of display and control and device
CN108874495A (en) Theme resource conversion method and device and electronic equipment
CN104808896A (en) Data processing method and system
CN112601129B (en) Video interaction system, method and receiving terminal
CN102681883A (en) Resource calling method and system in media asset searching and browsing system
CN105653593A (en) Intellectual property data management system and sharing method based on social friends
CN104243455A (en) Method and system for processing image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210114

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511446 28th floor, block B1, Wanda Plaza, Wanbo business district, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.