CN108388598A - Electronic device, date storage method and storage medium - Google Patents
Electronic device, date storage method and storage medium Download PDFInfo
- Publication number
- CN108388598A CN108388598A CN201810102247.2A CN201810102247A CN108388598A CN 108388598 A CN108388598 A CN 108388598A CN 201810102247 A CN201810102247 A CN 201810102247A CN 108388598 A CN108388598 A CN 108388598A
- Authority
- CN
- China
- Prior art keywords
- data
- stored
- field
- code character
- predetermined
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2291—User-Defined Types; Storage management thereof
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of electronic device, date storage method and storage mediums, by analyzing whether data to be stored has determining service attribute, and after analyzing the data to be stored and there is determining service attribute, the data to be stored is replaced with into first object according to predetermined first transformation rule and converts field, after analyzing the data to be stored and not having determining service attribute, the data to be stored is replaced with by the second targeted transformation field according to predetermined second transformation rule;The first object is converted into field or the second targeted transformation field is stored in predetermined database.Data space can be saved, and easy to implement.
Description
Technical field
The present invention relates to a kind of technical field of data storage more particularly to electronic device, date storage method and storages to be situated between
Matter.
Background technology
With the development of computer communication technology, the application of every field is required for depositing a large amount of data information
Storage, typically with predetermined data structure, such as tables of data, view, sequence data structure storage are in the storage of database
In structure, such as table space, section, range storage organization.In practical applications, the data stored in data structure usually require to borrow
It helps a series of code character to be indicated (coding symbol corresponds to the index being made of the String field of different length), causes
A large amount of memory space is occupied, and there are database manipulation process complexity, the readable poor problems of data.
Invention content
In view of this, a kind of electronic device of present invention proposition, date storage method and storage medium, can save data and deposit
Store up space and easy to implement.
First, to achieve the above object, the present invention proposes a kind of electronic device, the electronic device include memory and
The processor being connect with the memory, the processor is for executing the data recording program stored on the memory, institute
It states when data recording program is executed by the processor and realizes following steps:
Whether A1, analysis data to be stored have determining service attribute;
It, will according to predetermined first transformation rule if A2, the data to be stored have determining service attribute
The data to be stored replaces with first object conversion field, and the data to be stored is first object code character, and described the
One targeted transformation field is less than the first object code character;
If A3, the data to be stored do not have determining service attribute, according to predetermined second transformation rule
The data to be stored is replaced with into the second targeted transformation field, the data to be stored is the second target code character, described
Second targeted transformation field is less than the second target code character;
A4, the first object is converted to field or the predetermined database of the second targeted transformation field deposit
In.
Further, in the step A2, it is described according to predetermined first transformation rule by the number to be stored
According to the step of replacing with first object conversion field, including:
Obtain the mapping table between predetermined code character and corresponding conversion field;
Judge to whether there is and the matched first object code character of the data to be stored in the mapping table;
If in the presence of the corresponding first object conversion field of the first object code character being obtained, by the number to be stored
It is that the first object converts field according to the matched partial replacement of first object code character;
If being not present and the matched first object code field of the data to be stored, basis in the mapping table
Field create-rule is converted to generate and the matched first object conversion field of the data to be stored;
The first object that the data to be stored is replaced with to the generation converts field.
Further, it is described by the data to be stored replace with the generation first object convert field the step of it
Afterwards, further include following steps:
The correspondence for establishing the data to be stored and the first object conversion field of generation, by the correspondence of foundation
It is stored in the mapping table.
Further, in the step A3, it is described according to predetermined second transformation rule by the number to be stored
According to the step of replacing with the second targeted transformation field, including:
According to predetermined hash algorithm, determine that the corresponding cryptographic Hash of the data to be stored, the cryptographic Hash are institute
State the second targeted transformation field.
Further, the first object conversion field and the second targeted transformation field are the number of preset length
Combination.
In addition, to achieve the above object, the present invention also proposes a kind of date storage method, and the method includes walking as follows
Suddenly:
Whether S1, analysis data to be stored have determining service attribute;
It, will according to predetermined first transformation rule if S2, the data to be stored have determining service attribute
The data to be stored replaces with first object conversion field, and the data to be stored is first object code character, and described the
One targeted transformation field is less than the first object code character;
If S3, the data to be stored do not have determining service attribute, according to predetermined second transformation rule
The data to be stored is replaced with into the second targeted transformation field, the data to be stored is the second target code character, described
Second targeted transformation field is less than the second target code character;
S4, the first object is converted to field or the predetermined database of the second targeted transformation field deposit
In.
Further, in the step S2, it is described according to predetermined first transformation rule by the number to be stored
According to the step of replacing with first object conversion field, including:
Obtain the mapping table between predetermined code character and corresponding conversion field;
Judge to whether there is and the matched first object code character of the data to be stored in the mapping table;
If in the presence of the corresponding first object conversion field of the first object code character being obtained, by the number to be stored
It is that the first object converts field according to the matched partial replacement of first object code character;
If being not present and the matched first object code field of the data to be stored, basis in the mapping table
Field create-rule is converted to generate and the matched first object conversion field of the data to be stored;
The first object that the data to be stored is replaced with to the generation converts field.
Further, it is described by the data to be stored replace with the generation first object convert field the step of it
Afterwards, further include following steps:
The correspondence for establishing the data to be stored and the first object conversion field of generation, by the correspondence of foundation
It is stored in the mapping table.
Further, in the step A3, it is described according to predetermined second transformation rule by the number to be stored
According to the step of replacing with the second targeted transformation field, including:
According to predetermined hash algorithm, determine that the corresponding cryptographic Hash of the data to be stored, the cryptographic Hash are institute
State the second targeted transformation field.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Storage medium is stored with data recording program, and the data recording program can be executed by least one processor so that it is described extremely
A few processor is executed such as the step of above-mentioned date storage method.
Compared to the prior art, electronic device proposed by the invention, date storage method and storage medium pass through analysis
Whether data to be stored has determining service attribute, and has determining service attribute analyzing the data to be stored
Afterwards, the data to be stored is replaced with by first object according to predetermined first transformation rule and converts field, analyzed
After the data to be stored does not have determining service attribute, according to predetermined second transformation rule by the number to be stored
According to replacing with the second targeted transformation field;The first object is converted into field or the second targeted transformation field deposit is advance
In determining database.Data space can be saved, and easy to implement.
Description of the drawings
Fig. 1 is the schematic diagram of one optional hardware structure of electronic device proposed by the present invention;
Fig. 2 is the program module schematic diagram of data recording program in one embodiment of electronic device of the present invention;
Fig. 3 is the implementing procedure figure of date storage method preferred embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
The every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as indicating or implying its relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection domain within.
As shown in fig.1, being one optional hardware structure schematic diagram of electronic device proposed by the present invention.In the present embodiment,
Electronic device 10 may include, but be not limited only to, can be in communication with each other by communication bus 14 memory 11 of connection, processor 12,
Network interface 13.It should be pointed out that Fig. 1 illustrates only the electronic device 10 with component 11-14, it should be understood that
It is not required for implementing all components shown, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes at least a type of computer readable storage medium, computer readable storage medium
Including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), quiet
State random access storage device (SRAM), electrically erasable programmable read-only memory (EEPROM), can be compiled read-only memory (ROM)
Journey read-only memory (PROM), magnetic storage, disk, CD etc..In some embodiments, memory 11 can be electronics dress
Set 10 internal storage unit, such as the hard disk or memory of electronic device 10.In further embodiments, memory 11 can also
It is the outer packet storage device of electronic device 10, such as the plug-in type hard disk being equipped on electronic device 10, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, it stores
Device 11 can also both include electronic device 10 internal storage unit and also including its outer packet storage device.In the present embodiment, storage
Device 11 is installed on the operating system and types of applications software of electronic device 10, such as data recording program etc. commonly used in storage.
In addition, memory 11 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.Processor 12 is commonly used in control electronic device 10
Overall operation.In the present embodiment, the program code or processing data that processor 12 is used to store in run memory 11, such as
The data recording program etc. of operation.
Network interface 13 may include that radio network interface or wired network interface, network interface 13 are commonly used in filling in electronics
It sets and establishes communication connection between 10 and other electronic equipments.
Communication bus 14 is for realizing the communication connection between component 11-13.
Fig. 1 illustrates only the electronic device 10 with component 11-14 and data recording program, it should be understood that
It is not required for implementing all components shown, the implementation that can be substituted is more or less component.
Optionally, electronic device 10 can also include user interface (not shown in figure 1), and user interface may include display
Device, input unit such as keyboard, wherein user interface can also be including standard wireline interface and wireless interface etc..
Optionally, in some embodiments, display can be that light-emitting diode display, liquid crystal display, touch control type LCD are shown
Device and OLED touch device etc..Further, display is alternatively referred to as display screen or display unit, for being shown in electronic device
Information is handled in 10 and for showing visual user interface.
In one embodiment, when the data recording program stored in memory 11 is executed by processor 12, following behaviour is realized
Make:
A, whether analysis data to be stored has determining service attribute;
In the present embodiment, after the instruction for receiving storage data, data recording program loads first be generated in advance
Mapping table, during deposit caches, data to be stored refers to data to be stored with determination with determining service attribute
Memory space and data to be stored have determining business meaning, such as the code character of service call side, the coding of service side
Character, the code character etc. for calling path.
If B, the data to be stored has determining service attribute, according to predetermined first transformation rule by institute
State data to be stored replace with first object conversion field, the data to be stored be first object code character, described first
Targeted transformation field is less than the first object code character;
In the present embodiment, described that the data to be stored is replaced with first according to predetermined first transformation rule
The step of targeted transformation field, is, for example, the mapping obtained between predetermined code character and corresponding conversion field is closed
It is table;
Judge to whether there is and the matched first object code character of the data to be stored in the mapping table;If
In the presence of the first object code character corresponding first object conversion field then being obtained, by the data to be stored and the first mesh
It is that the corresponding first object of the first object code character converts field to mark the matched partial replacement of code character;
Specifically, matching includes exactly matching and partly matching, and it refers to data to be stored and mapping table to exactly match
In some target code character it is identical, part matching refers to part continuous programming code character and target in data to be stored
Code character is identical, and the prefix or suffix such as data to be stored is identical with target code character.
If being not present and the matched first object code character of the data to be stored, basis in the mapping table
Field create-rule is converted to generate and the matched first object conversion field of the data to be stored;The data to be stored is replaced
It is changed to first object conversion field, and establishes the correspondence of the data to be stored and first object conversion field, it will
The correspondence is stored in the mapping table;
In the present embodiment, conversion field create-rule can be self-defined as needed, such as when targeted transformation field is word
When female, it can be arranged in order generation in alphabetical order, or when targeted transformation field is number, it can be according to pre-set number
Generated according to queueing discipline etc..Specifically, such as by the coded number PA017-CFS_ILOAN-C-CFS_ of consumerCode called sides
APS_S_AFA_APPL_RISK_MOD maps the alphabetical ABCDE for being converted to 5 fixed length, or is converted into 5 as the number of fixed length
00001 etc..
Preferably, conversion field is the number combination of preset length.
It, will according to predetermined second transformation rule if C, the data to be stored does not have determining service attribute
The data to be stored replaces with the second targeted transformation field, and the data to be stored is the second target code character, and described the
Two targeted transformation fields are less than the second target code character;
Specifically, data to be stored includes multiple data, and the number of data is with different application scenarios or time change,
Lead to not the storage size for predefining data to be stored, if traceId transaction details data are without preset
The data to be stored of service attribute;
It should be noted that data to be stored is to carry out the data of statistics generation at any time, such as the monitoring of CPU, memory
Data, every point of these data are per second to be required for preserving, and is also without pre- for the statistical data of timing or real-time storage is needed
If service attribute data to be stored;
It is described that the data to be stored is replaced with by the second targeted transformation field according to predetermined second transformation rule
The step of can be, for example, according to predetermined hash function, to determine the corresponding cryptographic Hash of data to be stored, the cryptographic Hash
As the second targeted transformation field.
It in another embodiment of the invention, can be according to practical system for the data for needing to carry out counting generation at any time
Scene is counted, pre-sets preservation rule, such as every point of data per second for being required for preserving, pre-set preservation rule is
Each statistical indicator only preserves a line per hour in preset time, and the corresponding index value of the statistical indicator is divided into 60 row,
A row per minute, after designing in this way, 1 60 data of hour preservation becomes only to preserve 1 data before, reduces weight
Multiple label field storage.
D, the first object is converted into field or the second targeted transformation field is stored in predetermined database.
It should be noted that when needing to operate database, when such as inquiring, read, updating, according to the first conversion
Rule converts data to be operated to operation conversion character, or converts data to be operated to operation according to the second transformation rule
Character is converted, and database is operated accordingly according to operation conversion character, simplifies database manipulation process.
By above-mentioned thing embodiment it is found that electronic device proposed by the present invention is by analyzing whether data to be stored has determination
Service attribute, and after analyzing the data to be stored and there is determining service attribute, according to predetermined first turn
Change rule and the data to be stored is replaced with into first object conversion field, does not have determination analyzing the data to be stored
Service attribute after, the data to be stored is replaced with by the second targeted transformation word according to predetermined second transformation rule
Section;The first object is converted into field or the second targeted transformation field is stored in predetermined database.It can save
Data space is saved, and easy to implement.
Explanation is needed further exist for, data recording program of the invention is different according to the function that its each section is realized,
It can be described with program module with the same function.It please refers to shown in Fig. 2, is number in one embodiment of electronic device of the present invention
According to the program module schematic diagram of storage program.In the present embodiment, function that data recording program is realized according to its each section
Difference can be divided into acquisition module 201, the first conversion module 202, the second conversion module 203 and memory module 204.
By above description it is found that the so-called program module of the present invention is to refer to complete the series of computation machine program of specific function to refer to
Section is enabled, the implementation procedure than program more suitable for description data recording program in electronic device 10.The module 201-204 institutes
The functions or operations step of realization is similar as above, and and will not be described here in detail, illustratively, such as wherein:
Analysis module 201 is used to analyze whether data to be stored to have determining service attribute;
If the first conversion module 202 is used to have determining service attribute in the data to be stored, according to true in advance
The data to be stored is replaced with first object and converts field by the first fixed transformation rule, and the data to be stored is the first mesh
Code character is marked, the first object conversion field is less than the first object code character;
If the second conversion module 203 does not have determining service attribute for the data to be stored, according to true in advance
The data to be stored is replaced with the second targeted transformation field by the second fixed transformation rule, and the data to be stored is the second mesh
Code character is marked, the second targeted transformation field is less than the second target code character;
Memory module 204, for the first object to be converted field or the second targeted transformation field deposit in advance
In determining database.
In addition, the present invention also proposes a kind of date storage method, please refer to shown in Fig. 3, the date storage method includes
Following steps:
Whether step S301, analysis data to be stored have determining service attribute;
In the present embodiment, after the instruction for receiving storage data, data recording program loads first be generated in advance
Mapping table, during deposit caches, data to be stored refers to data to be stored with determination with determining service attribute
Memory space and the Business Name of data to be stored do not change over time, such as the code character of service call side, service side
Code character, the code character etc. for calling path.
Step S302 is converted if the data to be stored has determining service attribute according to predetermined first
The data to be stored is replaced with first object and converts field by rule, and the data to be stored is first object code character,
The first object conversion field is less than the first object code character;
In the present embodiment, described that the data to be stored is replaced with first according to predetermined first transformation rule
The step of targeted transformation field, can be, for example, obtaining reflecting between predetermined code character and corresponding conversion field
Penetrate relation table;
Judge to whether there is and the matched first object code character of the data to be stored in the mapping table;If
In the presence of the first object code character corresponding first object conversion field then being obtained, by the data to be stored and the first mesh
It is that the corresponding first object of the first object code character converts field to mark the matched partial replacement of code character;
Specifically, matching includes exactly matching and partly matching, and it refers to data to be stored and mapping table to exactly match
In some target code character it is identical, part matching refers to part continuous programming code character and target in data to be stored
Code character is identical, and the prefix or suffix such as data to be stored is identical with target code character.
If being not present and the matched first object code character of the data to be stored, basis in the mapping table
Field create-rule is converted to generate and the matched first object conversion field of the data to be stored;The data to be stored is replaced
It is changed to first object conversion field, and establishes the correspondence of the data to be stored and first object conversion field, it will
The correspondence is stored in the mapping table;
In the present embodiment, conversion field create-rule can be self-defined as needed, such as when targeted transformation field is word
When female, it can be arranged in order generation in alphabetical order, or when targeted transformation field is number, it can be according to pre-set number
Generated according to queueing discipline etc..Specifically, such as by the coded number PA017-CFS_ILOAN-C-CFS_ of consumerCode called sides
APS_S_AFA_APPL_RISK_MOD maps the alphabetical ABCDE for being converted to 5 fixed length, or is converted into 5 as the number of fixed length
00001 etc..
Preferably, conversion field is the number combination of preset length.
Step S303, if the data to be stored does not have determining service attribute, according to predetermined second turn
Change rule and the data to be stored is replaced with into the second targeted transformation field, the data to be stored is the second target code word
Symbol, the second targeted transformation field are less than the second target code character;
Specifically, data to be stored includes multiple data, and the number of data is with different application scenarios or time change,
Lead to not the storage size for predefining data to be stored, if traceId transaction details data are without preset
The data to be stored of service attribute;
It should be noted that data to be stored is to carry out the data of statistics generation at any time, such as the monitoring of CPU, memory
Data, every point of these data are per second to be required for preserving, and is also without pre- for the statistical data of timing or real-time storage is needed
If service attribute data to be stored;
It is described that the data to be stored is replaced with by the second targeted transformation field according to predetermined second transformation rule
The step of can be, for example, according to predetermined hash function, to determine the corresponding cryptographic Hash of data to be stored, the cryptographic Hash
As the second targeted transformation field.
It in another embodiment of the invention, can be according to practical system for the data for needing to carry out counting generation at any time
Scene is counted, pre-sets preservation rule, such as every point of data per second for being required for preserving, pre-set preservation rule is
Each statistical indicator only preserves a line per hour in preset time, and the corresponding index value of the statistical indicator is divided into 60 row,
A row per minute, after designing in this way, 1 60 data of hour preservation becomes only to preserve 1 data before, reduces weight
Multiple label field storage.
The first object is converted field or the second targeted transformation field is stored in predetermined number by step S304
According in library.
It should be noted that when needing to operate database, when such as inquiring, read, updating, according to the first conversion
Rule converts data to be operated to operation conversion character, or converts data to be operated to operation according to the second transformation rule
Character is converted, and database is operated accordingly according to operation conversion character, simplifies database manipulation process.
By above-mentioned thing embodiment it is found that date storage method proposed by the present invention is by analyzing whether data to be stored has
Determining service attribute, and after analyzing the data to be stored and there is determining service attribute, according to predetermined the
The data to be stored is replaced with first object and converts field by one transformation rule, is not had analyzing the data to be stored
After determining service attribute, the data to be stored is replaced with by the second targeted transformation according to predetermined second transformation rule
Field;The first object is converted into field or the second targeted transformation field is stored in predetermined database.It can
Data space is saved, and easy to implement.
In addition, the present invention also proposes a kind of computer readable storage medium, stored on the computer readable storage medium
There is data recording program, following operation is realized when the data-storage program is executed by processor:
Analyze whether data to be stored has determining service attribute;
It, will be described according to predetermined first transformation rule if the data to be stored has determining service attribute
Data to be stored replaces with first object conversion field, and the data to be stored is first object code character, first mesh
Mark conversion field is less than the first object code character;
If the data to be stored does not have determining service attribute, according to predetermined second transformation rule by institute
It states data to be stored and replaces with the second targeted transformation field, the data to be stored is the second target code character, described second
Targeted transformation field is less than the second target code character;
The first object is converted into field or the second targeted transformation field is stored in predetermined database.
Computer readable storage medium specific implementation mode of the present invention and above-mentioned electronic device and date storage method are each
Embodiment is essentially identical, does not make tired state herein.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of electronic device, which is characterized in that the electronic device includes memory and the processing that is connect with the memory
Device, the processor is for executing the data recording program stored on the memory, and the data recording program is by the place
Reason device realizes following steps when executing:
Whether A1, analysis data to be stored have determining service attribute;
It, will be described according to predetermined first transformation rule if A2, the data to be stored have determining service attribute
Data to be stored replaces with first object conversion field, and the data to be stored is first object code character, first mesh
Mark conversion field is less than the first object code character;
If A3, the data to be stored do not have determining service attribute, according to predetermined second transformation rule by institute
It states data to be stored and replaces with the second targeted transformation field, the data to be stored is the second target code character, described second
Targeted transformation field is less than the second target code character;
A4, the first object is converted in field or the predetermined database of the second targeted transformation field deposit.
2. electronic device as claimed in claim 2, which is characterized in that described according to predetermined in the step A2
The data to be stored is replaced with the step of first object converts field by the first transformation rule, including:
Obtain the mapping table between predetermined code character and corresponding conversion field;
Judge to whether there is and the matched first object code character of the data to be stored in the mapping table;
If in the presence of, obtain the first object code character corresponding first object conversion field, by the data to be stored with
The matched partial replacement of first object code character is that the first object converts field;
If in the mapping table there is no with the matched first object code field of the data to be stored, according to conversion
Field create-rule is generated converts field with the matched first object of the data to be stored;
The first object that the data to be stored is replaced with to the generation converts field.
3. electronic device as claimed in claim 2, which is characterized in that the data to be stored is replaced with the generation described
First object conversion field the step of after, further include following steps:
The correspondence for establishing the data to be stored and the first object conversion field of generation, the correspondence of foundation is stored in
The mapping table.
4. electronic device as claimed in claim 2, which is characterized in that described according to predetermined in the step A3
The step of data to be stored is replaced with the second targeted transformation field by the second transformation rule, including:
According to predetermined hash algorithm, the corresponding cryptographic Hash of the data to be stored is determined, the cryptographic Hash is described the
Two targeted transformation fields.
5. electronic device according to any one of claims 1-4, which is characterized in that first object conversion field and described
Second targeted transformation field is the number combination of preset length.
6. a kind of date storage method, which is characterized in that described method includes following steps:
Whether S1, analysis data to be stored have determining service attribute;
It, will be described according to predetermined first transformation rule if S2, the data to be stored have determining service attribute
Data to be stored replaces with first object conversion field, and the data to be stored is first object code character, first mesh
Mark conversion field is less than the first object code character;
If S3, the data to be stored do not have determining service attribute, according to predetermined second transformation rule by institute
It states data to be stored and replaces with the second targeted transformation field, the data to be stored is the second target code character, described second
Targeted transformation field is less than the second target code character;
S4, the first object is converted in field or the predetermined database of the second targeted transformation field deposit.
7. date storage method as claimed in claim 6, which is characterized in that in the step S2, the basis is true in advance
The data to be stored is replaced with the step of first object converts field by the first fixed transformation rule, including:
Obtain the mapping table between predetermined code character and corresponding conversion field;
Judge to whether there is and the matched first object code character of the data to be stored in the mapping table;
If in the presence of, obtain the first object code character corresponding first object conversion field, by the data to be stored with
The matched partial replacement of first object code character is that the first object converts field;
If in the mapping table there is no with the matched first object code character of the data to be stored, according to conversion
Field create-rule is generated converts field with the matched first object of the data to be stored;
The data to be stored is replaced with into the first object and converts field.
8. date storage method as claimed in claim 7, which is characterized in that the data to be stored is replaced with this described
Further include following steps after the step of first object conversion field of generation:
The correspondence for establishing the data to be stored and the first object conversion field of generation, the correspondence of foundation is stored in
The mapping table.
9. date storage method as claimed in claim 7, which is characterized in that in the step S3, the basis is true in advance
The step of data to be stored is replaced with the second targeted transformation field by the second fixed transformation rule, including:
According to predetermined hash algorithm, the corresponding cryptographic Hash of the data to be stored is determined, the cryptographic Hash is described the
Two targeted transformation fields.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has data recording program, the number
It can be executed by least one processor according to storage program, so that at least one processor is executed as appointed in claim 6-9
The step of date storage method described in one.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810102247.2A CN108388598B (en) | 2018-02-01 | 2018-02-01 | Electronic device, data storage method, and storage medium |
PCT/CN2018/089451 WO2019148720A1 (en) | 2018-02-01 | 2018-06-01 | Electronic device, data storage method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810102247.2A CN108388598B (en) | 2018-02-01 | 2018-02-01 | Electronic device, data storage method, and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108388598A true CN108388598A (en) | 2018-08-10 |
CN108388598B CN108388598B (en) | 2022-04-22 |
Family
ID=63074937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810102247.2A Active CN108388598B (en) | 2018-02-01 | 2018-02-01 | Electronic device, data storage method, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108388598B (en) |
WO (1) | WO2019148720A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109389510A (en) * | 2018-08-13 | 2019-02-26 | 中国平安人寿保险股份有限公司 | Electronic device, loss ratio Incidence calculus method and storage medium |
CN109564567A (en) * | 2018-10-17 | 2019-04-02 | 算丰科技(北京)有限公司 | Date storage method, device, electronic equipment and computer readable storage medium |
CN111078682A (en) * | 2019-10-17 | 2020-04-28 | 贝壳技术有限公司 | Service data index construction method and system |
CN111274249A (en) * | 2020-01-19 | 2020-06-12 | 深圳前海微众银行股份有限公司 | User image data storage optimization method, device and readable storage medium |
CN111274586A (en) * | 2018-12-04 | 2020-06-12 | 北京京东尚科信息技术有限公司 | Method and device for saving data |
CN111782148A (en) * | 2020-06-30 | 2020-10-16 | 中国工商银行股份有限公司 | Data storage control method and device, electronic equipment and storage medium |
CN112182084A (en) * | 2020-09-27 | 2021-01-05 | 上海亚新建设工程有限公司 | Data format-based data automatic processing method and equipment |
CN112364022A (en) * | 2020-11-11 | 2021-02-12 | 平安普惠企业管理有限公司 | Information derivation management method and device, computer equipment and readable storage medium |
CN113722286A (en) * | 2020-05-26 | 2021-11-30 | 杭州海康威视数字技术股份有限公司 | Space-time data compression method, device, server and storage medium |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113127694B (en) * | 2019-12-31 | 2024-08-23 | 深圳云天励飞技术有限公司 | Data storage method and device, electronic equipment and storage medium |
CN111581213B (en) * | 2020-05-06 | 2024-02-13 | 北京金堤科技有限公司 | Information recording method, device and equipment |
CN112347142B (en) * | 2020-11-17 | 2024-03-01 | 上海幻电信息科技有限公司 | Data processing method and device |
CN112434015B (en) * | 2020-12-08 | 2022-08-19 | 新华三大数据技术有限公司 | Data storage method and device, electronic equipment and medium |
CN115563187B (en) * | 2022-10-17 | 2023-08-04 | 中航信移动科技有限公司 | Data conversion method, storage medium and electronic equipment |
CN116909688B (en) * | 2023-09-14 | 2024-01-26 | 中移(苏州)软件技术有限公司 | Database calling method and device, storage medium and electronic equipment |
CN118227842B (en) * | 2024-04-15 | 2024-09-06 | 北京瑞太智联技术有限公司 | Multi-source heterogeneous data storage method, system, equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040177360A1 (en) * | 2003-03-04 | 2004-09-09 | Michael Beisiegel | Mapping to and from native type formats |
CN101132607A (en) * | 2006-08-22 | 2008-02-27 | 上海贝尔阿尔卡特股份有限公司 | Access gateway, base station and method for evolutionary multimedia broadcast multicast business |
CN101136936A (en) * | 2006-10-10 | 2008-03-05 | 华为技术有限公司 | Service establishing, executing, mapping system and method |
CN102307136A (en) * | 2011-07-06 | 2012-01-04 | 杭州华三通信技术有限公司 | Method for processing message and device thereof |
AU2011213842A1 (en) * | 2010-09-03 | 2012-03-22 | Tata Consultancy Services Limited | A system and method of managing mapping information |
CN106354617A (en) * | 2016-08-29 | 2017-01-25 | 广州华多网络科技有限公司 | Program compression log file output method and device |
CN106446272A (en) * | 2016-10-20 | 2017-02-22 | 北京百度网讯科技有限公司 | Method and device for sending data |
CN106815267A (en) * | 2015-12-01 | 2017-06-09 | 中兴通讯股份有限公司 | Date storage method and device |
CN107066591A (en) * | 2017-04-18 | 2017-08-18 | 北京思特奇信息技术股份有限公司 | A kind of method and device handled business |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105138562A (en) * | 2015-07-23 | 2015-12-09 | 小米科技有限责任公司 | Data processing method and device of relational database |
US10394822B2 (en) * | 2015-09-25 | 2019-08-27 | Mongodb, Inc. | Systems and methods for data conversion and comparison |
CN107168866B (en) * | 2016-03-08 | 2021-02-02 | 阿里巴巴集团控股有限公司 | Parameter analysis method and device for configuration file |
-
2018
- 2018-02-01 CN CN201810102247.2A patent/CN108388598B/en active Active
- 2018-06-01 WO PCT/CN2018/089451 patent/WO2019148720A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040177360A1 (en) * | 2003-03-04 | 2004-09-09 | Michael Beisiegel | Mapping to and from native type formats |
CN101132607A (en) * | 2006-08-22 | 2008-02-27 | 上海贝尔阿尔卡特股份有限公司 | Access gateway, base station and method for evolutionary multimedia broadcast multicast business |
CN101136936A (en) * | 2006-10-10 | 2008-03-05 | 华为技术有限公司 | Service establishing, executing, mapping system and method |
AU2011213842A1 (en) * | 2010-09-03 | 2012-03-22 | Tata Consultancy Services Limited | A system and method of managing mapping information |
CN102307136A (en) * | 2011-07-06 | 2012-01-04 | 杭州华三通信技术有限公司 | Method for processing message and device thereof |
CN106815267A (en) * | 2015-12-01 | 2017-06-09 | 中兴通讯股份有限公司 | Date storage method and device |
CN106354617A (en) * | 2016-08-29 | 2017-01-25 | 广州华多网络科技有限公司 | Program compression log file output method and device |
CN106446272A (en) * | 2016-10-20 | 2017-02-22 | 北京百度网讯科技有限公司 | Method and device for sending data |
CN107066591A (en) * | 2017-04-18 | 2017-08-18 | 北京思特奇信息技术股份有限公司 | A kind of method and device handled business |
Non-Patent Citations (2)
Title |
---|
SHENG 等: "A new incidence Degree Model of Interval Grey Number based on space mapping", 《2011 IEEE 18TH INTERNATIONAL CONFERENCE ON INDUSTRIAL ENGINEERING AND ENGINEERING MANAGEMENT》 * |
曾文英: "面向移动环境的数据存储管理方法关键技术研究", 《中国博士学位论文全文数据库 信息科技辑》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109389510A (en) * | 2018-08-13 | 2019-02-26 | 中国平安人寿保险股份有限公司 | Electronic device, loss ratio Incidence calculus method and storage medium |
CN109564567A (en) * | 2018-10-17 | 2019-04-02 | 算丰科技(北京)有限公司 | Date storage method, device, electronic equipment and computer readable storage medium |
CN111274586A (en) * | 2018-12-04 | 2020-06-12 | 北京京东尚科信息技术有限公司 | Method and device for saving data |
CN111274586B (en) * | 2018-12-04 | 2024-04-05 | 北京京东尚科信息技术有限公司 | Method and device for storing data |
CN111078682A (en) * | 2019-10-17 | 2020-04-28 | 贝壳技术有限公司 | Service data index construction method and system |
CN111274249A (en) * | 2020-01-19 | 2020-06-12 | 深圳前海微众银行股份有限公司 | User image data storage optimization method, device and readable storage medium |
CN113722286A (en) * | 2020-05-26 | 2021-11-30 | 杭州海康威视数字技术股份有限公司 | Space-time data compression method, device, server and storage medium |
CN113722286B (en) * | 2020-05-26 | 2024-08-09 | 杭州海康威视数字技术股份有限公司 | Space-time data compression method, device, server and storage medium |
CN111782148B (en) * | 2020-06-30 | 2023-09-05 | 中国工商银行股份有限公司 | Data storage control method and device, electronic equipment and storage medium |
CN111782148A (en) * | 2020-06-30 | 2020-10-16 | 中国工商银行股份有限公司 | Data storage control method and device, electronic equipment and storage medium |
CN112182084A (en) * | 2020-09-27 | 2021-01-05 | 上海亚新建设工程有限公司 | Data format-based data automatic processing method and equipment |
CN112364022A (en) * | 2020-11-11 | 2021-02-12 | 平安普惠企业管理有限公司 | Information derivation management method and device, computer equipment and readable storage medium |
CN112364022B (en) * | 2020-11-11 | 2023-11-03 | 贵州新凯润信息技术服务有限公司 | Information deduction management method, device, computer equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108388598B (en) | 2022-04-22 |
WO2019148720A1 (en) | 2019-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108388598A (en) | Electronic device, date storage method and storage medium | |
CN108388599B (en) | Electronic device, data migration and calling method and storage medium | |
CN112765271B (en) | Block chain transaction index storage method and device, computer equipment and medium | |
EP2386958A1 (en) | Method for incremental anti-tear garbage collection | |
CN108462760A (en) | Electronic device, cluster access domain name automatic generation method and storage medium | |
CN108255838B (en) | Method and system for establishing intermediate data warehouse for big data analysis | |
CN110147241A (en) | Program configures update method, electronic device, computer equipment and storage medium | |
CN108681504A (en) | Automated testing method, test server and computer readable storage medium | |
CN108363684A (en) | List creation method, device and server | |
CN109582458A (en) | Resource information loading method, device, storage medium and processor | |
CN112631924A (en) | Automatic testing method and device, computer equipment and storage medium | |
CN115168166A (en) | Method, device and equipment for recording business data change and storage medium | |
CN109491962A (en) | A kind of file directory tree management method and relevant apparatus | |
CN109446754A (en) | The guard method of algorithm, device, equipment and storage medium in intelligent contract | |
CN111813517A (en) | Task queue allocation method and device, computer equipment and medium | |
CN108629699A (en) | Data uploading method, data uploading device, storage medium and device | |
CN107844520A (en) | Electronic installation, vehicle data introduction method and storage medium | |
CN116842012A (en) | Method, device, equipment and storage medium for storing Redis cluster in fragments | |
CN111221470A (en) | Data processing method, electronic device and storage medium | |
CN110134867A (en) | Corporation information query method and Related product | |
CN102930200B (en) | Progress recognizing method, device and terminal device | |
CN108958838A (en) | Novel method and device for updating attribute information | |
CN110866380A (en) | Method and terminal for filling in information field content | |
CN115004667B (en) | Information pushing method, device, electronic equipment and computer readable medium | |
CN114625372A (en) | Automatic component compiling method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |