CN102779166A - Method for storing mass data - Google Patents
Method for storing mass data Download PDFInfo
- Publication number
- CN102779166A CN102779166A CN201210207787XA CN201210207787A CN102779166A CN 102779166 A CN102779166 A CN 102779166A CN 201210207787X A CN201210207787X A CN 201210207787XA CN 201210207787 A CN201210207787 A CN 201210207787A CN 102779166 A CN102779166 A CN 102779166A
- Authority
- CN
- China
- Prior art keywords
- data
- server end
- device number
- received
- catalogue
- 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.)
- Pending
Links
Images
Abstract
The invention discloses a method for storing mass data. The method includes the following steps that 1) a mobile terminal transmits data to the server end, and the data comprise device number of a corresponding mobile terminal; 2) the server end receives the data transmitted by the mobile terminal, conducts code conversion on the received device number and builds a first-level catalogue and a second-level catalogue according to obtained codes; 3) the server end builds a third-level catalogue according to the received device number; and 4) the server end utilizes the year when the data are received as a four-level catalogue, utilizes the data format when the data are received as a file name to store the received data into a corresponding small database. The method increases data reading speed, and a system can quickly find the small database that each device corresponds to according to configuration rules to conduct data storage operation. The method has the advantages of being easy to expand and compile of a file database and also has the advantages of structuralization, lowest redundancy, higher form, data independence of a relational database and the like.
Description
Technical field
The present invention relates to the mobile Internet data communications field, especially a kind of method of storage mass data of this communications field.
Background technology
Database commonly used in the existing mobile Internet data communication is a relevant database.Relevant database is the database that is based upon on the relational model basis, comes the database in the process database by means of mathematical concepts such as algebra of sets and method.Relational model is made up of relational data structure, relational operation set and integrity constraint three parts.
In relevant database, to organize with relation between each data item, relation is a kind of connection between the table, through relation, can represent more neatly and manipulation data.
A large number of users timing (as per 10 seconds) produces lot of data in the communication at present; Store lot of data in the common table of relevant database, like 100,000,000 data, because interrelated between each data; When the user inquires about; Need in lot of data, inquire about, cause inquiry velocity slow, can't in time respond the requirement of user data query.
Summary of the invention
Technical matters to be solved by this invention is the method that a kind of reading speed is fast, mass data is stored in dilatation easily.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: a kind of method of storing mass data, it is characterized in that, and comprise the steps:
1) portable terminal transmits data to server end, comprises the device number at corresponding mobile terminal in the said data;
2) after server end receives the data of portable terminal transmission, after the device number process code conversion that receives,
Create first class catalogue and second-level directory according to the coding that obtains;
3) server end is created three grades of catalogues according to the device number that receives;
4) time of server end when receiving data be as the level Four catalogue, the date format when receiving data
As filename with the data storage that receives in corresponding toy data base.
Preferably, the said MD5 coding that is encoded to, said device number is IMEI.
In step 2) in, obtaining the front two of coding and create first class catalogue, the 3rd and the 4th are as second-level directory.
The invention is not restricted to the level Four catalogue, also can for, in step 4), the month of server end when receiving data is as the Pyatyi catalogue.
Compared with prior art; The invention has the advantages that: accelerate data reading speed; System can find the corresponding toy data base of each equipment to carry out data storage operations according to the rule of configuration very soon, and being easy to of compatible document data bank expand, be easy to work out and advantages such as the structuring of relevant database, lowest redundancy degree, higher formula and data independence.
Description of drawings
Fig. 1 is the process flow diagram of storage means of the present invention.
Embodiment
Embodiment describes in further detail the present invention below in conjunction with accompanying drawing.
Referring to Fig. 1, a kind of storage means of mass data comprises the steps:
1) server end adopts toy data base, like the SQLite toy data base, stores the data of each portable terminal respectively; Customer mobile terminal transmits data and stores to server end; The device number that in the data of this transmission, comprises portable terminal, in the present invention, moving equipment identification sign indicating number (IMEI) with the world is example; This yard is unique, and be corresponding one by one with each portable terminal;
2) after server end receives the data that portable terminal transmits, the device number that receives is created first class catalogue through obtaining front two after the code conversion, the 3rd and the 4th are as second-level directory; In the present embodiment, adopt the MD5 coding, can certainly adopt other codings, as long as the coding that produces has uniqueness;
3) with the device number that receives, IMEI is as three grades of catalogues;
Time when 4) receiving data with server is as the level Four catalogue, and the date format when receiving data is stored the data that receive as filename, is stored in the corresponding toy data base of equipment; In this step, also can increase a catalogue, the month when promptly receiving data with server is as the Pyatyi catalogue.
As, a certain portable terminal, its IMEI are 00000038, behind the MD5 coding, obtain md5 (1)=C4CA4238A0B923820DCC509A6F75849B; Data instance then, its bibliographic structure in the server end storage to transmit on June 13rd, 2012 be 00000038.
Adopt above-mentioned storage means; When the user inquires about; Server can find the corresponding toy data base of each portable terminal very soon according to the rule of above-mentioned configuration, in this toy data base, inquires about, and need not in all databases of server end, to inquire about; Accelerated inquiry velocity greatly, can in time respond the requirement of user data query.
The above is merely preferred implementation of the present invention, should be pointed out that for those of ordinary skill in the art, not breaking away under the principle prerequisite of the present invention, can also make various deformation and improvement, and this also should be regarded as protection scope of the present invention.
Claims (4)
1. a method of storing mass data is characterized in that, comprises the steps:
1) portable terminal transmits data to server end, comprises the device number at corresponding mobile terminal in the said data;
2) after server end receives the data of portable terminal transmission, after the device number process code conversion that receives,
Create first class catalogue and second-level directory according to the coding that obtains;
3) server end is created three grades of catalogues according to the device number that receives;
4) time of server end when receiving data be as the level Four catalogue, the date format when receiving data
As filename with the data storage that receives in corresponding toy data base.
2. the method for storage mass data as claimed in claim 1 is characterized in that, the said MD5 coding that is encoded to, and said device number is IMEI.
3. the method for poke mass data as claimed in claim 2 is characterized in that, obtains the front two of coding and creates first class catalogue, and the 3rd and the 4th are as second-level directory.
4. the method for storage mass data as claimed in claim 1 is characterized in that, in step 4), the month of server end when receiving data is as the Pyatyi catalogue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210207787XA CN102779166A (en) | 2012-06-21 | 2012-06-21 | Method for storing mass data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210207787XA CN102779166A (en) | 2012-06-21 | 2012-06-21 | Method for storing mass data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102779166A true CN102779166A (en) | 2012-11-14 |
Family
ID=47124078
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210207787XA Pending CN102779166A (en) | 2012-06-21 | 2012-06-21 | Method for storing mass data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102779166A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893539A (en) * | 2016-03-31 | 2016-08-24 | 广东欧珀移动通信有限公司 | IMEI number search method and device and mobile terminal |
CN106940733A (en) * | 2017-04-12 | 2017-07-11 | 福建中金在线信息科技有限公司 | A kind of picture storage method and server |
CN111078650A (en) * | 2019-12-20 | 2020-04-28 | 成都康赛信息技术有限公司 | File storage method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459557A (en) * | 2008-11-29 | 2009-06-17 | 成都市华为赛门铁克科技有限公司 | Secure logging centralized storage method and device |
CN101859316A (en) * | 2010-04-29 | 2010-10-13 | 北京无限立通通讯技术有限责任公司 | Method and device for mass file access |
CN102096563A (en) * | 2009-12-14 | 2011-06-15 | 北大方正集团有限公司 | Method and system for printing preview operation of controller client end |
-
2012
- 2012-06-21 CN CN201210207787XA patent/CN102779166A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459557A (en) * | 2008-11-29 | 2009-06-17 | 成都市华为赛门铁克科技有限公司 | Secure logging centralized storage method and device |
CN102096563A (en) * | 2009-12-14 | 2011-06-15 | 北大方正集团有限公司 | Method and system for printing preview operation of controller client end |
CN101859316A (en) * | 2010-04-29 | 2010-10-13 | 北京无限立通通讯技术有限责任公司 | Method and device for mass file access |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893539A (en) * | 2016-03-31 | 2016-08-24 | 广东欧珀移动通信有限公司 | IMEI number search method and device and mobile terminal |
CN105893539B (en) * | 2016-03-31 | 2018-01-19 | 广东欧珀移动通信有限公司 | IMEI number lookup method, device and mobile terminal |
CN106940733A (en) * | 2017-04-12 | 2017-07-11 | 福建中金在线信息科技有限公司 | A kind of picture storage method and server |
CN111078650A (en) * | 2019-12-20 | 2020-04-28 | 成都康赛信息技术有限公司 | File storage method |
CN111078650B (en) * | 2019-12-20 | 2023-07-25 | 成都康赛信息技术有限公司 | File storage method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103473230A (en) | Service range determining method, logistics service provider recommending method and corresponding device | |
CN101206670B (en) | System and method for transferring non construction information to content | |
CN105139144A (en) | Internet of Things unified identification code registration system and method, and analysis system and method | |
WO2015195830A3 (en) | Data query method and apparatus | |
CN102622371B (en) | Historical association database system, implementation method and electronic learning equipment thereof | |
JP2011216100A5 (en) | ||
CN103353899A (en) | Accurate summarized information searching method | |
CN103838718A (en) | Translation system and translation method | |
WO2007009074A3 (en) | Identifying locations | |
EP2665000A3 (en) | Processing queries in a computer network using business intelligence tools | |
CN102722525A (en) | Methods and systems for establishing language model of address book names and searching voice | |
CN102411582A (en) | Picture searching method, device and client | |
CN105787849A (en) | Lost-and-found and lost article search solution scheme and system based on public platform | |
CN102779166A (en) | Method for storing mass data | |
KR20150018880A (en) | Information aggregation, classification and display method and system | |
CN103491089A (en) | Transcoding method and system of data recovery based on HTTP | |
CN104462588A (en) | Intellectual property retrieval system based on cloud database | |
CN103389993A (en) | Network information obtaining method and system for mobile equipment | |
CN104731965A (en) | Hotel query method based on internet map | |
CN104992698A (en) | Song on-demand arrangement method and device for KTV song-on-demand system | |
CN112241399B (en) | NoSQL-based PSD-BPA data analysis and management method and system | |
CN104142938A (en) | Data processing method, device and system of micro-blog | |
CN103425657A (en) | Method and device for searching mails | |
CN102932512A (en) | Contact person analysis method and device as well as contact person generation method and device | |
CN202795457U (en) | An express article attribute information management system base on two-dimensional codes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20121114 |