Movatterモバイル変換


[0]ホーム

URL:


CN106897335A - A kind of storage method of business datum, the generation method of record identifier and device - Google Patents

A kind of storage method of business datum, the generation method of record identifier and device
Download PDF

Info

Publication number
CN106897335A
CN106897335ACN201610488018.XACN201610488018ACN106897335ACN 106897335 ACN106897335 ACN 106897335ACN 201610488018 ACN201610488018 ACN 201610488018ACN 106897335 ACN106897335 ACN 106897335A
Authority
CN
China
Prior art keywords
record identifier
value
service
identification
database
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
CN201610488018.XA
Other languages
Chinese (zh)
Other versions
CN106897335B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding LtdfiledCriticalAlibaba Group Holding Ltd
Priority to CN201610488018.XApriorityCriticalpatent/CN106897335B/en
Publication of CN106897335ApublicationCriticalpatent/CN106897335A/en
Application grantedgrantedCritical
Publication of CN106897335BpublicationCriticalpatent/CN106897335B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

This application discloses a kind of storage method of business datum, the generation method of record identifier and device.The business datum storage method includes:Value according to data identification field in identification database determines record identifier;By the record identifier and the business datum for getting storage in Service Database corresponding with the business datum, so as in the Service Database by business datum described in the record identifier unique mark.In addition; in order that can be by business datum described in record identifier unique mark in obtaining Service Database; generally also need to be used for the value for determining record identifier it is determined that being changed after record identifier; due to determining record identifier by the value in the identification database outside Service Database; and the value has uniqueness due to change; so that identified record identifier is respectively provided with uniqueness in each Service Database of business datum of the business is stored, therefore solve the problems of the prior art.

Description

A kind of storage method of business datum, the generation method of record identifier and device
Technical field
The application is related to database technical field, more particularly to a kind of storage method of business datum, record identifierGeneration method and device.
Background technology
With continuing to develop for Internet technology, the increasing business based on internet is occurred in that, these business existBusiness datum can be produced during Business Processing.For enterprise, generally can by business datum is analyzed comeDetermine the Behavior preference of targeted customer.Therefore in the storing process of business datum, how effectively to carry out storage is a weightThe technical problem wanted.
Prior art is deposited the business datum produced by Business Processing as a record in Service DatabaseStorage, and be this record one corresponding numbering of distribution during storage.Due to numbering tool in the Service DatabaseThere is uniqueness, therefore record can be represented by the way that numbering is unique in the Service Database.For example, carrying out A business in user's firstWhen produced business datum is stored, stored the business datum as a record (referred to herein as recording X) in businessIn database, and it is record X distribution numbering " 317 ", can be by numbering " 317 " come only table in the Service DatabaseShow record X.
In actual applications, when the portfolio of certain business reaches certain scale, it usually needs by multiple parallel industryDatabase is engaged in store the business datum of the business.During using prior art parallel memorizing business datum, can be in each business datumIndependently distribution is numbered in storehouse, this business datum storage mode, may cause appearance between the numbering in different business databaseRepeat, so as to cause in the different business database of business datum of the business is stored, existing cannot uniquely be represented with numberingThe situation of record.
The content of the invention
The embodiment of the present application provides a kind of storage method of business datum, the generation method of record identifier and device, usesNumbering is corresponding with record in multiple different business databases of the business datum for solving to store same business in the prior artProblem.
The embodiment of the present application provides a kind of storage method of business datum, and the method includes:
Value according to data identification field in identification database determines record identifier;
By the record identifier and the business datum for getting storage in business datum corresponding with the business datumIn storehouse, so as in the Service Database by business datum described in the record identifier unique mark.
Preferably, the value according to data identification field in identification database determines that record identifier is specifically included:
The value of data identification field in the identification database is defined as record identifier;Or,
The informative abstract of the value of data identification field in the identification database is calculated, and described information summary is defined asRecord identifier.
Preferably, after record identifier is determined according to the value of data identification field in identification database, methods described is alsoIncluding:
To change for determining that the described value of the record identifier is dull, so as to the value after being changed according to dullness is trueFixed new record identifier.
Preferably, after record identifier is determined according to the value of data identification field in identification database, methods described is alsoIncluding:
By the described value for determining record identifier labeled as first state, so as in the Data Identification of identification databaseIn each different value of field, new record identifier, described second can be determined according to the value for being marked as the second stateState is the state for not being used for determining record identifier.
Preferably, the business datum includes service identification, and the identification database also includes service identification field, instituteThe value for stating service identification field is corresponding with the service identification;
Before record identifier is determined according to the value of data identification field in identification database, methods described also includes:
According to the value of the service identification field corresponding with the service identification in the business datum, it is determined that with the businessThe value of the corresponding data identification field of the value of identification field.
Preferably, the identification database builds by the following method:
Create clear data table and service identification field and data identification field are built in the tables of data;
The value of the service identification field is initialized as the service identification;
The value of the data identification field is initialized as preset value.
The embodiment of the present application also provides a kind of generation method of record identifier, and methods described includes:
Receive the service request of generation record identifier;
Value according to data identification field in identification database generates record identifier, and the data identification fieldValue is it is determined that dull after the record identifier change;
Respond the service request.
The embodiment of the present application also provides a kind of generation method of record identifier, and the record identifier is used for identification serviceData, the business datum includes service identification, and methods described includes:
Receive the service request of generation record identifier;
In identification database, according to the service identification field corresponding with the service identification in the business datumValue, it is determined that the value of the data identification field corresponding with the value of the service identification field;
Record identifier is generated by the value of the data identification field, and the data identification field value it is determined thatIt is dull after the record identifier to change;
Respond the service request.
The embodiment of the present application also provides a kind of storage device of business datum, and the device includes:Determining unit and storageUnit, wherein:
The determining unit, the value according to data identification field in identification database determines record identifier;
The memory cell, by the record identifier and the business datum for getting storage with the business datum pairIn the Service Database answered, so as in the Service Database by business number described in the record identifier unique markAccording to.
The embodiment of the present application also provides a kind of generating means of record identifier, and the device includes:Receiving unit, generation are singleUnit and response unit, wherein:
The receiving unit, receives the service request of generation record identifier;
The generation unit, the value according to data identification field in identification database generates record identifier, and describedThe value of data identification field is it is determined that dull after the record identifier change;
The response unit, responds the service request.
Above-mentioned at least one technical scheme that the embodiment of the present application is used can reach following beneficial effect:
After obtaining business datum, the value according to data identification field in identification database determines record identifier, then willRecord identifier and business datum storage in corresponding Service Database, so as to can be by described in the Service DatabaseBusiness datum described in record identifier unique mark.Additionally, in order that can be by record identifier only in obtaining Service DatabaseThe one mark business datum, generally also needs to be used for the value for determining record identifier it is determined that being changed after record identifierBecome, due to determining record identifier, and the value due to change by the value in the identification database outside Service DatabaseWith uniqueness so that identified record identifier has in each Service Database of business datum of the business is storedThere is uniqueness, therefore solve the problems of the prior art.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this ShenSchematic description and description please does not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
A kind of storage method of business datum that Fig. 1 is provided for the embodiment of the present application implements schematic flow sheet;
A kind of storage method of business datum that Fig. 2 is provided for the embodiment of the present application implements schematic flow sheet;
Fig. 3 respectively holds interactive schematic diagram for a kind of storage method of business datum that the embodiment of the present application is provided;
A kind of generation method of record identifier that Fig. 4 is provided for the embodiment of the present application implements schematic flow sheet;
The schematic diagram of the order number generation that Fig. 5 is provided for the embodiment of the present application;
A kind of concrete structure schematic diagram of the storage device of business datum that Fig. 6 is provided for the embodiment of the present application;
A kind of concrete structure schematic diagram of the generating means of record identifier that Fig. 7 is provided for the embodiment of the present application;
The concrete structure schematic diagram of the generating means of another record identifier that Fig. 8 is provided for the embodiment of the present application.
Specific embodiment
As described above, in the business based on internet, it is one important how business datum to be carried out into effectively storageTechnical problem.
Prior art by the business datum produced by each Business Processing, as an independent record storage in business numberAlso it is this record one corresponding numbering of distribution so that the numbering is in the business number according to storehouse, and during storageAccording in storehouse can unique mark this record.For example, Zhang San carries out business datum that E-Payment business can produce (referred to as businessData Zhang San), Li Si carries out the business datum (referred to as business datum Li Si) that E-Payment business can also be produced, and prior art existsIn storing process, using business datum Zhang San and business datum Li Si as a record storage in Service Database A, andAnd be also one numbering of every record distribution, there is uniqueness in Service Database A due to numbering, therefore in the business numberCorresponding record can uniquely be represented by numbering according in the A of storehouse.
In actual applications, it will usually the larger situation of the portfolio of certain business occur, at this time need to pass throughMultiple parallel Service Databases store the business datum of the business.However, prior art is this only in Service DatabaseThe business datum storage mode of vertical distribution numbering, may be such that the numbering in multiple Service Databases is duplicated, so as to leadCause is stored in each Service Database of the business datum of the business, and numbering cannot uniquely represent a record.With above-mentioned industryAs a example by the storage of business data Zhang San and business datum Li Si, when Service Database A and Service Database B are used to store electronics branchDuring the business datum of the business of paying, if the numbering that business datum Zhang San storage is distributed in Service Database A is aa, business datum LeeThe numbering that four storages are distributed in Service Database B is bb, because Service Database A and Service Database B are independently distributedNumbering, it is possible that aa and bb identicals situation (for example, aa and bb are " 473 "), at this time the numbering cannot only tableShow a record.
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment andCorresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, described embodiment is only the application oneSection Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doingGo out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
Embodiment 1
Embodiment 1 provides a kind of storage method of business datum, and the method can be used for server, can solve existing skillProblem in art.The idiographic flow schematic diagram of the method is as shown in figure 1, comprise the steps:
Step S11:Obtain business datum.
Business datum is generally produced in business procession, and acquisition business datum here can be in Business Processing mistakeBusiness datum is obtained in journey in real time, or business datum is obtained afterwards from the database of storage service data, it is also possible toIt is to obtain business datum otherwise.Usual server obtains business datum and also shows as receiving business datum.For example, rightIn the business datum that acquisition is paid by mails in real time, the usual business datum can also be sent out from financial sectors such as banks to serverThe business datum sent;When service end has multiple servers to provide business, certain server can receive the transmission of other serversBusiness datum.
In actual applications, according to the difference of business, business datum also has varied.For example, instant messaging business mistakeCheng Zhonghui generation business datums, these business datums generally have picture, audio, video, word etc.;Also can in electronic payment processBusiness datum, these business datums is produced to be usually list, bank's day-to-day account etc.;For other types of business, at businessCorresponding business datum is generally also had during reason.
For generally for enterprise, the Behavior preference of targeted customer can be determined by the analysis to business datum, for example,Enterprise can analyze the hobby and deflection of user by the business datum of user's shopping online, therefore business datum has to enterpriseLarger application value.
Step S12:Value according to data identification field in identification database determines record identifier.
Identification database functionally can be also used for according to the mark independently of the Service Database of storage service dataDatabase determines record identifier, and the form of identification database can be oracle database form in actual applications,Can also be MySQL database form, or Excel or other database forms.
In actual applications, the form of record identifier can have various, generally can be using the record mark of digital formKnow symbol (for example, " 517 "), it would however also be possible to employ the record identifier (for example, " acd ") of alphabetical form, it would however also be possible to employ the Chinese ChineseThe record identifier (for example, " first ") of font formula, it is also possible to be combined diversified forms as record identifier (for example, " firstA189 "), it would however also be possible to employ the record identifier of other forms.
Value generally according to data identification field in identification database determines that the method for record identifier can have various, underFace can enumerate several preferred schemes:
Preferred scheme one, record identifier is defined as by the value of data identification field in identification database.
For example, the value of data identification field is " a178 " in identification database, then the record identifier for generating is " a178 ".
This direct value using data identification field in identification database is simple as the mode of record identifier and is easy toRealize, be more applicable under some security requirements application scenarios not high.
Preferred scheme two, the temporal information life that the value combination business datum of data identification field in identification database is producedInto record identifier, the mode of this generation record identifier can generalized time information, need record traffic to process at someMore it is applicable under the scene of time.
For example, traffic handling time is in November, 2014 No. 11, Target Attribute values are " 813 ", the then record identification for generatingSymbol can be " 20141111813 ".Certainly it should be noted that the example is explanation combines the date that business datum is produced,Can also combining target attribute value generation record identifier for the time (such as at 9 points in the morning).Temporal information can regard actual needNot limited herein specific to year, month, day, hour, min, and/or second etc..
Additionally, according to actual needs, Target Attribute values can be combined with other information (for example, user carries out businessArea etc.) generation record identifier, will not enumerate herein.
Preferred scheme three, calculates the informative abstract of the value of data identification field in identification database, and described information is pluckedIt is defined as record identifier, this mode is more applicable under the scene for needing to be maintained secrecy.
In actual applications, the mode for calculating the informative abstract of the value of data identification field in identification database has various,Common can calculate informative abstract by the way of Md5, it would however also be possible to employ hash algorithm calculates informative abstract, it would however also be possible to employOther modes are calculated.
In actual applications, the form of identification database can have various, be as shown in table 1 a form of mark dataStorehouse, the data identification field in the identification database only records a value.
Table 1:The first identification database in practical application
Data identification field
489
In the identification database shown in table 1, data identification field only have recorded a value, can be determined to remember according to the valueRecord identifier.It should be noted that after record identifier is determined according to the value, in order to ensure identified record identifierUniqueness is, it is necessary to the value of data identification field in identification database is changed so that Data Identification word in identification databaseThe value of section is corresponded with identified record identifier.
After being generally used to determine record identifier, the value dullness of data identification field changes in identification databaseBecome, this dull change can be monotonic increase or monotone decreasing.
For example, after record identifier is determined according to the value of data identification field in identification database, using equation belowThe value is carried out into dull change:R '=α × R+ β;Wherein:R is value when determining the record identifier, and R ' is the determination noteDull after record identifier to change the new value for obtaining, α and β is predetermined coefficient, and α is not equal to 0 and β is not equal to when α is equal to 10。
It is monotone decreasing when α is less than 0;It is monotonic increase when α is more than 0.In addition, generally α and β can be respectively provided withIt is 1, so can be used for the bar number of the generated record identifier of record.
It is as shown in table 2 another form of identification database, the data identification field record of the identification database has manyIndividual different value.
Table 2:Second identification database in practical application
In the identification database shown in table 2, data identification field record has multiple different values, it is determined that record identificationFu Hou, can screen not used for the value for determining record identifier in these values, when new record identifier is needed, can be withNew record identifier is determined according to the value for being filtered out.
For the ease of practical operation, being filtered out from each different value of the data identification field of identification database does not haveValue for determining record identifier, generally can be it is determined that after record identifier, will be used to determine the mark of record identifierThe value of the data identification field in database is labeled as first state, and the first state is to have been used for determining record identifierState, that is, first state reflection respective value has been used for determining record identifier.So, when it needs to be determined that new recordDuring identifier, new record identifier can be determined according to the value for being marked as the second state, second state for not by withIn it is determined that the state of record identifier.
For example, the positive integer between the value of data identification field is 1 to n in the table 2, wherein 1 to 1456 has been used for reallyDetermine record identifier, can be labeled as first state (for example, marking red etc.);1457 to n is not used for determining record identifier, can markIt is designated as the second state (being different from first state).So as to,
It is determined that during new Target Attribute values, record mark can be determined according to any one positive integer between 1457 to nKnow symbol.
Step S13:The record identifier and accessed business datum are stored in corresponding Service Database,So as in the Service Database by business datum described in the record identifier unique mark.
Corresponding Service Database mentioned here refers to Service Database corresponding with the business datum.In practical applicationIn, the business datum being typically different needs storage in different Service Databases, for example, the business datum storage of instant messagingIn the Service Database of instant messaging.
In practical application, when record identifier and business datum are stored in Service Database, will can generally rememberRecord identifier is stored in Service Database with business datum as business record, also, for the ease of by record identifierMake a distinction, can also using the record identifier as the business record major key.
In addition, it is necessary to explanation, in practical application it is possible that, will with portion business datum split into many one's share of expenses for a joint undertaking industryBusiness data, these subservice data are respectively stored in the situation in different Service Databases, at this time can also be by each partSubservice data are stored in corresponding Service Database respectively in connection with the record identifier, also, can also be by the record markKnow major key of the symbol as these stored records.
Generally, in order that in Service Database can by record identifier unique mark business datum, it is necessary to shouldRecord identifier is respectively provided with uniqueness in each Service Database of business datum of the business is stored.For example, storing the industryThe Service Database of the business datum of business, there is Service Database X and Service Database Y, and record identifier is " 689 ", if " 689 "Be respectively provided with uniqueness in Service Database X and Service Database Y, then, and in Service Database X and Service Database Y,By one business datum of " 689 " unique mark.
In practical application, in order that obtain record identifier being respectively provided with only in each Service Database of storage service dataOne property, it is determined that after record identifier, will can be used to determine data identification field in the identification database of record identifierValue (referred to herein as desired value) is changed, when so can cause to determine record identifier again, can be according to new targetValue determines new record identifier.According to identification database without the mode for being changed desired value can be similar to stepRapid S12, is not just repeating here.
It should be noted that desired value is changed, with by record identifier and business datum in Service DatabaseThe order of storage can be converted, that is, after record identifier is determined according to desired value, first can be changed the desired valueBecome, then record identifier and business datum are stored in Service Database, it is also possible to first by record identifier and business numberStored according in Service Database, be then changed the desired value, technique effect of the invention is not interfered with.
Further, the order of step S11 and step S12 can also be exchanged, that is, can first determine that record identifier is rightAfter obtain business datum, it is also possible to first obtain business datum determine record identifier again, the technology of the present invention is not interfered with so yetThe realization of effect.
The service memorizing method provided using embodiment 1, after obtaining business datum, according to data mark in identification databaseThe value of section of becoming literate determines record identifier, then by record identifier and business datum storage in corresponding Service Database,So as to can be by business datum described in the record identifier unique mark in the Service Database.Additionally, in order thatCan generally be also needed to for determining record mark by business datum described in record identifier unique mark in Service DatabaseThe value of symbol is known it is determined that be changed after record identifier, due to true by the value in the identification database outside Service DatabaseDetermine record identifier, and the value has uniqueness due to change so that and identified record identifier is storing the businessBusiness datum each Service Database in be respectively provided with uniqueness, therefore solve the problems of the prior art.
For example, the Service Database for storing the business datum of certain business has Service Database M and Service Database N, it is requiredThe business datum to be stored has business datum first and business datum second, if business datum first is stored in Service Database M (referred to asRecord A), by the storage of business datum second Service Database N (referred to as recording B).When being stored according to prior art, due to industryBusiness database M and Service Database N each independently number by distribution, therefore record A may be identical with the numbering of record B, causes thisIn the storing process of the business datum of business, numbering cannot uniquely represent business datum.And according to embodiments herein, due toRecord A is respectively by the identification database P outside Service Database M and Service Database N and record B generates record identificationSymbol, and changing after a record identifier is generated for generating the value of record identifier so that the record A that is generated andThe record identifier for recording B is differed, and is respectively provided with uniqueness, therefore record identifier being capable of unique mark record A or noteRecord B (that is, can unique mark business datum).
From the above, it is seen that the embodiment of the present application also has a kind of new database outside Service Database, i.e.,Identification database, that is, the application constructs a kind of new database, the number outside the Service Database of prior art, alsoInclude data identification field according to storehouse (identification database), and record identification can be determined according to the value in the data identification fieldSymbol, the record identifier is respectively provided with uniqueness in each Service Database of business datum of the business is stored.
Embodiment 2
In actual applications, same enterprise would generally run multiple different business, be produced by these different businessWhen raw business datum is stored, in order that record identifier is unique in the business datum of certain business, generally can be withStored using the business datum storage method of embodiment 2.As shown in Fig. 2 the method and step of embodiment 2 is as follows:
Step S21:Business datum is obtained, the business datum includes the service identification of correspondence business.
For example, obtaining the business datum of E-Payment business, the business datum includes the business mark of E-Payment businessKnow, the service identification can be identified for that the business datum that the business datum is E-Payment business.
Step S22:In identification database, according to the service identification corresponding with the service identification in the business datumThe value of field, it is determined that the value of the data identification field corresponding with the value of the service identification field.
Identification database herein in addition to the data identification field being previously mentioned in including embodiment 1, also including businessIdentification field, the value of the service identification field is corresponding with the service identification in the business datum for being received.
It is as shown in table 3 the identification database in practical application, the identification database includes service identification field and dataIdentification field.
Table 3:The third identification database in practical application
Service identification fieldData identification field
DZZF148
JSTX217
As described in the table 3, the value of wherein service identification field have " DZZF " (representing the service identification paid by mails) and" JSTX " (represents the service identification of instant messaging), and data identification field has each self-corresponding value.
In actual applications, step S22 can be, after business datum is obtained, by the business mark in the business datumKnowledge is matched with each value of service identification field in identification database, and corresponding service identification word is determined according to matching resultThe value of section, then determines the value of corresponding data identification field by the value of the service identification field.
For example, the data provided according to table 3, after the business datum of E-Payment business is obtained, by the business numberService identification (" DZZF ") in is matched with each value of service identification field in identification database, determines corresponding value" DZZF ", then determines that the value of data identification field is " 148 " by " DZZF ".
It should be noted that the value of service identification field is corresponding with the service identification in business datum, this counterpartyFormula has various.For example, in the above example, the value of service identification field is identical with service identification;According to actual needs, can be withThe value of value after service identification is carried out into Md5 as service identification field;Certainly, the value of service identification field and service identification be alsoOther corresponded manners can be used.
Step S23:Record identifier is determined by the value of the data identification field.
Determine that the mode of record identifier is identical with step S12 here by the value of data identification field, here just no longerRepeat one by one.
Certainly, it is determined that after record identifier, it is also possible to by the value of the data identification field for determining record identifierIt is changed.
Step S24:The record identifier and acquired business datum are stored in corresponding Service Database, withJust can be by business datum described in the record identifier unique mark in the Service Database.
The method provided using embodiment 2, because identification database includes data identification field and business markCharacter learning section, after business datum is obtained, by the value of service identification field corresponding with the service identification in business datum, determinesThe value of corresponding data identification field, so that it is determined that record identifier and the storage of business datum is carried out, it is multiple in enterprise operationDuring business, can be used for the storage to the business datum produced by these different business.
It should be further stated that, embodiment 2 includes service identification by an identification database, the identification databaseField and data identification field, so as to realize the storage to the business datum of different business.It is many in enterprise operation in practical applicationDuring individual business, the storage to the business datum produced by these business can also use other modes.For example, can be differentBusiness sets up corresponding identification database, the identification database only needs to include data identification field, when obtaining certain businessDuring business datum, record identifier is generated by identification database corresponding with the business, can thus cause what is generatedRecord identifier, has uniqueness in each Service Database of business datum of the business is stored.
In addition, in practical application, before business datum is obtained, in can by the following method building embodiment 2Identification database:
Step S31:Create clear data table and service identification field and data identification field are built in the tables of data.
Clear data table can be created by Excel in actual applications, it is also possible to which clear data is created by OracleTable, it is also possible to which clear data table is created by MySQL, it is also possible to create clear data table by another way, here notMode to creating clear data table is defined.
Service identification field and data identification field are created in the clear data table for being created.
Step S32:The value of the service identification field is initialized as the service identification of each business.
Step S33:The value of the data identification field is initialized as preset value.
Initialization mentioned here refers to initial assignment.Preset value can set according to actual needs, can be by dataEach value of identification field is initialized as identical preset value (for example, being set to " 1 " preset value), it is also possible to be set to difference.
For example, table 4 is by a kind of identification database created in practical application
Table 4:A kind of identification database created in practical application
Service identification fieldData identification field
Instant messaging is identified1
Pay mark by mails1
In table 4, the value of service identification field is initialized as " instant messaging mark " and " paying mark by mails ", data markThe value of section of becoming literate is initialized as " 1 ".
For the ease of the understanding of this programme, can illustrate below to generation identification database, true using the identification databaseThe storage determined record identifier and carry out business datum is specifically described.
First, generation identification database is illustrated:
1st, a newly-built tables of data a;
Tables of data a is independent mutually with Service Database, here also without the type for limiting tables of data a, tables of data aComprising 2 fields, respectively service identification field and data identification field;
2nd, initialization data table a;
Service identification field initialization is each service identification, and data identification field is initialized as " 1 ".As shown in table 5, it isA kind of example of the table a in practical application.
Table 5:A kind of table a examples in practical application
Service identification fieldData identification field
Order note identification1
Secondly, (after tables of data a) generations, unique identifier is generated according to the identification database in identification database;
3rd, the business datum of order business is obtained, the business datum includes " order note identification ";
4th, " order note identification " is matched with the service attribute value of service identification field in table a, is determined that corresponding value " is orderedSingle mark ", the value for being somebody's turn to do " order note identification " corresponding data identification field is " 1 ", and the task identifier determined according to " 1 " is " 1 ".
5th, the value (i.e. " 1 ") to data identification field carries out dull change.
For example, " 1 " can be changed into " 2 " by way of being incremented by (for example, plus 1).
6th, stored the business datum of task identifier " 1 " and order business as business record in Service Database.
Fig. 3 is interacted for server with user terminal, and to signal that the business datum in interaction is storedFigure.The schematic diagram includes user terminal, server, identification database, Service Database 1 to Service Database N.
Wherein, step S41 is the interaction of user terminal and server.Typically user terminal is to service during being somebody's turn to doDevice submits Business Processing request to, and server carries out the knot of Business Processing and response Business Processing according to Business Processing requestReally, business datum can be produced during these.
It should be noted that user terminal can be mobile phone, individual with the hardware device used in server interaction processComputer (PC), panel computer etc., do not limit this here.
Step S42 is the process that server determines record identifier according to identification database.Business number according to embodiment 2According to storage method, identification database includes service identification field and data identification field.Industry of the server in business datumBusiness mark and the matching result of the value of service identification field, can determine the value of corresponding data identification field, so that it is determined that noteRecord identifier.
Step S43 is the interaction of server and each Service Database.Server is it is determined that after record identifier, lead toCan often be stored in Service Database using the record identifier and business datum as a business record, and shouldRecord identifier as this business record major key.After business datum is stored, server can also be according to the record markKnow symbol and the business record is inquired about in Service Database.
Embodiment 3
The embodiment of the present application 4 provides a kind of generation method of record identifier, the record identifier energy of the method generationThe storage of the business datum being enough in the embodiment of the present application.As shown in figure 4, the method includes:
Step S51:Receive the service request of generation record identifier.
In practical application, the not only storage of business datum is needed by the record identifier unique mark business datum,Other application scenes, for example, in process of exchange, product or service generally identify each transaction by order number,The order number can be to be generated record identifier.
Step S52:Value according to data identification field in identification database determines record identifier, and the data markThe value of section of becoming literate is it is determined that dull after the record identifier change.
It is determined that dull after record identifier change, the mode of dullness change can be with for the value of data identification field hereIt is same as Example 1, in addition, the value according to data identification field determines that the mode of record identifier can also be with the phase of real-time example 1Together, just no longer repeat one by one here.
Step S53:Respond the service request.
It is determined that after record identifier, responding the service request.
The method provided using the embodiment of the present application 3, due to data identification field value it is determined that record identifier itAfter change so that according to the value generate record identifier there is uniqueness, for solve the problems of the prior art established basePlinth.
It is illustrated in figure 5 in actuals (or service) process of exchange, record identifier (order is generated by the methodNumber) schematic diagram.In Figure 5, commodity shop-assistant A is by counting in equipment B (can be PC, mobile phone etc.) is calculated, by mark dataRecord identifier is determined in storehouse.
It should be noted that the record identifier that embodiment 3 is generated, can be used for the storing process acceptance of the bid of business datumKnow business datum, ordinary business practice data include the service identification of correspondence business.At this time, identification database includes Data Identification wordSection and service identification field, the value of the service identification field are corresponding with the service identification in business datum.
Then, after the service request that step S51 receives generation record identifier, according to objective attribute target attribute in step S52Before value determines record identifier, the method also includes:In identification database, according to the business datum in business markThe value of sensible corresponding service identification field, it is determined that the data identification field corresponding with the value of the service identification fieldValue.
Can so cause, the record mark of the business datum of different business by same identification database, can be generatedKnow symbol, be easy to practical application.
Embodiment 4
The embodiment of the present application 4 provides a kind of storage device of business datum, and the device can be used for solving in the prior artProblem.As shown in fig. 6, the device 60 includes:Determining unit 601 and memory cell 602, wherein:
The determining unit 601, the value according to data identification field in identification database determines record identifier;
The memory cell 602, by the record identifier and the business datum for getting storage with the business numberAccording to corresponding Service Database, so as in the Service Database by business described in the record identifier unique markData.
Device 60 provided using the embodiment of the present application 3, because the device 60 uses invention same as Example 1Design, therefore technique effect same as Example 1 can be obtained.In addition, the device 60 can also pass through in actual applicationsWith reference to specific hardware device, other beneficial effects are obtained.For example, can be stored in the form of cluster cache in service endIdentification database, can so accelerate the access speed to the identification database, be easy to determine record mark according to identification databaseSymbol is known, so that the storage speed of business datum is accelerated.
In actual applications, the determining unit 601 can include determining that subelement 6011, for by the mark dataThe value of data identification field is defined as record identifier in storehouse.In actual applications, it is this determine record identifier mode justIn realization.
The determining unit 601 can also include determination subelement 6012, for calculating data in the identification databaseThe informative abstract of the value of identification field, and described information summary is defined as record identifier.The information being so calculatedSummary can be used as record identifier under security requirement scene higher.
The device 60 can also include that first changes unit 603, will be used to determine record after the determining unit 601The described value of identifier is dull to be changed, so as to the value after being changed according to dullness determines new record identifier.
The device 60 can also include that second changes unit 604, will be used to determine record after the determining unit 601The described value of identifier is labeled as first state, so as in each different value of the data identification field of identification database,New record identifier can be determined according to the value for being marked as the second state, second state is not to be used for determining recordThe state of identifier.
Unit 604, the data identification field in by identification database are changed by the first change unit 603 or secondValue determine record identifier after, will be used to determine that the value of record identifier is changed so that determine record identifier againWhen, new record identifier can directly be determined according to the record identifier after change.
Embodiment 5
The embodiment of the present application 5 provides a kind of generating means of record identifier.As shown in fig. 7, described device 70 includes:Receiving unit 701, generation unit 702 and response unit 703, wherein:
The receiving unit 701, receives the service request of generation record identifier;
The generation unit 702, the value according to data identification field in identification database generates record identifier, and instituteThe value of data identification field is stated it is determined that dull after the record identifier change;
The response unit 703, responds the service request.
The device 70 provided using the embodiment of the present application 5, because the device 70 uses invention structure same as Example 3Think, therefore, it is possible to obtain the implementation result in embodiment 3.In addition, in actual applications, the device 70 passes through combined with hardware equipmentObtain other implementation results.For example, in the storing process of business datum, the device 70 can be arranged in into service serverOutside server in, the record identifier generated by device 70 in the server, then consolidated traffic server is to industryBusiness data are stored, and can so accelerate the memory rate of business datum.
It should be noted that when the record identifier that the device 70 is generated is used for storage service data, due to business numberAccording to the service identification for generally including correspondence business, therefore, the device 70 can also be in actual applications device 80.Such as Fig. 8 institutesShow, described device 80 includes:Second receiving unit 801, desired value determining unit 802, the second generation unit 803 and the second soundUnit 804 is answered, wherein:
Second receiving unit 801, receives the service request of generation record identifier;
Desired value determining unit 802, in identification database, according to corresponding with the service identification in the business datumService identification field value, it is determined that the value of the data identification field corresponding with the value of the service identification field;
Second generation unit 803, record identifier, and the data mark are generated by the value of the data identification fieldThe value of section of becoming literate is it is determined that dull after the record identifier change;
Second response unit 804, responds the service request.
The device 70 by same identification database, can generally generate the record identification of the business datum of different businessSymbol, is easy to practical application.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer programProduct.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardwareApply the form of example.And, the application can be used and wherein include the computer of computer usable program code at one or moreThe computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is producedThe form of product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present applicationFigure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructionsThe combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be providedThe processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produceA raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devicesThe device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spyIn determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include fingerMake the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram orThe function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meterSeries of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer orThe instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram oneThe step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, netNetwork interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/orThe forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable mediumExample.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any methodOr technology realizes information Store.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), movesState random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasableProgrammable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatusOr any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Defined according to herein, calculatedMachine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to nonexcludabilityComprising so that process, method, commodity or equipment including a series of key elements not only include those key elements, but also wrappingInclude other key elements being not expressly set out, or also include for this process, method, commodity or equipment is intrinsic wantsElement.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including key elementAlso there is other identical element in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardwareForm.And, the application can be used to be can use in one or more computers for wherein including computer usable program code and depositedThe shape of the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)Formula.
Embodiments herein is these are only, the application is not limited to.To those skilled in the art,The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent,Improve etc., within the scope of should be included in claims hereof.

Claims (10)

CN201610488018.XA2016-06-282016-06-28Service data storage method, record identifier generation method and deviceActiveCN106897335B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610488018.XACN106897335B (en)2016-06-282016-06-28Service data storage method, record identifier generation method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610488018.XACN106897335B (en)2016-06-282016-06-28Service data storage method, record identifier generation method and device

Publications (2)

Publication NumberPublication Date
CN106897335Atrue CN106897335A (en)2017-06-27
CN106897335B CN106897335B (en)2020-11-27

Family

ID=59190557

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610488018.XAActiveCN106897335B (en)2016-06-282016-06-28Service data storage method, record identifier generation method and device

Country Status (1)

CountryLink
CN (1)CN106897335B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107622079A (en)*2017-07-282018-01-23阿里巴巴集团控股有限公司Data storage, querying method and device
CN108228817A (en)*2017-12-292018-06-29华为技术有限公司Data processing method, device and system
CN109710609A (en)*2018-12-142019-05-03中国平安人寿保险股份有限公司Generate the method and device of tables of data mark
CN110020040A (en)*2017-08-172019-07-16北京京东尚科信息技术有限公司Inquire the methods, devices and systems of data
CN110096436A (en)*2019-04-122019-08-06深圳壹账通智能科技有限公司Test method, device, medium and equipment based on data-pushing compensation function
WO2019174190A1 (en)*2018-03-152019-09-19平安科技(深圳)有限公司Method for importing data back, apparatus, computer device and storage medium
CN110263816A (en)*2019-05-282019-09-20阿里巴巴集团控股有限公司A kind of classification method and device of enterprise
CN111930738A (en)*2020-01-162020-11-13杭州隼目信息科技有限公司Intelligent shunting processing method for form data
CN113742334A (en)*2020-06-292021-12-03北京沃东天骏信息技术有限公司Data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102035865A (en)*2009-09-302011-04-27阿里巴巴集团控股有限公司Data storing and addressing methods, systems and equipment
CN102436479A (en)*2011-10-122012-05-02远光软件股份有限公司Method and system for generating globally unique data identifier
CN104769555A (en)*2012-06-182015-07-08艾克特菲欧有限公司 Enhanced Data Management Virtualization System
CN105447023A (en)*2014-08-252016-03-30阿里巴巴集团控股有限公司Service identifier generation method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102035865A (en)*2009-09-302011-04-27阿里巴巴集团控股有限公司Data storing and addressing methods, systems and equipment
CN102436479A (en)*2011-10-122012-05-02远光软件股份有限公司Method and system for generating globally unique data identifier
CN104769555A (en)*2012-06-182015-07-08艾克特菲欧有限公司 Enhanced Data Management Virtualization System
CN105447023A (en)*2014-08-252016-03-30阿里巴巴集团控股有限公司Service identifier generation method and apparatus

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107622079A (en)*2017-07-282018-01-23阿里巴巴集团控股有限公司Data storage, querying method and device
CN110020040A (en)*2017-08-172019-07-16北京京东尚科信息技术有限公司Inquire the methods, devices and systems of data
CN110020040B (en)*2017-08-172021-07-06北京京东尚科信息技术有限公司Method, device and system for querying data
CN108228817B (en)*2017-12-292021-12-03华为技术有限公司Data processing method, device and system
CN108228817A (en)*2017-12-292018-06-29华为技术有限公司Data processing method, device and system
US11550769B2 (en)2017-12-292023-01-10Huawei Technologies Co., Ltd.Data processing method, apparatus, and system
WO2019174190A1 (en)*2018-03-152019-09-19平安科技(深圳)有限公司Method for importing data back, apparatus, computer device and storage medium
CN109710609A (en)*2018-12-142019-05-03中国平安人寿保险股份有限公司Generate the method and device of tables of data mark
CN109710609B (en)*2018-12-142023-08-08中国平安人寿保险股份有限公司Method and device for generating data table identification
CN110096436A (en)*2019-04-122019-08-06深圳壹账通智能科技有限公司Test method, device, medium and equipment based on data-pushing compensation function
CN110263816A (en)*2019-05-282019-09-20阿里巴巴集团控股有限公司A kind of classification method and device of enterprise
CN110263816B (en)*2019-05-282024-01-19创新先进技术有限公司Enterprise classification method and device
CN111930738A (en)*2020-01-162020-11-13杭州隼目信息科技有限公司Intelligent shunting processing method for form data
CN113742334A (en)*2020-06-292021-12-03北京沃东天骏信息技术有限公司Data processing method and device

Also Published As

Publication numberPublication date
CN106897335B (en)2020-11-27

Similar Documents

PublicationPublication DateTitle
CN106897335A (en)A kind of storage method of business datum, the generation method of record identifier and device
US11379826B2 (en)Method, apparatus and electronic device for blockchain transactions
US20130297412A1 (en)Delivering personalized recommendations that relate to transactions on display
CN111125266A (en)Data processing method, device, equipment and storage medium
CN107346463B (en)Method and device for training risk control model and determining model input data
CN110197445A (en)Generation, querying method, computer equipment and the storage medium of intellectual property state
CN111046052B (en)Method, device and equipment for storing operation records in database
WO2019177788A1 (en)Detecting alterations of journal data structures
WO2018065411A1 (en)Computer system
WO2018072619A1 (en)Resource scheduling method, device, and system
CN119416765A (en) Method, device, equipment, storage medium and program product for generating voucher template
CN114138787A (en) A barcode identification method, equipment and medium
CN110347678A (en)A kind of storage method of finance data, system, device and equipment
CN107066588A (en)A kind of database and corresponding method and apparatus
US20190266526A1 (en)Multi-dimensional organization of data for efficient analysis
CN114493551B (en)Contract generation method and device, electronic equipment and storage medium
CN111738815A (en)Financial information conversion and accounting method and device, computer equipment and storage medium
CN107391533A (en)Generate the method and device of graphic data base Query Result
CN111143546A (en)Method and device for obtaining recommendation language and electronic equipment
CN115423597A (en)Truck ETC financial data intelligence wind control decision big data system and method
CN108984606A (en)A kind of company information classified display system and method
CN107016028A (en)Data processing method and its equipment
CN111429251A (en)Method and device for processing data under multiple modes
AU2018100566A4 (en)Decentralized financial intelligence based on decentralized consensus and anonymized transaction history
CN106649566A (en)Serial number generation method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right

Effective date of registration:20200924

Address after:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after:Innovative advanced technology Co.,Ltd.

Address before:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before:Advanced innovation technology Co.,Ltd.

Effective date of registration:20200924

Address after:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after:Advanced innovation technology Co.,Ltd.

Address before:A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before:Alibaba Group Holding Ltd.

TA01Transfer of patent application right
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp