CN104615595B - Data processing method and social media storage platform - Google Patents

Data processing method and social media storage platform Download PDF

Info

Publication number
CN104615595B
CN104615595B CN201310536455.0A CN201310536455A CN104615595B CN 104615595 B CN104615595 B CN 104615595B CN 201310536455 A CN201310536455 A CN 201310536455A CN 104615595 B CN104615595 B CN 104615595B
Authority
CN
China
Prior art keywords
data
good friend
prefix
mark
social media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310536455.0A
Other languages
Chinese (zh)
Other versions
CN104615595A (en
Inventor
邢玉东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201310536455.0A priority Critical patent/CN104615595B/en
Publication of CN104615595A publication Critical patent/CN104615595A/en
Application granted granted Critical
Publication of CN104615595B publication Critical patent/CN104615595B/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Abstract

The invention discloses a kind of data processing method and social media storage platforms, belong to Internet technical field.The described method includes: receiving the data write request of external equipment, the type of corresponding good friend class indication affiliated in social media, the good friend corresponding data to be stored and the data is identified in the data write request including good friend's mark, the good friend;According to the type of the data, increase prefix for the data;According to good friend mark and the class indication, the data for having increased the prefix are stored by the way of classification-Length Value.The present invention is by using above-mentioned technical proposal, distribution Type is not had to inside social platform storage platform, when newly-increased relation chain/grouping, it is directly that data increase prefix in external type according to data, the cumbersome change of code when eliminating distribution type, the efficiency of data processing is improved, use is very flexible.

Description

Data processing method and social media storage platform
Technical field
The present invention relates to Internet technical field, in particular to a kind of data processing method and social media storage platform.
Background technique
With popularizing for Internet service, the development of social media, relation chain is greatly enriched, in order to guarantee social media Normal operation, needing the relationship between data and user by user all to store in the storage platform of social media.
In the social media of the prior art, the user for belonging to same characteristic is divided into a relation chain, it such as can be by microblogging In the people that listens to divide a relation chain into, the people listened to divides another relation chain into.It, can also be according in same relation chain Certain characteristic is divided, such as is listened to be divided into chain and the grouping such as especially listened to, mutually listen;This variety of relation chains are total The platform deposited can be referred to as social media storage platform.In the social media storage platform that various relation chains coexist, two Between user, often may exist a variety of relationships, and as elongated and field the extension of user data is frequent, generallys use Classification-Length Value (Type-Len-Value;TLV mode) carrys out storing data.The use of Type and a relation chain are divided Group coupling, the corresponding relation chain of a usual Type or grouping, further according to external Type to the corresponding relationship of the Type Chain or the data of grouping are stored.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems: above-mentioned existing number According to processing scheme, use and relation chain (or grouping) due to Type are coupled, in social media storage platform when storing data, Every kind of relation chain, which is perhaps grouped one section of Type of distribution, will have corresponding Type to distribute when increasing a kind of relation chain or grouping newly, The cumbersome change of code distributes more troublesome;In especially a kind of relation chain, there are many groupings and in the case of packet ID is not fixed, Need to distinguish is that the time of grouping is for example added in the Type(of which kind of grouping), existing data processing scheme cannot achieve substantially, Therefore existing data processing method is very inflexible.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of data processing methods and social media to deposit Store up platform.The technical solution is as follows:
On the one hand, a kind of data processing method is provided, which comprises
The data write request of external equipment is received, includes good friend's mark, good friend mark in the data write request Know corresponding good friend class indication affiliated in social media, the corresponding data to be stored of the good friend and the data Type;
According to the type of the data, increase prefix for the data;
According to good friend mark and the class indication, stored by the way of classification-Length Value described in having increased The data of prefix.
On the other hand, a kind of social media storage platform is provided, the social media storage platform includes:
Receiving module includes that good friend marks for receiving the data write request of external equipment, in the data write request Know, the good friend identifies corresponding good friend class indication affiliated in social media, the corresponding number to be stored of the good friend According to the type with the data;
Distribution module increases prefix for the type according to the data for the data;
Memory module, for being deposited by the way of classification-Length Value according to good friend mark and the class indication Storage has increased the data of the prefix.
The data processing method and social media storage platform of the embodiment of the present invention, the data by receiving external equipment are write Enter request, includes that good friend identifies, the good friend identifies corresponding good friend point affiliated in social media in the data write request Class mark, the type of the good friend corresponding data and data to be stored;According to the type of the data, before the data increase Sew;According to good friend mark and the class indication, the data for having increased prefix are stored by the way of classification-Length Value.It adopts With the technical solution of the embodiment of the present invention, be able to solve in the prior art when increase a kind of relation chain newly or grouping will have it is corresponding Type distribution, the cumbersome change of code distributes more troublesome defect, using the technical solution of the embodiment of the present invention, in social activity Do not have to distribution Type inside platform storage platform, is directly number in external type according to data when newly-increased relation chain/grouping According to prefix is increased, the cumbersome change of code, improves the efficiency of data processing, use is very flexible when eliminating distribution type. And the technical solution of the embodiment of the present invention can be adapted for having many groupings in a kind of relation chain and packet ID is not fixed situation, No matter how many groupings, even if packet ID is not fixed, still data can effectively be handled according to different prefixes, because The technology of this embodiment of the present invention can effectively guarantee that more relation chain/groupings coexist, and use is very flexible.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the flow chart for the data processing method that one embodiment of the invention provides;
Fig. 2A is customer relationship chain storage inside signal in the storage platform of social media in the prior art provided by the invention Figure;
Fig. 2 B is to store schematic diagram when two kinds of relation chains coexist in the platform of social media in the prior art provided by the invention;
Fig. 2 C is the storage schematic diagram of data processing scheme in social media platform provided by the invention;
Fig. 3 be another embodiment of the present invention provides data processing method flow chart;
Fig. 4 is the structural schematic diagram for the social media storage platform that one embodiment of the invention provides;
Fig. 5 be another embodiment of the present invention provides social media storage platform structural schematic diagram.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is the flow chart for the data processing method that one embodiment of the invention provides.As shown in Figure 1, the number of the present embodiment According to processing method, it can specifically include following steps:
100, the data write request of external equipment is received, includes good friend's mark, good friend mark in the data write request Know the type of corresponding good friend class indication affiliated in social media, the good friend corresponding data and data to be stored;
The class indication of the present embodiment is relation chain mark or packet identification in social media such as microblogging.In microblogging Relation chain can be idol relationship or bean vermicelli relationship etc. relation chain.Good friend is excessive in certain relation chain in order to prevent, also Multiple groupings can be divided into relation chain.The type of data according to actual needs can be in very much, such as can be good for this The time of friend plus the relation chain or the grouping can also be to listen to the time of the good friend, or can also listen to for the good friend Time of active user etc..
The good friend of the present embodiment identifies for unique identification good friend in social media.Such as the contingency table of the present embodiment Know to be the relation chain mark in the mark of relation chain described in social media or social media and the grouping in relation chain Mark, which can determine position of the good friend in social media, belong in this way which relation chain or belong to Which grouping of which relation chain.
101, according to the type of the data, increase prefix for the data;
The step is realized the operation for mapping to internal prefix of external type, avoids internal type distribution, Code changes cumbersome.Specifically, corresponding good friend contingency table affiliated in social media can also be identified with reference to the good friend The type of knowledge and the data is that the data increase prefix, to guarantee the uniqueness of prefix together.
102, according to good friend mark and the class indication, the data for having increased prefix are stored by the way of TLV.
According to good friend mark and the class indication, the data for having increased prefix are stored by the way of TLV, to protect Demonstrate,prove the accuracy of data storage.
The executing subject of the data processing method of the present embodiment is social media storage platform, for storing such as microblogging etc Social media data.
The data processing method of the present embodiment, by receiving the data write request of external equipment, the data write request In include good friend mark, the good friend identify corresponding good friend in social media belonging to class indication, the good friend it is corresponding to The data of storage and the type of data;According to the type of the data, increase prefix for the data;According to good friend mark and this point Class mark, stores the data for having increased prefix by the way of classification-Length Value.Using the technical solution of the present embodiment, energy It is enough to solve there is corresponding Type to distribute when increasing a kind of relation chain or grouping newly in the prior art, the cumbersome change of code, point With more troublesome defect, using the technical solution of the present embodiment, distribution Type is not had to inside social platform storage platform, when It is directly that data increase prefix in external type according to data when newly-increased relation chain/grouping, code when eliminating distribution type Cumbersome change, improve the efficiency of data processing, use is very flexible.And the technical solution of the present embodiment can be adapted for Have many groupings in a kind of relation chain and packet ID be not fixed situation, no matter how many groupings, even if packet ID is not fixed, still Data can effectively be handled according to different prefixes, therefore the technology of the present embodiment can effectively guarantee more relationships Chain/grouping coexists, and use is very flexible.
Optionally, on the basis of the technical solution of above-described embodiment, wherein step 102 " is identified and is somebody's turn to do according to the good friend Class indication stores the data for having increased prefix by the way of TLV ", it can specifically include the following two kinds situation:
The first, when storing the information of the good friend in the corresponding classification of the class indication for the first time, good friend mark is stored With the class indication, and the data for having increased prefix are stored by the way of TLV.That is, front good friend mark and Class indication belongs to the fixed part of data kind, is not stored by the way of TLV.And other extension information of the good friend, such as It is added the time of the classification, browsing record, last access time, time for finally browsing or commenting on etc. extension information can be with It is stored by the way of TLV.
The second, when it is non-store the information of the good friend in the corresponding classification of the class indication for the first time when, according to the good friend mark Knowledge and the class indication, determine the storage location of the data, and by the way of TLV before storage location storage has increased The data sewed.
For example, Fig. 2A is customer relationship chain storage inside in the storage platform of social media in the prior art provided by the invention Schematic diagram.Wherein as shown in Figure 2 A, the Friend1info on the left side indicates the information of good friend 1, and Friend2info indicates good friend's 2 Information, Friend3info indicate the information of good friend 3, and Friendninfo indicates the information of good friend n.The right is with the letter of good friend 1 Storage mode in social media storage platform is described for breath Friend1info.Wherein Uin indicates the mark of the good friend 1; DomainList indicates the relationship of the good friend and oneself.It such as can be idol relationship or bean vermicelli relationship in microblogging. GroupList indicates this there are also the group list divided in corresponding relation chain, such as microblogging is listened to, especially listen to grouping or Person mutually listens grouping etc..Tlv indicates other extension information stored using TLV mode, such as good friend's listening period or receipts Listen the time etc. of the good friend.TLv is the data portion to be written in the present invention program.Fig. 2 B is existing skill provided by the invention Schematic diagram is stored when two kinds of relation chains coexist in social media platform in art.As shown in Figure 2 B, involved in storage shown in Fig. 2 B Two relation chains of the good friend, Domain1 and Domain2.Internal Type and outside are used in Fig. 2 B in social media storage platform The corresponding storage mode of Type externally divides in social media storage platform that is, when outside will be stored there are two the data of Type 2 Type are matched, such as T1 and T2.Corresponding extension information is stored as T1lv, T2Lv.Such storage mode, every increase are a kind of Information is extended, requires to distribute one kind Type in social media storage platform, when the class of storage is excessive, and ID can not be identified When, such method cannot achieve.Fig. 2 C is the storage schematic diagram of data processing scheme in social media platform provided by the invention. As shown in Figure 2 C, internal Type storage indicates, externally distributes 1 Type, when internal maps, the relation chain requested when according to write-in Domain and Type, T in internal automatic mapping at the Type with prefix, such as Domain1_T and Domain2_T.In this way when there is reading When good friend being taken to request, the data of corresponding Domain prefix can be pulled according to the Type of request band, it is convenient to realize, using flexible.
Optionally, on the basis of the technical solution of above-described embodiment, in step 101 " according to the Type of the data, for this Data increase prefix " after, it can also include the corresponding relationship established between the Type of the data and the prefix.
Still optionally further, on the basis of the technical solution of above-described embodiment, it " is identified according to the good friend in step 102 With the class indication, stored by the way of TLV increased prefix data " after, can also include the following steps:
(1) data access request of data access equipment is received, which includes good friend mark and this is good The Type of class indication and data of the friend in the social media;
(2) according to the corresponding relationship between the Type of the data and the prefix, the prefix of the data is obtained;
(3) it is identified according to the prefix of the data and the good friend and obtains the corresponding data of good friend mark;
(4) data are returned to the data access equipment.
All optional technical solutions in above-described embodiment can form this hair using combinable mode any combination Bright alternative embodiment, this is no longer going to repeat them.
The data processing method of above-described embodiment is able to solve in the prior art when increasing a kind of relation chain or grouping newly all There is corresponding Type to distribute, the cumbersome change of code distributes more troublesome defect, using the technical solution of above-described embodiment, Distribution Type is not had to inside social platform storage platform, when newly-increased relation chain/grouping, directly according to data in outside Type is that data increase prefix, and the cumbersome change of code, improves the efficiency of data processing, use is non-when eliminating distribution type Often flexibly.And the technical solution of above-described embodiment can be adapted for having many groupings in a kind of relation chain and packet ID is not fixed Situation, no matter how many groupings, even if packet ID is not fixed, still data can be effectively located according to different prefixes Reason, therefore the technology of above-described embodiment can effectively guarantee that more relation chain/groupings coexist, use is very flexible.
Fig. 3 be another embodiment of the present invention provides data processing method flow chart.The data processing side of the present embodiment Method further introduces the present invention on the basis of technical solution of above-mentioned Fig. 1 embodiment and its alternative embodiment in further detail Technical solution.As shown in figure 3, the data processing method of the present embodiment, can specifically include following steps:
200, when storing the information of certain good friend in the corresponding classification of class indication for the first time, social media deposits platform reception The data write request of external equipment includes that good friend's mark, good friend identify corresponding good friend in social activity in the data write request The type of class indication, good friend corresponding data and data to be stored belonging in media;
201, social media deposits platform according to the type of data, increases prefix for the data;
202, before social media deposits platform and stores good friend mark and the class indication, and use TLV mode has increased The data sewed;
That is, good friend's mark and class indication belong to the fixed part of data kind, do not deposited by the way of TLV Storage.And other extension information of the good friend, be such as added the time of the classification, browsing record, last access time, finally browsing or Time of person's comment etc. extension information can be stored by the way of TLV.
203, when the information of the good friend needs to increase, and certain field is written, i.e., non-for the first time in the corresponding classification of the class indication When the middle information for storing the good friend, social media deposits the data write request that platform receives external equipment again;
It still include good friend's mark, the corresponding good friend of good friend's mark in this received data write request in social media The type of affiliated class indication, good friend corresponding data and data to be stored.
204, social media deposits platform according to the type of the data of this secondary write-in, increases prefix for data;
Such as when storing the information of certain good friend in the corresponding classification of class indication for the first time, if the data of write-in Type is the time that the classification is added, and can distribute the prefix with A_ for it.If the type for the data being written again is last The access time of secondary access can distribute the prefix with B_ for it, to distinguish.
205, social media deposits platform according to good friend mark and class indication, determines the storage location of the data, and adopt The data of prefix have been increased in storage location storage with TLV mode;
206, social media deposits the data access request that platform receives data access equipment, which includes should The Type of the class indication and data of good friend's mark and the good friend in the social media;
207, social media deposits platform according to the corresponding relationship between the Type of the data and the prefix, obtains the data Prefix;
Such as this data access request, request is the last time access time also, is obtained at this time Corresponding prefix is B_.
208, social media deposits platform and obtains good friend mark according to the prefix, good friend mark and class indication of the data The corresponding data;
Platform, which is deposited, such as social media obtains data with prefix B_ of the good friend in the classification.
209, social media deposits platform and returns to the data to the data access equipment.
The data processing method of the present embodiment is able to solve in the prior art by using above-mentioned technical proposal when newly-increased A kind of relation chain or grouping will have corresponding Type to distribute, and the cumbersome change of code distributes more troublesome defect, using this The technical solution of embodiment does not have to distribution Type, when newly-increased relation chain/grouping, directly inside social platform storage platform Increase prefix in external type according to data for data, the cumbersome change of code, improves data when eliminating distribution type The efficiency of processing, use are very flexible.And the technical solution of the present embodiment can be adapted for having many points in a kind of relation chain Group and packet ID are not fixed situation, no matter how many groupings, still can be according to different prefixes pair even if packet ID is not fixed Data are effectively handled, therefore the technical solution of the present embodiment can effectively guarantee that more relation chain/groupings coexist, and are used Very flexibly.
Fig. 4 is the structural schematic diagram for the social media storage platform that one embodiment of the invention provides.As shown in figure 4, this reality The social media storage platform for applying example can specifically include receiving module 10, distribution module 11 and memory module 12.
Wherein receiving module 10 is used to receive the data write request of external equipment, includes good friend in the data write request Mark, the good friend identify corresponding good friend class indication affiliated in social media, the corresponding data to be stored of the good friend With the type of data;Distribution module 11 is connect with receiving module 10, and distribution module 11 is used for according to the received number of receiving module 10 According to the type of the data in write request, increase prefix for the data;Memory module 12 respectively with receiving module 10 and distribution mould Block 11 connects, and memory module 12 is used for according to good friend mark and the contingency table in the received data write request of receiving module 10 Know, the data that distribution module 11 has increased prefix are stored by the way of TLV.
The social media storage platform of the present embodiment, by using above-mentioned module realize data processing realization mechanism with it is upper The realization for stating related method embodiment is identical, can refer to the record of above-mentioned related embodiment in detail, details are not described herein.
The social media storage platform of the present embodiment is written by using above-mentioned module by receiving the data of external equipment It requests, includes that good friend identifies, the good friend identifies corresponding good friend classification affiliated in social media in the data write request Mark, the type of the good friend corresponding data and data to be stored;According to the type of the data, increase prefix for the data; According to good friend mark and the class indication, the data for having increased prefix are stored by the way of classification-Length Value.Using The technical solution of the present embodiment, corresponding Type will be had when increasing a kind of relation chain or grouping newly in the prior art by being able to solve Distribution, the cumbersome change of code distribute more troublesome defect, flat in social platform storage using the technical solution of the present embodiment Distribution Type is not had to inside platform, when newly-increased relation chain/grouping, directly according to data before external type is data increase Sew, the cumbersome change of code, improves the efficiency of data processing, use is very flexible when eliminating distribution type.And this reality The technical solution for applying example can be adapted for having many groupings in a kind of relation chain and packet ID is not fixed situation, no matter how many points Group still can effectively be handled data according to different prefixes even if packet ID is not fixed, therefore the present embodiment Technology can effectively guarantee that more relation chain/groupings coexist, and use is very flexible.
Fig. 5 be another embodiment of the present invention provides social media storage platform structural schematic diagram.As shown in figure 5, this The social media storage platform of embodiment further comprises as follows on the basis of the technical solution of above-mentioned embodiment illustrated in fig. 4 Technical solution.
In the present embodiment, the memory module 12 in social media storage platform is specifically used for ought be for the first time in the class indication When storing the information of the good friend in corresponding classification, good friend mark and the class indication are stored, and store by the way of TLV The data of prefix are increased.That is, the good friend's mark and class indication of front belong to the fixed part of data kind, not It is stored by the way of TLV.And other extension information of the good friend, the time of the classification is such as added, browsing record finally accesses Time, time for finally browsing or commenting on etc. extension information can be stored by the way of TLV.
Or the memory module 12 is specifically used for storing the good friend's in the corresponding classification of the class indication for the first time when non- When information, according to good friend mark and the class indication, the storage location of the data is determined, and deposit by the way of TLV at this Storage space sets the data that storage has increased prefix.
As shown in figure 5, further include establishing module 13 in the social media storage platform of the present embodiment still optionally further, This is established module 13 and establishes the number after increasing prefix for the data for the type in the distribution module 12 according to the data According to type and the prefix between corresponding relationship.
As shown in figure 5, still optionally further, in the social media storage platform of the present embodiment further including obtaining 14 He of module Sending module 15;The receiving module 10 is also used in the memory module 12 according to good friend mark and the class indication, using TLV Mode store the data for having increased prefix after, receive the data access request of data access equipment, which asks Seek the class indication including good friend mark and the good friend in the social media;The acquisition module 14 respectively with establish module 13 It is connected with receiving module 10, obtains module 14 and be used for according to pair between the class indication and the prefix for establishing the foundation of module 13 It should be related to, obtain the prefix of the received data of receiving module 10;And according to the prefix of the data, the good friend mark and it is corresponding Contingency table obtains the good friend and identifies the corresponding data;The sending module 15 is connect with module 14 is obtained, and sending module 15 is used for The data for obtaining module 14 and obtaining are returned to the data access equipment.
Such as the class indication in the present embodiment is the relation chain mark or the social media being somebody's turn to do in the social media In relation chain mark and relation chain in packet identification.
The social media storage platform of the present embodiment, by using above-mentioned module realize data processing realization mechanism with it is upper The realization for stating related method embodiment is identical, can refer to the record of above-mentioned related embodiment in detail, details are not described herein.
The social media storage platform of the present embodiment, all the above alternatives of use, can use can tie Mode any combination of conjunction forms alternative embodiment of the invention, and this is no longer going to repeat them.
The social media storage platform of the present embodiment is able to solve existing skill by using the technical solution of above-mentioned module There will be corresponding Type to distribute when increasing a kind of relation chain or grouping newly in art, the cumbersome change of code distributes more troublesome Defect, using the technical solution of the present embodiment, inside social platform storage platform do not have to distribution Type, when newly-increased relation chain/ It is directly that data increase prefix in external type according to data when grouping, the cumbersome change of code when eliminating distribution type, The efficiency of data processing is improved, use is very flexible.And the technical solution of the present embodiment can be adapted for a kind of relation chain In have many groupings and packet ID is not fixed situation, no matter how many groupings, still can be according to not even if packet ID is not fixed Same prefix effectively handles data, therefore the technology of the present embodiment can effectively guarantee that more relation chain/groupings are total It deposits, use is very flexible.
It should be understood that social media storage platform provided by the above embodiment is in data processing, only with above-mentioned each The division progress of functional module can according to need and for example, in practical application by above-mentioned function distribution by different function Energy module is completed, i.e., the internal structure of platform is divided into different functional modules, to complete whole described above or portion Divide function.In addition, social media storage platform provided by the above embodiment and data processing method embodiment belong to same design, Its specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (6)

1. a kind of data processing method, which is characterized in that the described method includes:
The data write request of external equipment is received, includes good friend's mark, good friend mark pair in the data write request The class of the good friend answered class indication affiliated in social media, the good friend corresponding data to be stored and the data Type, the class indication be the social media in relation chain mark or the social media in relation chain mark and Packet identification in the relation chain;
Using the class indication as the prefix of the type of the data, the data of the prefix have been increased;
According to good friend mark and the class indication, is stored by the way of classification-Length Value and increased the prefix The data;
It is described according to good friend mark and the class indication, stored by the way of classification-Length Value increased it is described The data of prefix, comprising:
When storing the information of the good friend in the corresponding classification of the class indication for the first time, good friend's mark and institute are stored Class indication is stated, and stores the data for having increased the prefix by the way of classification-Length Value;
When it is non-store the information of the good friend in the corresponding classification of the class indication for the first time when, according to the good friend mark and The class indication determines the storage location of the data, and is deposited by the way of classification-Length Value in the storage location Storage has increased the data of the prefix.
2. the method according to claim 1, wherein using the class indication as the type of the data before Sew, after the data for having been increased the prefix, the method also includes:
Establish the corresponding relationship between the type of the data and the prefix.
3. according to the method described in claim 2, it is characterized in that, being used according to good friend mark and the class indication After classification-Length Value mode stores the data for having increased the prefix, the method also includes:
The data access request of data access equipment is received, the data access request includes good friend's mark, the good friend The type of class indication and the data in the social media;
According to the corresponding relationship between the type of the data and the prefix, the prefix of the data is obtained;
The good friend, which is obtained, according to the prefix of the data, good friend mark and the class indication identifies the corresponding number According to;
The data are returned to the data access equipment.
4. a kind of social media storage platform, which is characterized in that the social media storage platform includes:
Receiving module includes good friend's mark, institute in the data write request for receiving the data write request of external equipment It states good friend and identifies corresponding good friend class indication, the corresponding data to be stored of the good friend and institute affiliated in social media The type of data is stated, the class indication is the relation chain mark in the social media or the pass in the social media Packet identification in tethers mark and the relation chain;
Distribution module, for having been increased the prefix using the class indication as the prefix of the type of the data The data;
Memory module, for being stored by the way of classification-Length Value according to good friend mark and the class indication Increase the data of the prefix;
The memory module, specifically for the information of the good friend ought be stored in the corresponding classification of the class indication for the first time When, store good friend mark and the class indication, and stored by the way of classification-Length Value increased it is described before The data sewed;
The memory module, specifically for working as the non-information for storing the good friend in the corresponding classification of the class indication for the first time When, according to good friend mark and the class indication, determine the storage location of the data, and use classification-Length Value Mode has increased the data of the prefix in storage location storage.
5. social media storage platform according to claim 4, which is characterized in that the social media storage platform is also wrapped It includes:
Module is established, is described for the class indication affiliated in social media according to the good friend in the distribution module After data increase prefix, the corresponding relationship between the type of the data and the prefix is established.
6. social media storage platform according to claim 5, which is characterized in that the social media storage platform is also wrapped It includes and obtains module and sending module;
The receiving module is also used in the memory module according to good friend mark and the class indication, using classification- After the mode of Length Value stores the data for having increased the prefix, the data access for receiving data access equipment is asked It asks, the data access request includes class indication in the social media of good friend mark, the good friend and described The type of data;
The acquisition module obtains the data for the corresponding relationship between the type and the prefix according to the data Prefix;And it is corresponding according to the prefix of the data, good friend mark and class indication acquisition good friend's mark The data
The sending module, for returning to the data to the data access equipment.
CN201310536455.0A 2013-11-04 2013-11-04 Data processing method and social media storage platform Active CN104615595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310536455.0A CN104615595B (en) 2013-11-04 2013-11-04 Data processing method and social media storage platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310536455.0A CN104615595B (en) 2013-11-04 2013-11-04 Data processing method and social media storage platform

Publications (2)

Publication Number Publication Date
CN104615595A CN104615595A (en) 2015-05-13
CN104615595B true CN104615595B (en) 2019-07-09

Family

ID=53150046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310536455.0A Active CN104615595B (en) 2013-11-04 2013-11-04 Data processing method and social media storage platform

Country Status (1)

Country Link
CN (1) CN104615595B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106470150B (en) * 2015-08-21 2020-04-24 腾讯科技(深圳)有限公司 Relation chain storage method and device
CN109658277B (en) * 2018-11-30 2022-12-27 华南师范大学 Academic social network friend recommendation method, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515921A (en) * 2008-02-22 2009-08-26 华为技术有限公司 Transparent data management method, data management device and network system
CN102750184A (en) * 2012-06-25 2012-10-24 广东轩辕网络科技股份有限公司 Cloud resource classification and identification system and cloud resource classification and identification method
CN102929893A (en) * 2011-08-12 2013-02-13 腾讯科技(深圳)有限公司 Social network service platform application method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515921A (en) * 2008-02-22 2009-08-26 华为技术有限公司 Transparent data management method, data management device and network system
CN102929893A (en) * 2011-08-12 2013-02-13 腾讯科技(深圳)有限公司 Social network service platform application method and device
CN102750184A (en) * 2012-06-25 2012-10-24 广东轩辕网络科技股份有限公司 Cloud resource classification and identification system and cloud resource classification and identification method

Also Published As

Publication number Publication date
CN104615595A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN101345708B (en) Method and apparatus for generating forwarding table
CN108062202A (en) A kind of file block storage method and system
CN107678918A (en) The OSD heartbeat mechanisms method to set up and device of a kind of distributed file system
CN104298687B (en) A kind of hash partition management method and device
CN104615595B (en) Data processing method and social media storage platform
CN102346747A (en) Method for searching parameters in data model
CN108090165A (en) A kind of acquisition methods of the collection of illustrative plates variation based on embedded chart database
CN109697215A (en) Collecting method, data collection system and nonvolatile computer storage media
CN104765792B (en) A kind of method, apparatus and system of dimension data storage
CN108566411A (en) Static resource acquisition methods, electronic equipment and storage medium
CN107301249A (en) A kind of file access information recording method, system and distributed cluster system
CN102486772A (en) Method and device for exporting data
CN106488055B (en) Calling list rearrangement method, back end equipment and routing node device
CN108897698A (en) A kind of file data blocks addressing method, system and equipment and storage medium
CN109104658A (en) A kind of touch identification method of wireless headset, device and wireless headset
CN106776366B (en) Address access method and device
CN109753227A (en) Storage method, device, mobile terminal, server and readable storage medium storing program for executing
CN104216836B (en) A kind of concurrent reading and concurrent writing method and apparatus of storage system
CN106296241A (en) The method and device of grid division
CN107506473A (en) A kind of big data search method based on cloud computing
CN104850621B (en) A kind of method that road net model automatically generates
CN101464505A (en) Self-collection method for run routing information
CN103765836B (en) Method of data synchronization and node device
CN107872785A (en) Terminal attachment method and system and mobility management entity
CN202960497U (en) Portable 3rd-generation telecommunication (3G) long-distance electrocardiograph (ECG) monitor

Legal Events

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