CN105701168B - Data storage method and device and electronic equipment - Google Patents

Data storage method and device and electronic equipment Download PDF

Info

Publication number
CN105701168B
CN105701168B CN201511032229.4A CN201511032229A CN105701168B CN 105701168 B CN105701168 B CN 105701168B CN 201511032229 A CN201511032229 A CN 201511032229A CN 105701168 B CN105701168 B CN 105701168B
Authority
CN
China
Prior art keywords
data
server
stored
storing data
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511032229.4A
Other languages
Chinese (zh)
Other versions
CN105701168A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201511032229.4A priority Critical patent/CN105701168B/en
Publication of CN105701168A publication Critical patent/CN105701168A/en
Application granted granted Critical
Publication of CN105701168B publication Critical patent/CN105701168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1748De-duplication implemented within the file system, e.g. based on file segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a data storage method, a data storage device and electronic equipment, which are applied to a first area server in a data storage system, wherein the data storage system comprises: the method comprises the following steps that a global server and a plurality of regional servers are adopted, wherein the global server is used for storing the corresponding relation between the stored data of each regional server and the regional server, and the method comprises the following steps:obtaining characteristic information T aiming at target storage data sent by terminal1According to the characteristic information T1And judging whether the target storage data is stored in the first regional server, if not, sending a data query request to the global server, receiving a query result of the global server for performing data query according to the data query request, obtaining the target storage data according to the query result and a preset data obtaining rule, and storing the target storage data. By applying the embodiment of the invention, the network flow of the user and the time for storing data can be saved, and the user experience is improved.

Description

A kind of date storage method, device and electronic equipment
Technical field
The present invention relates to data processing field, in particular to a kind of date storage method, device and electronic equipment.
Background technique
With the development of internet, the data generated when user's using terminal are more and more.But the memory space of terminal is very Small, the memory space of especially mobile terminal is smaller, and therefore, user usually upload the data to the region server of network side In.Here, region server is the storage server of user region, is used to store the number of local area intra domain user upload According to.
Currently, region server after the data information for the data to be stored for receiving user, can upload user Whether data information carries out re-scheduling processing, i.e., stored in the region server of detection region identical as the data information Target data the data to be stored is uploaded again without user, so that user need not spend if having stored the target data Time-consuming repetition uploads same data, and has saved the network flow of user, saves the carrying cost of user.
In the prior art, the data progress re-scheduling that the method for data storage is only capable of in the region server for one's respective area is deposited Storage, cannot achieve transregional numeric field data re-scheduling storage, such as: a certain data to be stored in the region server of one's respective area not Storage, stores the data in the region server in other regions, at this time uploads data there is still a need for user, and be stored in In the region server of one's respective area.In this regard, user needs not deposit in the region server for taking a lot of time storage one's respective area Storage but the stored data in the region server in other regions, increase the carrying cost of user, so that the experience of user It is bad.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of date storage method, device and electronic equipment, to solve to waste The problem of time of the network flow of user and storing data.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of date storage methods, are applied to data-storage system In first area server, the data-storage system includes: a global server and multiple regions server, wherein The global server, for storing in the server of each region the region server of storing data and storage storing data Between corresponding relationship, the method includes the steps:
Obtain the characteristic information T for target storing data that terminal is sent1
According to the characteristic information T1, judge the target storage number whether has been stored in the first area server According to;
If it has not, then sending data inquiry request to the global server, wherein include in the data inquiry request The characteristic information T1
The global server is received according to the characteristic information T for including in the data inquiry request1Carry out data The query result of inquiry;
According to the query result, rule is obtained according to preset data, obtains the target storing data, and store institute State target storing data.
It is described according to the characteristic information T in a specific embodiment of the present invention1, judge the first area clothes The target storing data whether has been stored in business device, comprising:
According to the characteristic information T1, whether judge in preset area data information table comprising the characteristic information T1, In, the preset area data information table is stored in the first area server, and the area data information table is used for Store the characteristic information of stored each data in the first area server;
If not including, the not stored target storing data in the first area server is determined.
In a specific embodiment of the present invention, the area data information table is also used to store the first area clothes The reference number of stored each data in business device;
The method also includes:
In the case where having stored the target storing data in determining the first area server, refuse the terminal Upload the target storing data, and the reference number of the stored target storing data of bulk registration.
It is described according to the query result in a specific embodiment of the present invention, it is advised according to preset data Then, the target storing data is obtained, and after storing the target storing data, further includes:
According to the characteristic information T1, update the area data information table.
It is described according to the query result in a specific embodiment of the present invention, it is advised according to preset data Then, the target storing data is obtained, and stores the target storing data, comprising:
In the case where the query result shows to have stored the region server of the target storing data, to The terminal sends the data uploading instructions for being directed to the target storing data;
The target storing data that the terminal is uploaded according to the data uploading instructions is received, and stores the target Storing data.
It is described according to the query result in a specific embodiment of the present invention, it is advised according to preset data Then, the target storing data is obtained, and stores the target storing data, comprising:
In the case where query result shows to have stored the region server of the target storing data, according to described Query result obtains the mark for having stored the region server of the target storing data;
According to preset mark alternative condition, the mark of a region server is selected from mark obtained;
The target storing data is obtained from the corresponding region server of selected mark, and stores the target and deposits Store up data.
It is described according to preset mark alternative condition in a specific embodiment of the present invention, from mark obtained The mark of one region server of middle selection, comprising:
Obtain the reference total degree of the target storing data;
Judge whether the reference total degree is greater than preset times;
If it has, then selecting the mark of a region server from mark obtained.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of data storage devices, are applied to data storage system First area server in system, the data-storage system include: a global server and multiple regions server, In, the global server, the region for storing in the server of each region storing data and storage storing data takes Corresponding relationship between business device, described device include: that characteristic information obtains module, data judgment module, inquiry request transmission mould Block, query result receiving module and data memory module;
Wherein, the characteristic information obtains module, and the feature for target storing data for obtaining terminal transmission is believed Cease T1
The data judgment module, for according to the characteristic information T1, judge in the first area server whether The target storing data is stored, if it has not, then triggering the inquiry request sending module;
The inquiry request sending module, for sending data inquiry request to the global server, wherein the number According in inquiry request include the characteristic information T1
The query result receiving module includes for receiving the global server according in the data inquiry request The characteristic information T1Carry out the query result of data query;
The data memory module is used for according to the query result, regular according to the acquisition of preset data, described in acquisition Target storing data, and store the target storing data.
In a specific embodiment of the present invention, the data judgment module, comprising: characteristic information judging submodule and Data judging submodule;
Wherein, the characteristic information judging submodule, for according to the characteristic information T1, judge preset area data It whether include the characteristic information T in information table1If not including, the data judging submodule is triggered, wherein described pre- If area data information table be stored in the first area server, the area data information table is for storing described the The characteristic information of stored each data in one region server;
The data judging submodule, for determining the not stored target storage number in the first area server According to.
In a specific embodiment of the present invention, the area data information table is also used to store the first area clothes The reference number of stored each data in business device;
Described device further include: reference number accumulation module,
For refusing institute in the case where having stored the target storing data in determining the first area server It states terminal and uploads the target storing data, and the reference number of the stored target storing data of bulk registration.
In a specific embodiment of the present invention, described device further include: information table update module, for according to Characteristic information T1, update the area data information table.
In a specific embodiment of the present invention, the data memory module, comprising: uploading instructions sending submodule and First data sub-module stored;
Wherein, the uploading instructions sending submodule has stored the mesh for showing in the query result In the case where the region server for marking storing data, the transmission of Xiang Suoshu terminal refers to for the data upload of the target storing data It enables;
The first data sub-module stored, for receiving the terminal according to data uploading instructions upload Target storing data, and store the target storing data.
In a specific embodiment of the present invention, the data memory module, comprising: mark obtains submodule, mark Select submodule and the second data sub-module stored;
Wherein, the mark obtains submodule, has stored the target storing data for showing in query result Region server in the case where, according to the query result, obtain the region server for having stored the target storing data Mark;
The mark selects submodule, for selecting one from mark obtained according to preset mark alternative condition The mark of a region server;
The second data sub-module stored, for obtaining the mesh from the corresponding region server of selected mark Storing data is marked, and stores the target storing data.
In a specific embodiment of the present invention, the mark selects submodule, comprising: reference total degree obtains single Member, frequency judging unit and mark selecting unit;
Wherein, the reference total degree obtaining unit, for obtaining the reference total degree of the target storing data;
The frequency judging unit, for judging whether the reference total degree is greater than preset times, if it has, then triggering The mark selecting unit;
The mark selecting unit, for selecting the mark of a region server from mark obtained.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of electronic equipment, the electronic equipment includes: shell Body, processor, memory, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor On circuit boards with memory setting;Power circuit, for each circuit or the device power supply for electronic equipment;Memory is used for Store executable program code;Processor is run and executable journey by reading the executable program code stored in memory The corresponding program of sequence code, for executing following steps:
Obtain the characteristic information T for target storing data that terminal is sent1
According to the characteristic information T1, judge the target storage number whether has been stored in the first area server According to;
If it has not, then sending data inquiry request to the global server, wherein wrapped in the data inquiry request Contain: the characteristic information T1
The global server is received according to the characteristic information T for including in the data inquiry request1Carry out data The query result of inquiry;
According to the query result, rule is obtained according to preset data, obtains the target storing data, and store institute State target storing data.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of storage mediums, wherein the storage medium is for depositing Application program is stored up, the application program for executing a kind of date storage method described in the embodiment of the present invention at runtime.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of application programs, wherein the application program is for transporting A kind of date storage method described in the embodiment of the present invention is executed when row.
Therefore in the embodiment of the present invention, what server acquisition terminal in first area was sent is directed to target storing data Characteristic information T1, according to this feature information T1, judge whether stored target storing data in the first area server, If not stored, data inquiry request is sent to global server, is receiving global server according to the data inquiry request After the query result of feedback, according to the query result, rule is obtained according to preset data, obtains target storing data, and deposit Target storing data is stored up, global re-scheduling is carried out to the target data that user needs to upload in scheme provided in an embodiment of the present invention Processing, it may not be necessary to upload stored in not stored in the region server of one's respective area but region server in other regions Data save the network flow of user and the time of storing data, improve the experience of user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of date storage method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another date storage method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another date storage method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another date storage method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of data storage device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another data storage device provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another data storage device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another data storage device provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of date storage method, device and electronic equipments, are applied to data-storage system In first area server, data-storage system includes: a global server and multiple regions server, wherein global Server, for storing corresponding relationship of each region server between storing data and the region server, this method packet It includes: obtaining the characteristic information T for target storing data that terminal is sent1, according to characteristic information T1, judge that first area services Target storing data whether has been stored in device, if it has not, then sending data inquiry request to global server, receives global service Device carries out the query result of data query according to data inquiry request, according to query result, obtains rule according to preset data, Target storing data is obtained, and stores the target storing data.
Below by specific embodiment, the present invention is described in detail.
With reference to Fig. 1, Fig. 1 is a kind of flow diagram of date storage method provided in an embodiment of the present invention, is applied to number According to the first area server in storage system, which may include: a global server and multiple regions Server, wherein global server, for storing in the server of each region the area of storing data and storage storing data Corresponding relationship between domain server, this method may include step:
S101: the characteristic information T for target storing data that terminal is sent is obtained1
Specifically, characteristic information T1It may include: the data characteristics of target storing data, wherein target storing data Data characteristics can be obtained by common feature extraction algorithm, for example, md5 (Message Digest Algorithm MD5), sha1 (Secure Hash Algorithm) scheduling algorithm, md5, sha1 scheduling algorithm are the prior art, and details are not described herein again. In addition, characteristic information T1It can also include the data volume of target storing data, it in this way can be identical to avoid the data characteristics of data And the situation generation that data are different, guarantee accurate acquisition target storing data.
It should be noted that the feature extraction algorithm used is preferably able to obtain the unique features value of target storing data, To guarantee accurate acquisition target storing data.Certainly, this feature information T1In can also include other information, with guarantee accurately obtain Target storing data is obtained, the invention does not limit this.
In addition, it is necessary to explanation, above-mentioned first area server is the multiple areas for including in above-mentioned data-storage system One in domain server, and any region server for including in above-mentioned data-storage system is possible to as first area clothes Business device obtains the region server of the characteristic information for target storing data, the i.e. area of one's respective area in embodiments of the present invention Domain server is first area server.
S102: according to the characteristic information T1, judge that whether having stored the target in the first area server deposits Data are stored up, if it has not, thening follow the steps S103;
S103: Xiang Suoshu global server sends data inquiry request;
Wherein, it may include the characteristic information T of above-mentioned target storing data in data inquiry request1
It is assumed that the characteristic information T1 for target storing data that first area server a is obtained is [data characteristics: b2 848176c2ff2e595aec50b5fe295b3j;Data volume: 42365 bytes], then first area server a is according to this Characteristic information T1, first area server a search for target storing data, if it does not exist with this feature information T1It is consistent Storing data then judges the not stored target storing data of first area server a, at this point, first area server a can be with Data inquiry request is sent to global server, the characteristic information T1 for including in the data inquiry request is [data characteristics: b28 48176c2ff2e595aec50b5fe295b3j;Data volume: 42365 bytes];Certainly, if it exists with this feature information T1It is consistent Storing data, then judge that first area server a has stored target storing data, at this point, first area server a The storage of this data can be terminated, refusal user uploads data, reduces user and expends unnecessary network flow and storage number According to time.
In addition, existing and this feature information T in the server of first area1It, should in the case where the storing data being consistent First area server can also send a notification message to terminal, inform and stored target storage in the server of user first area Data, it is not necessary to upload again.Upload can not be known to avoid user in this way as a result, waiting pending datas to upload always.Certainly, if user After seeing the notification message, it is still desirable to upload the target storing data, then terminal is allowed to upload the target storing data.
S104: the global server is received according to the characteristic information T for including in the data inquiry request1It carries out The query result of data query;
S105: according to the query result, obtaining rule according to preset data, obtain the target storing data, and Store the target storing data.
According in step S103 it is assumed that being not present and this feature information T in the server a of first area1It is consistent In the case where storing data, first area server a sends data inquiry request to global server, and global server is receiving To after data inquiry request, according to [the data characteristics: b2848176c2ff2e595aec50b for including in the data inquiry request 5fe295b3j;Data volume: 42365 bytes], each region server stored in the global server storing data with It stores in the corresponding relationship between the region server of storing data, inquiry whether there is and [data characteristics: b2848176c 2ff2e595aec50b5fe295b3j;Data volume: 42365 bytes] corresponding storing data, query result is sent to One region server a, first area server a obtain rule according to the query result, according to preset data, obtain target and deposit Data are stored up, and store target storing data.
Using embodiment illustrated in fig. 1, first area server obtains the feature for target storing data that terminal is sent Information T1, according to this feature information T1, judge whether stored target storing data in the first area server, if not depositing Storage sends data inquiry request to global server, is receiving what global server was fed back according to the data inquiry request After query result, according to the query result, rule is obtained according to preset data, obtains target storing data, and store target Storing data carries out global re-scheduling to the target data that user needs to upload in scheme provided in an embodiment of the present invention and handles, Stored data in not stored in the region server of one's respective area but region server in other regions may not necessarily be uploaded, The network flow of user and the time of storing data are saved, the experience of user is improved.
With reference to Fig. 2, Fig. 2 is the flow diagram of another date storage method provided in an embodiment of the present invention, is applied to First area server in data-storage system, the data-storage system may include: a global server and multiple areas Domain server, wherein global server, for storing in the server of each region storing data and storage storing data Corresponding relationship between region server, in this method, step S102 may include:
S102a: according to the characteristic information T1, judge whether believe comprising the feature in preset area data information table Cease T1If not including, S102b is thened follow the steps;
Wherein, preset area data information table is stored in the server of first area, which can be with For storing the characteristic information of stored each data in the server of first area.
S102b: determine the not stored target storing data in the first area server.
It is assumed that storing an area data information table in the server a of first area, as shown in table 1, table 1 is first area clothes The area data information table stored in business device a, if the characteristic information T that first area server a is obtained1For [data characteristics: b28 48176c2ff2e595aec50b5fe295b3j;Data volume: 42365 bytes], then as can be known from Table 1, the area data information It include this feature information T in table1, at this point it is possible to determine to have stored target storing data in the server a of first area;If first The characteristic information T that region server a is obtained1For [data characteristics: 2848176c2ff2e595aec50b5fe295b3;Data volume: 52160 bytes], then as can be known from Table 1, this feature information T can not be included in the area data information table1, at this point it is possible to sentence Determine not stored target storing data in the server a of first area.
Table 1
Data characteristics Data volume
b2848176c2ff2e595aec50b5fe295b3j 42365
b2848176c2ff2e595aec50b5fe295b3j 42300
b2848176c2ff2e595aec50 42365
In a kind of specific implementation, above-mentioned zone data information table be can be also used in storage first area server The reference number of each data of storage, wherein reference number indicates the number of terminal upload and/or downloading data.Here draw It is the data that user infrequently accesses with the few data of number, is properly termed as cold data.
In this case, above-mentioned date storage method can also include:
In the case where having stored target storing data in determining above-mentioned first area server, described in refusal terminal upload Target storing data, and the reference number of the stored target storing data of bulk registration.
It is assumed that the reference of a stored data b is had recorded in current first area server a in area data information table Number is 2, if first area server a obtains the characteristic information of data b again, can be determined that first area server a In stored target storing data, i.e. data b, refuse terminal upload data b, and the reference number of bulk registration data b is 3.
It should be noted that the reference number of stored each data is corresponding with the characteristic information of the data to be stored in area In numeric field data information table, in order to the reference number of the stored each data of bulk registration.In addition, drawing according to each data With the size of number, the characteristic information of each data in area data information table can also be ranked up, quickly to judge The characteristic information obtained out whether be storing data characteristic information.
In addition, obtaining rule according to query result above-mentioned according to preset data, obtaining target storing data, and deposit After storing up target storing data, can also include:
According to characteristic information T1, update area data information table.
Specifically, if not including this feature information T in area data information table1, then by characteristic information T1Including target deposit The data volume of the data characteristics and target storing data of storing up data is written in the area data information table;If area data information It include this feature information T in table1, then do not need characteristic information T again1Including target storing data data characteristics and mesh The data volume of mark storing data is written in the area data information table.In the embodiment of the present invention, real-time update number of regions it is believed that Table is ceased, so that area data information table keeps last state, convenient for judge whether the characteristic information of acquisition is storing data Characteristic information.
In addition, in update area data information table, can also more fresh target storing data reference number, to judge Whether the target storing data is cold data, if it has, then the data are the data that user infrequently accesses, which is stored The characteristic information of data comes behind area data information table, can accelerate to judge whether area data information table stores in this way There is the characteristic information of acquisition.
In a kind of specific implementation, area data information table can also store stored each data in first area Storage location in server, at this point, in update area data information table, can also more fresh target storing data storage position It sets, in this way, when user needs to download target storing data, readily available target storing data is serviced without first area Device is searched in entire first area server according to the characteristic information of data to obtain target storing data.
In a specific embodiment of the present invention, a global data information can also be stored in global server Table stores each data in the area data information table stored in the server of each region in the global data information table The region server corresponding relationship of characteristic information and the characteristic information of each data and the characteristic information of each data of storage, in this way It is inquired convenient for global server and whether has stored target storing data in other region servers.
It is assumed that global data information table is as shown in table 2, if sub- there is currently Asia, Europe, 3, America region server The region server in continent obtains the characteristic information T of target storing data1For [data characteristics: b2848176c2ff2e595aec50 b5fe295b3j;Data volume: 42365 bytes], at this point, the region server in Asia is first area server, it can according to table 2 Know, not stored this feature information T in the region server in Asia1, and be stored in the region server in Europe and America This feature information T1
Table 2
Region Data characteristics Data volume Quote number Storage location
Asia s2848176c2ff2e595aec50b5fe295b3w 41000 2 A
Europe b2848176c2ff2e595aec50b5fe295b3j 42365 2 B
America b2848176c2ff2e595aec50b5fe295b3j 42365 4 C
In the present invention, the area data information table stored in the server of each region is stored using global data information table In all information and each information and the region server corresponding relationship, when in each region, data information table sends variation, Synchronized update global data information table, so that global server is more convenient, quick and accurate when carrying out data query.
Using embodiment illustrated in fig. 2, it is stored with area data information table in the server of first area, is directed to mesh obtaining Whether after the characteristic information for marking storing data, judging can if not including comprising this feature information in the area data information table To determine not stored target storing data in the first area server, thus need not first area server comprehensively search for Stored each data and the characteristic information for obtaining each data, to judge whether to have stored target storing data, this makes Determine whether to have stored that target storing data is more convenient, quick, improves the experience of user.
With reference to Fig. 3, Fig. 3 is the flow diagram of another date storage method provided in an embodiment of the present invention, is applied to First area server in data-storage system, the data-storage system may include: a global server and multiple areas Domain server, wherein global server, for storing in the server of each region storing data and storage storing data Corresponding relationship between region server, in this method, step S105 may include:
S105a: show to have stored the feelings of the region server of the target storing data in the query result Under condition, Xiang Suoshu terminal sends the data uploading instructions for being directed to the target storing data;
S105b: the target storing data that the terminal is uploaded according to the data uploading instructions is received, and stores institute State target storing data.
It is assumed that the query result that the global server that first area server a is received is fed back according to data inquiry request Show: there is no the region servers for having stored target storing data, then send to terminal and be directed to the target storing data data Target storing data is uploaded in the server a of first area by uploading instructions, terminal after receiving the data uploading instructions, And it is stored in the server a of first area.
Using embodiment illustrated in fig. 3, in the inquiry through global server, determination has stored target storing data In the case where region server, target storing data is uploaded by terminal, user is needed in scheme provided in an embodiment of the present invention The target data of upload carries out global re-scheduling processing, and user can effectively be avoided to upload in the region server of one's respective area not Storage but the stored data in the region server in other regions.
With reference to Fig. 4, Fig. 4 is the flow diagram of another date storage method provided in an embodiment of the present invention, is applied to First area server in data-storage system, the data-storage system may include: a global server and multiple areas Domain server, wherein global server, for storing in the server of each region storing data and storage storing data Corresponding relationship between region server, in this method, step S105 may include:
S105c: in the case where query result shows to have stored the region server of the target storing data, root According to the query result, the mark for having stored the region server of the target storing data is obtained;
S105d: according to preset mark alternative condition, the mark of a region server is selected from mark obtained Know;
S105e: the target storing data is obtained from the corresponding region server of selected mark, and described in storage Target storing data.
It is assumed that there is currently Asia, Europe, 3, America region server, if the region server in Asia obtains target and deposits Store up the characteristic information T of data1For [data characteristics: b2848176c2ff2e595aec50b5fe295b3j;Data volume: 42365 words Section], at this point, the region server in Asia is first area server, the region server in Asia determines in local area domain server In do not store target storing data, then global server sends data inquiry request, and global server obtains after data query The target storing data is stored in the region server in Europe and America, then by the mark of the region server in Europe and America (such as " Europe " and " America ") is sent to the region server in Asia, in the case where meeting preset mark alternative condition, from In the mark of " Europe " and " America " two region servers determine one, however, it is determined that domain server be identified as " Europe Continent ", then the region server in Asia is pulled from the region server in " Europe " corresponding Europe obtains target storing data, And store the target storing data.In practical application, the data transmission bauds between server is than the data between terminal and server Transmission speed is fast, and therefore, obtaining target storing data from other server pulls will be faster than by terminal upload target storing data, The network flow of user and the time of storing data are saved in this way.
It should be noted that the mark for having stored the region server of target storing data may be embodied in query result In, it can also be gone to obtain in global server by first area server, the invention does not limit this.
In addition, being stored with number of regions in the server of first area if being stored with global data information table in global server According to information table, then target storing data is obtained pulling from other region servers, and after storing the target storing data, It can also be according to storage location update area data information table of the target storing data in the server of first area and the overall situation Data information table, and its reference number of target storing data in the server of first area is 1.
It is above-mentioned according to preset mark alternative condition in a kind of concrete methods of realizing of the invention, from mark obtained In knowledge select a region server mark, may include:
Obtain the reference total degree of target storing data;
Judge to quote whether total degree is greater than preset times;
If it has, then selecting the mark of a region server from mark obtained.
It should be noted that the reference total degree of target storing data may include in query result, it can also be by One region server is gone corresponding each with mark according to the mark of the region server for having stored target storing data of acquisition Region server obtains the reference number of the target storing data, calculates acquisition target storage number further according to the reference number of acquisition According to reference total degree, it is of course also possible to by first area server according to the region for having stored target storing data of acquisition The mark of server goes in global server to obtain, and the invention does not limit this.
It is assumed that preset times are 4, currently stored Asia, Europe, 3, America region server, if the regional service in Asia The characteristic information T of device acquisition target storing data1For [data characteristics: b2848176c2ff2e595aec50b5fe295b3j;Number According to amount: 42365 bytes], at this point, the region server in Asia is first area server, the region server in Asia determines Target storing data is not stored in local area domain server, then global server sends data inquiry request, and global server is through number The target storing data is stored it is investigated that being obtained in Europe and the region server in America after asking, as shown in table 2, target storage Reference total degree of the data in the region server in Europe and America is 6,6 > 4, then from the region server in Europe and America Mark " Europe " and " America " in determine one.
It is above-mentioned that a region server is selected from mark obtained in a kind of concrete methods of realizing of the invention Mark, can be with are as follows:
The mark of a region server is randomly chosen from mark obtained;Or
The actual range between first area server and other region servers is calculated, from mark obtained selection and the The mark of the smallest region server of actual range between one region server;Or
The data transmission bauds between first area server and other region servers is calculated, is selected from mark obtained The mark of the maximum region server of data transmission bauds between the server of first area.
Certainly, in embodiments of the present invention, a region can also be selected from mark obtained by other means The mark of server, the invention does not limit this.
In a kind of concrete methods of realizing of the invention, the reference total degree of target storing data is obtained no more than default time Number, then it is assumed that the target storing data is cold data, without selecting the mark of a region server from mark obtained, Do not have to obtain target storing data from other region servers, the target data that user needs to upload be carried out so global Re-scheduling processing, it may not be necessary to upload in not stored in the region server of one's respective area but region server in other regions The data of storage save the network flow of user and the time of storing data, improve the experience of user, meanwhile, effectively save The memory space of region server is saved, the network flow generated when obtaining target storing data is reduced, to reduce service provider Carrying cost.
In addition, being stored with number of regions in the server of first area if being stored with global data information table in global server Do not have in the case where the reference total degree for obtaining target storing data is not more than preset times from other regions according to information table Target storing data is obtained in server, using the target data a region server storage location as the target data The storage location of server in first area updates the area data information table stored in the server of first area and global service The global data information table stored in device.
It is assumed that not stored target storing data t in the server a of first area, and the reference total degree obtained is not more than Preset times, and the region server for storing target storing data t has b and c, target storing data t is in region server b Storage location be<A>, storage location of the target storing data t in region server c be<B>, then from<A>and<B>in choosing A storage location as target storing data t in the server a of first area is selected, if<A>, according to<A>update first The global data information table stored in the area data information table and global server stored in region server a.
Certainly, can also be comprising other information about target storing data in query result, such as: target storing data exists Storage location in other region servers, the invention does not limit this.
The area for having stored target storing data is determined in the inquiry through global server using embodiment illustrated in fig. 4 In the case where domain server, target storing data is obtained from a region server for having stored the target storing data, this It carries out global re-scheduling to the target data that user needs to upload in the scheme that inventive embodiments provide to handle, it may not be necessary to upload Stored data in not stored but region server in other regions, save user's in the region server of one's respective area The time of network flow and storing data improves the experience of user.
With reference to Fig. 5, Fig. 5 is a kind of structural schematic diagram of data storage device provided in an embodiment of the present invention, is applied to number According to the first area server in storage system, data-storage system includes: a global server and multiple regions server, Wherein, global server, for storing storing data and the regional service for storing storing data in the server of each region Corresponding relationship between device, the apparatus may include: characteristic information obtains module 501, data judgment module 502, inquiry request Sending module 503, query result receiving module 504 and data memory module 505;
Wherein, characteristic information obtains module 501, for obtaining the characteristic information for target storing data of terminal transmission T1
Data judgment module 502, for according to characteristic information T1, judge whether stored target in the server of first area Storing data, if it has not, then triggering inquiry request sending module 503;
Inquiry request sending module 503, for sending data inquiry request to global server, wherein data query is asked Include in asking: characteristic information T1
Query result receiving module 504 is believed for receiving global server according to the feature for including in data inquiry request Cease T1Carry out the query result of data query;
Data memory module 505 obtains target storage for obtaining rule according to preset data according to query result Data, and store target storing data.
Using embodiment illustrated in fig. 5, first area server obtains the feature for target storing data that terminal is sent Information T1, according to this feature information T1, judge whether stored target storing data in the first area server, if not depositing Storage sends data inquiry request to global server, is receiving what global server was fed back according to the data inquiry request After query result, according to the query result, rule is obtained according to preset data, obtains target storing data, and store target Storing data carries out global re-scheduling to the target data that user needs to upload in scheme provided in an embodiment of the present invention and handles, Stored data in not stored in the region server of one's respective area but region server in other regions may not necessarily be uploaded, The network flow of user and the time of storing data are saved, the experience of user is improved.
With reference to Fig. 6, Fig. 6 is the structural schematic diagram of another data storage device provided in an embodiment of the present invention, is applied to First area server in data-storage system, data-storage system include: a global server and multiple regions service Device, wherein global server, the region for storing in the server of each region storing data and storage storing data take The corresponding relationship being engaged between device, in the device, data judgment module 502, may include: characteristic information judging submodule 502a and Data judging submodule;
Wherein, characteristic information judging submodule 502a, for according to characteristic information T1, judge preset area data information It whether include characteristic information T in table1If not including, trigger data decision sub-module 502b, wherein preset area data Information table is stored in the server of first area, and the area data information table is stored in the server of first area for storing The characteristic information of each data;
Data judging submodule 502b, for determining not stored target storing data in the server of first area.
In a kind of specific implementation, above-mentioned zone data information table be can be also used in storage first area server The reference number of each data of storage;
In this case, above-mentioned data storage device can also include: reference number accumulation module, be used for, and determine the In the case where having stored target storing data in one region server, refusal terminal uploads target storing data, and bulk registration The reference number (being not shown in Fig. 6) of stored target storing data.
In a kind of specific implementation, above-mentioned data storage device can also include: information table update module, be used for basis Characteristic information T1, update area data information table (being not shown in Fig. 6).
Using embodiment illustrated in fig. 6, it is stored with area data information table in the server of first area, is directed to mesh obtaining Whether after the characteristic information for marking storing data, judging can if not including comprising this feature information in the area data information table To determine not stored target storing data in the first area server, thus need not first area server comprehensively search for Stored each data and the characteristic information for obtaining each data, to judge whether to have stored target storing data, this makes Determine whether to have stored that target storing data is more convenient, quick, improves the experience of user.
With reference to Fig. 7, Fig. 7 is the structural schematic diagram of another data storage device provided in an embodiment of the present invention, is applied to First area server in data-storage system, data-storage system include: a global server and multiple regions service Device, wherein global server, the region for storing in the server of each region storing data and storage storing data take The corresponding relationship being engaged between device, in the device, data memory module 505, may include: uploading instructions sending submodule 505a and First data sub-module stored 505b;
Wherein, uploading instructions sending submodule 505a has stored target storage number for showing in query result According to region server in the case where, to terminal send be directed to target storing data data uploading instructions;
First data sub-module stored 505b stores number according to the target that data uploading instructions upload for receiving terminal According to, and store target storing data.
Using embodiment illustrated in fig. 7, in the inquiry through global server, determination has stored target storing data In the case where region server, target storing data is uploaded by terminal, user is needed in scheme provided in an embodiment of the present invention The target data of upload carries out global re-scheduling processing, and user can effectively be avoided to upload in the region server of one's respective area not Storage but the stored data in the region server in other regions.
With reference to Fig. 8, Fig. 8 is the structural schematic diagram of another data storage device provided in an embodiment of the present invention, is applied to First area server in data-storage system, data-storage system include: a global server and multiple regions service Device, wherein global server, the region for storing in the server of each region storing data and storage storing data take The corresponding relationship being engaged between device, in the device, data memory module 505 may include: that mark obtains submodule 505c, mark Select submodule 505d and the second data sub-module stored 505e;
Wherein, mark obtains submodule 505c, for showing to have stored the area of target storing data in query result In the case where domain server, according to query result, the mark for having stored the region server of target storing data is obtained;
Mark selection submodule 505d, for selecting one from mark obtained according to preset mark alternative condition The mark of a region server;
Second data sub-module stored 505e is deposited for obtaining target from the corresponding region server of selected mark Data are stored up, and store target storing data.
In a kind of specific implementation, mark selection submodule 505d may include: reference total degree obtaining unit, secondary Number judging unit and mark selecting unit (being not shown in Fig. 8);
Wherein, total degree obtaining unit is quoted, for obtaining the reference total degree of target storing data;
Frequency judging unit quotes whether total degree is greater than preset times for judging, if it has, then triggering mark selection Unit;
Selecting unit is identified, for selecting the mark of a region server from mark obtained.
The area for having stored target storing data is determined in the inquiry through global server using embodiment illustrated in fig. 8 In the case where domain server, target storing data is obtained from a region server for having stored the target storing data, this It carries out global re-scheduling to the target data that user needs to upload in the scheme that inventive embodiments provide to handle, it may not be necessary to upload Stored data in not stored but region server in other regions, save user's in the region server of one's respective area The time of network flow and storing data improves the experience of user.
Corresponding with date storage method above-mentioned and data storage device, the embodiment of the invention also provides a kind of electronics Equipment.
With reference to Fig. 9, Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment packet It includes: shell 901, processor 902, memory 903, circuit board 904 and power circuit 905, wherein circuit board 904 is placed in shell The space interior that body 901 surrounds, processor 902 and memory 903 are arranged on circuit board 904;Power circuit 905, for for The each circuit or device of electronic equipment are powered;Memory 903 is for storing executable program code;Processor 902 passes through reading The executable program code stored in access to memory 903 runs program corresponding with executable program code, for executing Following steps:
Obtain the characteristic information T1 for target storing data that terminal is sent;
According to the characteristic information T1, judge the target storage number whether has been stored in the first area server According to;
If it has not, then sending data inquiry request to the global server, wherein wrapped in the data inquiry request Contain: the characteristic information T1;
It receives the global server and data is carried out according to the characteristic information T1 for including in the data inquiry request The query result of inquiry;
According to the query result, rule is obtained according to preset data, obtains the target storing data, and store institute State target storing data.
Processor 902 passes through operation executable program code to the specific implementation procedure and processor 902 of above-mentioned steps Come the step of further executing, the description of Fig. 1-8 illustrated embodiment of the present invention may refer to, details are not described herein.
Therefore in the embodiment of the present invention, what server acquisition terminal in first area was sent is directed to target storing data Characteristic information T1 judge whether stored target storing data in the first area server according to this feature information T1, If not stored, data inquiry request is sent to global server, is receiving global server according to the data inquiry request After the query result of feedback, according to the query result, rule is obtained according to preset data, obtains target storing data, and deposit Target storing data is stored up, global re-scheduling is carried out to the target data that user needs to upload in scheme provided in an embodiment of the present invention Processing, it may not be necessary to upload stored in not stored in the region server of one's respective area but region server in other regions Data save the network flow of user and the time of storing data, improve the experience of user.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
The embodiment of the invention also provides a kind of storage mediums, wherein for storing application program, this is answered the storage medium With program for executing date storage method provided in an embodiment of the present invention.Wherein, date storage method, comprising:
Obtain the characteristic information T1 for target storing data that terminal is sent;
According to the characteristic information T1, judge the target storage number whether has been stored in the first area server According to;
If it has not, then sending data inquiry request to the global server, wherein wrapped in the data inquiry request Contain: the characteristic information T1;
It receives the global server and data is carried out according to the characteristic information T1 for including in the data inquiry request The query result of inquiry;
According to the query result, rule is obtained according to preset data, obtains the target storing data, and store institute State target storing data.
The embodiment of the invention also provides a kind of application programs, wherein the application program for executing this hair at runtime The date storage method that bright embodiment provides.Wherein, date storage method, comprising:
Obtain the characteristic information T1 for target storing data that terminal is sent;
According to the characteristic information T1, judge the target storage number whether has been stored in the first area server According to;
If it has not, then sending data inquiry request to the global server, wherein wrapped in the data inquiry request Contain: the characteristic information T1;
It receives the global server and data is carried out according to the characteristic information T1 for including in the data inquiry request The query result of inquiry;
According to the query result, rule is obtained according to preset data, obtains the target storing data, and store institute State target storing data.
For device, electronic equipment, storage medium and application program embodiment, since it is substantially similar to method reality Example is applied, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (15)

1. a kind of date storage method, applied to the first area server in data-storage system, which is characterized in that the number It include: a global server and multiple regions server according to storage system, wherein the global server, it is each for storing The corresponding relationship between the region server of storing data of storing data and storage, the method packet in a region server Include step:
Obtain the characteristic information T for target storing data that terminal is sent1
According to the characteristic information T1, judge the target storing data whether has been stored in the first area server;
If it has not, then sending data inquiry request to the global server, wherein comprising described in the data inquiry request Characteristic information T1
The global server is received according to the characteristic information T for including in the data inquiry request1Carry out data query Query result;
In the case where the query result shows to have stored the region server of the target storing data, from having stored The target storing data is obtained in the region server of the target storing data, and the target storing data is stored in In the first area server.
2. method according to claim 1, which is characterized in that described according to the characteristic information T1, judge the first area Whether the target storing data has been stored in server, comprising:
According to the characteristic information T1, whether judge in preset area data information table comprising the characteristic information T1, wherein The preset area data information table is stored in the first area server, and the area data information table is for storing The characteristic information of stored each data in the first area server;
If not including, the not stored target storing data in the first area server is determined.
3. method according to claim 2, which is characterized in that the area data information table is also used to store firstth area The reference number of stored each data in domain server;The method also includes:
In the case where having stored the target storing data in determining the first area server, refuses the terminal and upload The target storing data, and the reference number of the stored target storing data of bulk registration.
4. method according to claim 2, which is characterized in that described to show to have stored the mesh in the query result In the case where the region server for marking storing data, obtained from the region server for having stored the target storing data described Target storing data, and after the target storing data is stored in the first area server, further includes:
According to the characteristic information T1, update the area data information table.
5. the method according to claim 1, wherein the method also includes:
In the case where the query result shows to have stored the region server of the target storing data, Xiang Suoshu Terminal sends the data uploading instructions for being directed to the target storing data;
The target storing data that the terminal is uploaded according to the data uploading instructions is received, and the target is stored into number According to being stored in the first area server.
6. the method according to claim 1, wherein it is described show to have stored in the query result it is described In the case where the region server of target storing data, institute is obtained from the region server for having stored the target storing data Target storing data is stated, and the target storing data is stored in the first area server, comprising:
In the case where query result shows to have stored the region server of the target storing data, according to the inquiry As a result, obtaining the mark for having stored the region server of the target storing data;
According to preset mark alternative condition, the mark of a region server is selected from mark obtained;
Obtain the target storing data from the corresponding region server of selected mark, and by the target storing data It is stored in the first area server.
7. according to the method described in claim 6, it is characterized in that, described according to preset mark alternative condition, from being obtained Mark in select a region server mark, comprising:
Obtain the reference total degree of the target storing data;
Judge whether the reference total degree is greater than preset times;
If it has, then selecting the mark of a region server from mark obtained.
8. a kind of data storage device, applied to the first area server in data-storage system, which is characterized in that the number It include: a global server and multiple regions server according to storage system, wherein the global server, it is each for storing The corresponding relationship between the region server of storing data of storing data and storage, described device packet in a region server Include: characteristic information obtains module, data judgment module, inquiry request sending module, query result receiving module and data storage Module;
Wherein, the characteristic information obtains module, for obtaining the characteristic information T for target storing data of terminal transmission1
The data judgment module, for according to the characteristic information T1, judge whether stored in the first area server The target storing data, if it has not, then triggering the inquiry request sending module;
The inquiry request sending module, for sending data inquiry request to the global server, wherein the data are looked into Asking includes the characteristic information T in request1
The query result receiving module, for receiving the global server according to the institute for including in the data inquiry request State characteristic information T1Carry out the query result of data query;
The data memory module, for showing that the region for having stored the target storing data takes in the query result It is engaged in obtaining the target storing data from the region server for having stored the target storing data, and will in the case where device The target storing data is stored in the first area server.
9. device according to claim 8, which is characterized in that the data judgment module, comprising: characteristic information judges submodule Block and data decision sub-module;
Wherein, the characteristic information judging submodule, for according to the characteristic information T1, judge preset area data information It whether include the characteristic information T in table1If not including, the data judging submodule is triggered, wherein described preset Area data information table is stored in the first area server, and the area data information table is for storing firstth area The characteristic information of stored each data in domain server;
The data judging submodule, for determining the not stored target storing data in the first area server.
10. device according to claim 9, which is characterized in that the area data information table is also used to store described first The reference number of stored each data in region server;
Described device further include: reference number accumulation module is used for, and has been stored in determining the first area server described In the case where target storing data, refuses the terminal and upload the target storing data, and bulk registration is stored described The reference number of target storing data.
11. device according to claim 9, which is characterized in that described device further include: information table update module is used for root According to the characteristic information T1, update the area data information table.
12. device according to claim 8, which is characterized in that the data memory module, comprising: uploading instructions are sent Submodule and the first data sub-module stored;
Wherein, the uploading instructions sending submodule, for showing that having stored the target deposits in the query result In the case where the region server for storing up data, Xiang Suoshu terminal sends the data uploading instructions for being directed to the target storing data;
The first data sub-module stored, the target uploaded for receiving the terminal according to the data uploading instructions Storing data, and the target storing data is stored in the first area server.
13. device according to claim 8, which is characterized in that the data memory module, comprising: mark obtains submodule Block, mark selection submodule and the second data sub-module stored;
Wherein, the mark obtains submodule, for showing to have stored the area of the target storing data in query result In the case where domain server, according to the query result, the mark for having stored the region server of the target storing data is obtained Know;
The mark selects submodule, for selecting an area from mark obtained according to preset mark alternative condition The mark of domain server;
The second data sub-module stored is deposited for obtaining the target from the corresponding region server of selected mark Data are stored up, and the target storing data is stored in the first area server.
14. device according to claim 13, which is characterized in that the mark selects submodule, comprising: reference total degree Obtaining unit, frequency judging unit and mark selecting unit;
Wherein, the reference total degree obtaining unit, for obtaining the reference total degree of the target storing data;
The frequency judging unit, for judging whether the reference total degree is greater than preset times, if it has, then described in triggering Identify selecting unit;
The mark selecting unit, for selecting the mark of a region server from mark obtained.
15. a kind of electronic equipment, which is characterized in that the electronic equipment includes: shell, processor, memory, circuit board and electricity Source circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply Circuit, for each circuit or the device power supply for electronic equipment;Memory is for storing executable program code;The electronics Equipment as the first area server in data-storage system, the data-storage system include: a global server and Multiple regions server, wherein the global server, for having stored in the server of each region storing data and storage Corresponding relationship between the region server of storing data, processor is by reading the executable program code stored in memory Run program corresponding with executable program code, for executing following steps:
Obtain the characteristic information T for target storing data that terminal is sent1
According to the characteristic information T1, judge the target storing data whether has been stored in the first area server;
If it has not, then sending data inquiry request to the global server, wherein comprising described in the data inquiry request Characteristic information T1
The global server is received according to the characteristic information T for including in the data inquiry request1Carry out data query Query result;
In the case where the query result shows to have stored the region server of the target storing data, from having stored The target storing data is obtained in the region server of the target storing data, and the target storing data is stored in In the first area server.
CN201511032229.4A 2015-12-31 2015-12-31 Data storage method and device and electronic equipment Active CN105701168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511032229.4A CN105701168B (en) 2015-12-31 2015-12-31 Data storage method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511032229.4A CN105701168B (en) 2015-12-31 2015-12-31 Data storage method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105701168A CN105701168A (en) 2016-06-22
CN105701168B true CN105701168B (en) 2019-07-12

Family

ID=56226812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511032229.4A Active CN105701168B (en) 2015-12-31 2015-12-31 Data storage method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105701168B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062727B (en) * 2018-06-20 2023-04-14 平安科技(深圳)有限公司 Data synchronization system and method
CN109151061B (en) * 2018-09-28 2021-08-03 视联动力信息技术股份有限公司 Data storage method and device
JP2021158536A (en) * 2020-03-27 2021-10-07 本田技研工業株式会社 Communication system and control method therefor
CN112221119A (en) * 2020-10-19 2021-01-15 珠海金山网络游戏科技有限公司 Game prop processing system, method and device
CN113271261A (en) * 2021-05-19 2021-08-17 深圳爱特天翔科技有限公司 Data distribution method, terminal device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873641A (en) * 2005-06-02 2006-12-06 富士施乐株式会社 Data management system, data server, data management method
CN101534322A (en) * 2009-04-13 2009-09-16 腾讯科技(深圳)有限公司 File upload system and file upload method
CN103002029A (en) * 2012-11-26 2013-03-27 北京百度网讯科技有限公司 Management method, system and client for uploaded files
CN103823807A (en) * 2012-11-16 2014-05-28 深圳市腾讯计算机系统有限公司 Data de-duplication method, device and system
CN103929453A (en) * 2013-01-15 2014-07-16 腾讯科技(深圳)有限公司 Processing method, device and system for data uploading

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873641A (en) * 2005-06-02 2006-12-06 富士施乐株式会社 Data management system, data server, data management method
CN101534322A (en) * 2009-04-13 2009-09-16 腾讯科技(深圳)有限公司 File upload system and file upload method
CN103823807A (en) * 2012-11-16 2014-05-28 深圳市腾讯计算机系统有限公司 Data de-duplication method, device and system
CN103002029A (en) * 2012-11-26 2013-03-27 北京百度网讯科技有限公司 Management method, system and client for uploaded files
CN103929453A (en) * 2013-01-15 2014-07-16 腾讯科技(深圳)有限公司 Processing method, device and system for data uploading

Also Published As

Publication number Publication date
CN105701168A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105701168B (en) Data storage method and device and electronic equipment
US8392407B2 (en) Method, apparatus and system of searching and downloading mobile telephone file
CN108540816B (en) Live video acquisition method and device and storage medium
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN106101982B (en) A kind of application program method for down loading and system
CN102314408B (en) Method, device, equipment and system for acquiring configuration information and configuring
CN101360098A (en) Customer behavior attribute determining method, apparatus, system and advertisement releasing method and system
CN103327121A (en) P2P (Peer-to-Peer Network) network resource transmission method and device for same
CN103139173A (en) Terminal equipment, media exchange network system, media business downloading method and system
CN106453460B (en) File distribution method, device and system
CN105187560A (en) Cloud server-based data pushing method and device
CN112104897B (en) Video acquisition method, terminal and storage medium
US9571537B2 (en) Content acquisition device and method
CN101800731A (en) Network transmission management server, network transmission management method and network transmission system
CN103970743A (en) Method and system for recommending individualized information during search and search engine
EP3370166B1 (en) Method and apparatus for model parameter fusion
CN110213662A (en) A kind of VOD method, server, client and video on-demand system
CN104580365B (en) A kind of picture-taking position selection method and relevant device
CN108141782B (en) Apparatus and method for transmitting or receiving media asset identification information in communication system
CN108156257A (en) A kind of information-pushing method and device
CN105991403A (en) Instant messaging (IM) based multimedia sharing method and apparatus
CN107968963A (en) The method and apparatus for showing local video front cover
CN108786117A (en) A kind of mobile phone games player group technology, device and server
CN104469428A (en) Instantaneous transmission method and device for videos and texts
CN107968812A (en) The method and device of synchronous local resource and Internet resources

Legal Events

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