CN105574083B - A kind of method for writing data, system and method for reading data and system - Google Patents
A kind of method for writing data, system and method for reading data and system Download PDFInfo
- Publication number
- CN105574083B CN105574083B CN201510904229.2A CN201510904229A CN105574083B CN 105574083 B CN105574083 B CN 105574083B CN 201510904229 A CN201510904229 A CN 201510904229A CN 105574083 B CN105574083 B CN 105574083B
- Authority
- CN
- China
- Prior art keywords
- data
- binary data
- write
- reading
- server
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- 238000012546 transfer Methods 0.000 claims description 28
- 238000003860 storage Methods 0.000 claims description 17
- 230000005540 biological transmission Effects 0.000 claims description 14
- 229910002056 binary alloy Inorganic materials 0.000 claims description 13
- 238000013500 data storage Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 7
- 238000012423 maintenance Methods 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 19
- 241001269238 Data Species 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000004888 barrier function Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/113—Details of archiving
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/164—File meta data generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/211—Schema design and management
Abstract
The present invention provides a kind of method for writing data, system and method for reading data and system, data reading system and data writing systems include client, binary data server and database server, when the data is written, by in the non-binary data write-in database server in the data that need to be written, the binary data in the data that need to be written is written in binary data server;When reading the data, the non-binary data in data need to be read from reading in database server, the binary data that need to be read in data is read from binary data server, non-binary data is only read and write in database server, binary data is read and write in binary data server, it avoids because file is excessive in database server, and the problem of leading to be unfavorable for the access, maintenance and expansion of database server content, while keeping binary data read-write more convenient and flexible and efficient.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of method for writing data, system and reading data
Method and system.
Background technique
In information system, it is often necessary to the binary data of some pictures and/or video etc. is stored, and this
A little binary data have bigger file size compared with non-binary data, if by binary data with nonbinary number number
According to being equally stored in database server, it will cause file in database server excessive, be unfavorable for database server
The access and maintenance of content, are also unfavorable for the expansion of database server content.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method for writing data, system and method for reading data and system, with
Binary data is equally stored in database server by solution with nonbinary number data in the prior art, it will causes to count
It is excessive according to file in the server of library, it is unfavorable for the access and maintenance of database server content, is also unfavorable for database server
The problem of expansion of content.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
A kind of data writing systems, comprising: write-in client, the write-in binary data server for storing binary data
With the write-in database server of storage non-binary data;Wherein,
Said write client, the data write instruction provided for receiving user are true according to the data write instruction
Determine the data that user need to be written;Judge whether the data that need to be written include binary data, if so, by the binary system
Data are sent to said write binary data server;Judge whether the data that need to be written include non-binary data,
If so, the non-binary data is sent to said write database server;
Said write binary data server, for receiving the binary data of said write client transmission, to institute
Binary data is stated to be stored;
Said write database server, for receiving the non-binary data of said write client transmission, to described
Non-binary data is stored.
Wherein, the data writing systems further include: spare write-in binary data server and/or spare write-in data
Library server;Wherein,
The spare write-in binary data server, for connecing when said write binary data server failure
The binary data of said write binary data server transfer is received, and is turned receiving said write binary data server
After all binary data moved, the binary data that said write client is sent is received, to the received binary number
According to being stored;
The spare write-in database server, for being write described in reception when said write database server failure
Enter database server transfer non-binary data, and receive said write database server transfer all non-two into
After data processed, the non-binary data that said write client is sent is received, the received non-binary data is deposited
Storage.
A kind of method for writing data, based on above-mentioned data writing systems, the method for writing data includes:
Write-in client receives the data write instruction that user provides, and determines that user need to write according to the data write instruction
The data entered;
Said write client judges whether the data that need to be written include binary data, if so, by described two
Binary data is sent to write-in binary data server, and said write binary data server receives said write client
The binary data of transmission stores the binary data;
Said write client judges whether the data that need to be written include non-binary data, if so, will be described
Non-binary data is sent to write-in database server, and said write database server receives said write client and sends
Non-binary data, the non-binary data is stored.
Wherein, it is described to the binary data carry out storage include:
Said write binary data server determines the first write time point for receiving the binary data;
Judge whether there is the corresponding file of the first write time point;
If so, by the binary data storage into the corresponding file of the first write time point;
If it is not, the corresponding file of the first write time point is then created, by the binary data storage to institute
It states in the corresponding file of the first write time point;
Wherein, it is described to the non-binary data carry out storage include:
Said write database server determines the second write time point for receiving the non-binary data;
Judge whether there is the corresponding file of the second write time point;
If so, storing the non-binary data into the corresponding file of the second write time point;
If it is not, then create the corresponding file of the second write time point, by the non-binary data store to
In the corresponding file of the second write time point.
Wherein, the method for writing data further include:
Detection said write binary data server whether break down, if breaking down, by said write two into
Binary data is transferred to spare write-in binary data server in data server processed;
The all of said write binary data server transfer are received in the spare write-in binary data server
After binary data, the binary data that need to be written in data is sent to the spare write-in binary system by said write client
Data server, the spare write-in binary data server receives the binary data that said write client is sent, right
The binary data is stored.
Wherein, the method for writing data further include:
Whether detection said write database server breaks down, if breaking down, said write database is taken
Binary data is transferred to spare write-in database server in business device;
All binary numbers of said write database server transfer are received in the spare write-in database server
According to rear, the non-binary data that need to be written in data is sent to the spare write-in database service by said write client
Device, it is described it is spare write-in database server receive said write client send non-binary data, to described non-two into
Data processed are stored.
A kind of data reading system, comprising: reading client, the reading binary data server for storing binary data
With the reading database server of storage non-binary data;Wherein,
The reading client, the data read command provided for receiving user are true according to the data read command
Determine the data that user need to read, judge whether the data that need to be read include binary data, if so, reading two to described
Binary data server sends the first data read request, and receives the readings binary data server described in receive
The binary data returned after first data read request judges whether the data that need to be read include nonbinary number
According to, if so, to the reading database server the second data read request of transmission, and receive the reading database service
The non-binary data that device returns after receiving second data read request;
The reading binary data server is asked for receiving the first reading data that the reading client is sent
It asks, searches the corresponding binary data of the first data read request, the binary data is returned into the reading client
End;
The reading database server, the second data read request sent for receiving the reading client, is looked into
The corresponding non-binary data of the second data read request is looked for, the non-binary data is returned into the reading client
End.
Wherein, the data reading system further include: spare reading binary data server and/or spare reading data
Library server;Wherein,
The spare reading binary data server, for connecing when the reading binary data server failure
The binary data of the reading binary data server transfer is received, and is turned receiving the reading binary data server
After all binary data moved, the first data read request that the reading client is sent is received, searches first number
According to the corresponding binary data of read requests, the binary data is returned into the reading client;
The spare reading database server, for receiving the reading when the reading database server failure
The binary data for taking database server to shift, and in all binary numbers for receiving the reading database server transfer
According to rear, the second data read request that the reading client is sent is received, it is corresponding to search second data read request
The non-binary data is returned to the reading client by non-binary data.
A kind of method for reading data, based on above-mentioned data reading system, comprising:
Reading client receives the data read command that user provides, and determines that user needs to read according to the data read command
The data taken;
The reading client judges whether the data that need to be read include binary data, if so, to the reading
Binary data server is taken to send the first data read request, the reading binary data server receives the reading visitor
The first data read request that family end is sent searches the corresponding binary data of the first data read request, by described two
Binary data returns to the reading client, and the reading client receives the reading binary data server and receiving
The binary data returned after first data read request;
The reading client judges whether the data that need to be read include non-binary data, if so, to described
Reading database server sends the second data read request, and the reading database server receives the reading client hair
The second data read request sent searches the corresponding non-binary data of the second data read request, by described non-two into
Data processed return to the reading client, and the reading client receives the reading database server and receiving described second
The non-binary data returned after data read request.
Wherein, the lookup corresponding binary data of the first data read request includes:
The reading binary data server determines the corresponding first write time point of the binary data;
The binary data is searched in the corresponding file of the first write time point;
Wherein, the lookup corresponding non-binary data of the second data read request includes:
The reading database server determines the corresponding second write time point of the non-binary data;
The binary data is searched in the corresponding file of the second write time point.
Wherein, the method for writing data further include:
Detect whether the reading binary data server breaks down, if breaking down, by it is described read two into
Binary data is transferred to spare reading binary data server in data server processed;
The all of the reading binary data server transfer are received in the spare binary data server that reads
After binary data, the reading client sends the first reading data to the spare reading binary data server and asks
It asks, the spare binary data server that reads receives the first data read request that the reading client is sent, and searches
The binary data is returned to the reading client by the corresponding binary data of the first data read request;
Wherein, the method for writing data further include:
It detects whether the reading database server breaks down, if breaking down, the reading database is taken
Binary data is transferred to spare reading database server in business device;
All binary numbers of the reading database server transfer are received in the spare reading database server
According to rear, the reading client sends the second data read request, the spare reading to the spare reading database server
It takes database server to receive the second data read request that the reading client is sent, searches second reading data and ask
Corresponding non-binary data is sought, the non-binary data is returned into the reading client.
Based on the above-mentioned technical proposal, method for writing data provided in an embodiment of the present invention, system and method for reading data and
System, data reading system and data writing systems include client, binary data server and database server, are write
When entering data, client receives the data write instruction that user provides, and determines what user need to be written according to the data write instruction
Data, if including binary data in the data that need to be written, which is sent to binary data by client
Server is stored, if including non-binary data in the data that need to be written, client sends out the non-binary data
Database server is given to be stored;When reading data, client receives the data read command that user provides, according to the number
The data that need to read of user are determined according to reading to instruct, if in the data that need to be read including binary data, client is to two
Binary data server sends the first data read request, and reading this from the binary data server need to read in data
Binary data, if in the data that need to be read including non-binary data, client sends second to database server
Data read request, this is read from the database server need to read the non-binary data in data.When the data is written,
Non-binary data in the data that need to be written is written in database server, by the binary data in the data that need to be written
It is written in binary data server, correspondingly, when reading the data, need to be read in data from being read in database server
The binary data part that need to be read in data is read, only in number in non-binary data part from binary data server
According to non-binary data is read and write in the server of library, binary data is read and write in binary data server, is avoided because of data
File is excessive in the server of library, and the problem of lead to be unfavorable for the access of database server content, maintenance and expand, make simultaneously
Binary data read-write is more convenient and flexible and efficient.
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
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the system block diagram of data writing systems provided in an embodiment of the present invention;
Fig. 2 is the another system block diagram of data writing systems provided in an embodiment of the present invention;
Fig. 3 is the flow chart of method for writing data provided in an embodiment of the present invention;
Fig. 4 is the method flow stored in method for writing data provided in an embodiment of the present invention to binary data
Figure;
Fig. 5 is the method flow stored in method for writing data provided in an embodiment of the present invention to non-binary data
Figure;
Fig. 6 is the side that binary data server is written in cut-in stand-by in method for writing data provided in an embodiment of the present invention
Method flow chart;
Fig. 7 is the method flow of switching write-in database server in method for writing data provided in an embodiment of the present invention
Figure;
Fig. 8 is the system block diagram of data reading system provided in an embodiment of the present invention;
Fig. 9 is the another system block diagram of data reading system provided in an embodiment of the present invention;
Figure 10 is the flow chart of method for reading data provided in an embodiment of the present invention;
Figure 11 is the method flow diagram that binary data is read in method for reading data provided in an embodiment of the present invention;
Figure 12 is the method flow diagram that non-binary data is read in method for reading data provided in an embodiment of the present invention;
Figure 13 is that cut-in stand-by reads binary data server in method for reading data provided in an embodiment of the present invention
Method flow diagram;
Figure 14 is the method flow for switching reading database server in method for reading data provided in an embodiment of the present invention
Figure.
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.
Fig. 1 is the system block diagram of data writing systems provided in an embodiment of the present invention, when the data is written, by what need to be written
In non-binary data write-in database server in data, binary system is written into the binary data in the data that need to be written
It in data server, avoids because file is excessive in database server, and leads to the visit for being unfavorable for database server content
The problem of asking, safeguard and expanding, while keeping binary data write-in more convenient and flexible and efficient;Referring to Fig.1, which writes
Entering system may include: that client 10, the write-in binary data server 20 for storing binary data and storage non-two is written
The write-in database server 30 of binary data.
When needing that data are written, user can provide data write-in to write-in client 10 by human-computer interaction interface etc. and refer to
It enables, correspondingly, the data write instruction that write-in client 10 provides reception user.Write-in client 10 receives what user provided
After data write instruction, data that user need to be written will be determined according to the data write instruction, judged in the data that need to be written
It whether include binary data and non-binary data.
If including binary data in the data that need to be written, client 10 is written by the binary data and is sent to write-in
Binary data server 20, if the data that need to be written include middle non-binary data, be written client 10 by this non-two
Binary data is sent to write-in database server 30 and is stored.
That is, client 10, which is written, need to write this if binary data is only included in the data that need to be written
The data entered are all sent to write-in binary data server 20;If non-binary data is only included in the data that need to be written,
Client 10, which is then written, will all be sent to the data that need to be written write-in database server 30;If the data that need to be written
In not only included binary data but also include non-binary data, then client 10 is written will be by two in the data that need to be written
Binary data is sent to write-in binary data server 20, and the non-binary data in the data that need to be written is sent to and is write
Enter database server 30.
Correspondingly, when the data is written, if in the data that need to be written including binary data, write-in client 10 needs this
Binary data in the data of write-in is sent to write-in binary data server 20, and write-in binary data server 20 will
The binary data that write-in client 10 is sent is received, write-in binary data server 20 will receive write-in visitor
After the binary data that family end 10 is sent, which is stored.
Optionally, binary data server 20 is written after receiving the binary data that write-in client 10 is sent,
First the received binary data can be added in a queue, then be carried out according to the data of the team's head obtained in the queue every time
The mode of storage, all binary data to send to write-in client 10 are orderly stored.
Correspondingly, when the data is written, if in the data that need to be written including non-binary data, write-in client 10 should
The non-binary data in data that need to be written is sent to write-in database server 30, and write-in database server 30 will receive
The non-binary data sent to write-in client 10, write-in database server 30 will receive write-in client 10
After the non-binary data sent, which is stored.
Optionally, database server 30 is written after receiving the non-binary data that write-in client 10 is sent,
First the received non-binary data can be added in a queue, then according to the data of the team's head obtained in the queue every time into
The mode of row storage, all non-binary datas to send to write-in client 10 are orderly stored.
Based on the above-mentioned technical proposal, data writing systems provided in an embodiment of the present invention, including write-in client, write-in two
Binary data server and write-in database server, when data are written, client receives the data write instruction that user provides,
The data that user need to be written are determined according to the data write instruction, if in the data that need to be written including binary data, visitor
The binary data is sent to binary data server and stored by family end, if the data that need to be written include in non-two into
Data processed, then the non-binary data is sent to database server and stored by client.When the data is written, it need to write
In non-binary data write-in database server in the data entered, by the binary data write-in two in the data that need to be written
In binary data server, non-binary data is only read and write in database server, is read and write in binary data server
Binary data is avoided because file is excessive in database server, and cause to be unfavorable for database server content access,
The problem of maintenance and expansion, while keeping binary data write-in more convenient and flexible and efficient.
Optionally, Fig. 2 shows the another system block diagram of data writing systems provided in an embodiment of the present invention, referring to Fig. 2,
The data writing systems can also include: spare write-in binary data server 40.
If in data writing systems only including write-in binary data server 20, when write-in binary data server
When 20 failure, data writing systems will be unable to be further continued for that normally binary data is written.Therefore, it can be written in data
System adds spare write-in binary data server 40, when detecting write-in binary data server failure 20, will write
Enter the binary data in binary data server 20 to be transferred in spare write-in binary data server 40, correspondingly,
Spare write-in binary data server 40 will receive the binary data that binary data server 20 is written and shifts, when spare
After all binary data that binary data server 40 receives the write-in transfer of binary data server 20 are written, use is spare
The write-in substitution write-in binary data server 20 of binary data server 40 continues to write-in client 10 is sent two
Binary data stores the received binary data, avoids because 20 failure of binary data server is written, and causes
It can not continue the case where normally binary data is written.
Optionally, can every prefixed time interval to write-in binary data server 20 whether failure detects.
Optionally, reference Fig. 2, the another system block diagram of data writing systems provided in an embodiment of the present invention, the data are write
Entering system can also include: spare write-in database server 50.
If in data writing systems only including write-in database server 30, when write-in 30 failure of database server
When, data writing systems will be unable to be further continued for being normally carried out non-binary data write-in.Therefore, can add in data writing systems
Add spare write-in database server 50, when detecting write-in 30 failure of database server, database server will be written
Non-binary data in 30 is transferred in spare write-in database server 50, correspondingly, spare write-in database server
50 will receive the non-binary data that database server 30 is written and shifts, and be written when spare write-in database server 50 receives
After all non-binary datas that database server 30 shifts, write-in database is substituted with spare write-in database server 50
Server 30 continues to the non-binary data that write-in client 10 is sent, and deposits to the received non-binary data
Storage is avoided because 30 failure of database server is written, and causes the case where can not continuing to be normally carried out non-binary data write-in
Occur.
Optionally, can every prefixed time interval to write-in database server 30 whether failure detects.
Data writing systems provided in an embodiment of the present invention, when the data is written, by non-two in the data that need to be written into
In data write-in database server processed, the binary data in the data that need to be written is written in binary data server,
It avoids because file is excessive in database server, and leads to the access, maintenance and expansion that are unfavorable for database server content
The problem of, while keeping binary data write-in more convenient and flexible and efficient.
Method for writing data provided in an embodiment of the present invention is introduced below, method for writing data base described below
In above-described data writing systems.
Fig. 3 is the flow chart of method for writing data provided in an embodiment of the present invention, and referring to Fig. 3, which can
To include:
Step S100: write-in client receives the data write instruction that user provides, true according to the data write instruction
Determine the data that user need to be written;
When needing that data are written, user can provide data write-in to write-in client by human-computer interaction interface etc. and refer to
It enables, correspondingly, the data write instruction that write-in client provides reception user, the data that client can be provided in reception user
After write instruction, the data that user need to be written are determined according to the data write instruction.
Step S110: said write client judges whether the data that need to be written include binary data;
Step S120: it is taken if so, the binary data is sent to write-in binary data by said write client
Business device, said write binary data server receives the binary data that said write client is sent, to the binary system
Data are stored;
The data that need to be written can only include binary data, can only include non-binary data, can also both include
Binary data includes non-binary data again.When only including binary data in the data that need to be written, or ought need to be written
When not only having included binary data in data but also having included non-binary data, write-in client will determine to wrap in the data that need to be written
Include binary data.
If write-in client determines in the data that need to be written to include binary data, will include in the data that need to be written
Binary data be sent to write-in binary data server, write-in client is received by the write-in binary data server
After holding the binary data sent, which is stored.
Optionally, write-in binary data server, can be first after receiving the binary data that write-in client is sent
The received binary data is added in a queue, is then stored according to the data of the team's head obtained in the queue every time
Mode, come to write-in client send all binary data orderly stored.
Step S130: said write client judges whether the data that need to be written include non-binary data;
Step S140: if so, the non-binary data is sent to write-in database service by said write client
Device, said write database server receives the non-binary data that said write client is sent, to the nonbinary number
According to being stored.
When only including non-binary data in the data that need to be written, or working as both includes binary number in the data that need to be written
When according to again including non-binary data, write-in client will determine to include non-binary data in the data that need to be written.
If write-in client determines in the data that need to be written to include non-binary data, will be wrapped in the data that need to be written
The non-binary data included is sent to write-in database server, receives write-in client hair by the write-in database server
After the non-binary data sent, which is stored.
Optionally, write-in database server, can also be first after receiving the non-binary data that write-in client is sent
The received non-binary data is added in a queue, is then deposited according to the data of the team's head obtained in the queue every time
The mode of storage, all non-binary datas to send to write-in client are orderly stored.
That is, client, which will be written, only can need to write this if binary data is only included in the data that need to be written
The data entered are sent to write-in binary data server and are stored;If nonbinary number is only included in the data that need to be written
According to, then be written client the data that need to be written can only will be sent to write-in database server store;If needing to be written
Data in not only include binary data but also include non-binary data, then client is written data will need to be written in this and both sent out
It gives write-in binary data server to be stored, and is sent to database server and is stored, specifically, write-in client
The binary data that end will include in the data that need to be written is sent to write-in binary data server and is stored, by this
The non-binary data in data that need to be written is sent to write-in database server and is stored.
Optionally, Fig. 4 shows in method for writing data provided in an embodiment of the present invention and stores to binary data
Method flow diagram, referring to Fig. 4, which may include:
Step S200: when said write binary data server determines the first write-in for receiving the binary data
Between point;
To avoid storing excess file in a catalogue, therefore, write-in binary data server can will receive two into
Data processed are respectively stored in different files according to receiving time.
For example, if on August 8,1 2015 2 divide 3 seconds 456 milliseconds receive write-in client send binary number
According to file " 2O150808 " can then being established, by all binary data storages received on the 8th of August in 2015 at this
In " 2O15O808 " file, similarly, file " 2O1508 " storage received binary system of all in Augusts, 2015 also can establish
Data, or establish the binary data received when " 2O15080801 " is stored all August in 2015 8 days 1.
Optionally, the specific division that binary data server in-list is written, can take according to the write-in binary data
The number of business device received binary data daily determines, to avoid the overabundance of data that stores in certain file or how many.
If write-in binary data server is according to receiving time point of binary data for the received binary system
Data are stored in different files, then the write-in binary data server can receive the two of write-in client transmission
After binary data, determines the time point for receiving the binary data, obtain the first write time point.
Optionally, write-in binary data server may be used also after receiving the binary data that write-in client is sent
The geographical location information and classification information of the binary data are further determined that and store, in order to the write-in binary data
When server reads data, data read rates and precision are improved.
Step S210: the corresponding file of the first write time point is judged whether there is;
Step S220: if so, by the binary data storage to the corresponding file of the first write time point
In folder;
If the corresponding file of the first write time point has been created, directly by received binary data storage
Into the corresponding file of the first write time point.
Step S230: if it is not, the corresponding file of the first write time point is then created, by the binary data
It stores into the corresponding file of the first write time point.
If the corresponding file of the first write time point is not created, need first to create the first write time point phase
Corresponding file, then again by the binary data storage into the corresponding file of the first write time point.
Optionally, when the binary data stored in write-in binary data server takes more than the write-in binary data
It, can be laggard according to the elder generation of time by the binary data stored in the write-in binary data server when the memory capacity of business device
Row is deleted, and the binary number data of oldest stored are deleted at first.
Optionally, Fig. 5 shows in method for writing data provided in an embodiment of the present invention and deposits to non-binary data
The method flow diagram of storage, referring to Fig. 5, which may include:
Step S300: said write database server determines the second write time for receiving the non-binary data
Point;
Likewise, to avoid storing excess file, write-in database service in a catalogue in write-in database server
Device can also will receive non-binary data and be respectively stored in different files according to receiving time.
Optionally, the specific division that database server in-list is written, can be daily according to the write-in database server
The number of received non-binary data determines, to avoid the overabundance of data that stores in certain file or how many.
If write-in database server is according to receiving time point of non-binary data for the received nonbinary
Data are stored in different files, then the write-in database server can receive write-in client send non-two into
After data processed, determines the time point for receiving the non-binary data, obtain the second write time point.
Optionally, write-in database server, can also be into after receiving the non-binary data that write-in client is sent
One step is determining and stores the geographical location information and classification information of the non-binary data, in order to the write-in database service
When device reads data, data read rates and precision are improved.
Step S310: the corresponding file of the second write time point is judged whether there is;
Step S320: if so, the non-binary data is stored text corresponding to the second write time point
In part folder;
If the corresponding file of the second write time point has been created, directly received non-binary data is deposited
Storage is into the corresponding file of the second write time point.
Step S330: if it is not, the corresponding file of the second write time point is then created, by the nonbinary number
According to storing into the corresponding file of the second write time point.
If the corresponding file of the second write time point is not created, need first to create the second write time point phase
Then corresponding file again stores the non-binary data into the corresponding file of the second write time point.
Optionally, when the non-binary data stored in write-in database server is more than the write-in database server
When memory capacity, the non-binary data stored in the write-in database server can be deleted according to the successive of time,
The nonbinary number data of oldest stored are deleted at first.
Optionally, Fig. 6 shows cut-in stand-by in method for writing data provided in an embodiment of the present invention and binary number is written
According to the method flow diagram of server, referring to Fig. 6, the method for cut-in stand-by write-in binary data server may include:
Step S400: detection;
Optionally, can every prefixed time interval to write-in binary data server whether failure detects.
Step S410: if breaking down, binary data in said write binary data server is transferred to standby
With write-in binary data server;
If write-in binary data server fail is detected, by the write-in binary data server of the failure
Interior binary data is shifted to spare write-in binary data server.
Step S420: said write binary data server is received in the spare write-in binary data server and is turned
After all binary data moved, the binary data that need to be written in data is sent to described spare write by said write client
Enter binary data server, the spare write-in binary data server receives the binary system that said write client is sent
Data store the binary data.
When spare write-in binary data server receives all of the write-in binary data server transfer of failure
After binary data, the write-in binary data server of the failure will stop working, the write-in binary data clothes of the failure
The work of business device is inherited by the spare write-in binary data server.At this point, write-in client will need to be written in data
Binary data be sent to the spare write-in binary data server, which receives should
The binary data that client is sent is written, which is stored.
Optionally, Fig. 7 shows switching write-in database server in method for writing data provided in an embodiment of the present invention
Method flow diagram, referring to Fig. 7, the method for switching write-in database server may include:
Step S500: whether detection said write database server breaks down;
Optionally, can every prefixed time interval to write-in database server whether failure detects.
Step S510: if breaking down, binary data in said write database server is transferred to spare write
Enter database server;
If detecting, write-in database server breaks down, by non-two in the write-in database server of the failure
Binary data is shifted to spare write-in binary data server.
Step S520: all of said write database server transfer are received in the spare write-in database server
After binary data, the non-binary data that need to be written in data is sent to the spare write-in data by said write client
Library server, the spare write-in database server receives the non-binary data that said write client is sent, to described
Non-binary data is stored.
When spare write-in database server receives all nonbinaries of the write-in database server transfer of failure
After data, the write-in database server of the failure will stop working, and the work of the write-in database server of the failure is by this
Spare write-in database server is inherited.At this point, write-in client will send the non-binary data that need to be written in data
The spare write-in database server is given, which receives the nonbinary of write-in client transmission
Data store the non-binary data.
Data are written in non-binary data in the data that need to be written by method for writing data provided in an embodiment of the present invention
In the server of library, by the binary data write-in binary data server in the data that need to be written, avoid because of database
File is excessive in server, and the problem of lead to be unfavorable for the access of database server content, maintenance and expand, while making two
Binary data write-in is more convenient and flexible and efficient.
Fig. 8 is the system block diagram of data reading system provided in an embodiment of the present invention, when reading the data, is taken from database
The non-binary data part that need to be read in data is read in business device, reading from binary data server need to read in data
Binary data part, avoid because file is excessive in database server, and cause to be unfavorable for database server content
Access, maintenance and expand the problem of, while make binary data write-in it is more convenient and flexible and efficient;Referring to Fig. 8, the number
It may include: reading client 100 according to reading system, store the reading binary data server 200 of binary data and deposit
Store up the reading database server 300 of non-binary data.
When needing to read data, user can provide reading data to reading client 100 by human-computer interaction interface etc.
Instruction, correspondingly, the data read command that reading client 100 provides reception user.Reading client 100 receives user and gives
After data read command out, data that user need to read will be determined according to the data read command, judge the number that need to be read
It whether include binary data and non-binary data in.
If in the data that need to be read including binary data, reading client 100 will be to reading binary data service
Device 200 sends the first data read request, and first data read request will received by reading binary data server 200
Afterwards, the corresponding binary data of the first data read request is searched, which is returned into reading client 100;If
The data that need to be read include middle non-binary data, then reading client 100 will send the to reading database server 200
Two data read requests, reading database server 300 will search second data after receiving second data read request
The non-binary data is returned to reading client 100 by the corresponding non-binary data of read requests.
Based on the above-mentioned technical proposal, data reading system provided in an embodiment of the present invention, including reading client, reading two
Binary data server and reading database server, when reading data, client receives the data read command that user provides,
The data that user need to read are determined according to the data read command, if in the data that need to be read including binary data, visitor
Family end sends the first data read request to binary data server, and reading this from the binary data server needs to read
Binary data in data, if in the data that need to be read including non-binary data, client is to database server
The second data read request is sent, this is read from the database server need to read the non-binary data in data.Work as reading
Access according to when, non-binary data part in data need to be read from reading in database server, from binary data service
The binary data part that need to be read in data is read in device, non-binary data is only read and write in database server, two
Binary data is read and write in binary data server, is avoided because file is excessive in database server, and causes to be unfavorable for counting
The problem of according to the access of library server content, maintenance and expanding, while keeping binary data read-write more convenient and flexible and high
Effect.
Optionally, Fig. 9 shows the another system block diagram of data reading system provided in an embodiment of the present invention, referring to Fig. 9,
The data writing systems can also include: spare reading binary data server 400.
Spare reading binary data server 400 is added in data reading system, when detecting reading binary data
When server failure 200, the non-binary data read in binary data server 200 is transferred to spare reading binary system
In data server 400;Correspondingly, spare reading binary data server 400, which will receive, reads binary data server
The non-binary data of 200 transfers reads binary data server when spare reading binary data server 400 receives
After all non-binary datas of 200 transfers, is substituted with spare reading binary data server 400 and read binary data clothes
Business device 200 continues to the first data read request of the transmission of reading client 100, and it is opposite to search first data read request
Binary data is answered, which is returned into reading client 100.Avoid because read binary data server 200 therefore
Barrier, and cause not continuing the case where being normally read out binary data.
Optionally, can every prefixed time interval to read binary data server 200 whether failure detects.
Optionally, referring to Fig. 9, the another system block diagram of data reading system provided in an embodiment of the present invention, data reading
Taking system can also include: spare reading database server 500.
Spare reading database server 500 is added in data reading system, when detecting reading database server 300
When failure, the non-binary data in reading database server 300 is transferred in spare reading database server 500;
Correspondingly, the non-binary data that spare reading database server 500 shifts reception reading database server 300, when
After spare reading database server 500 receives all non-binary datas that reading database server 300 shifts, use is spare
Reading database server 500 substitutes the second data that reading database server 300 continues to the transmission of reading client 100
Read requests search the corresponding non-binary data of the second data read request, which is returned and reads visitor
Family end 100.It avoids because of 300 failure of reading database server, and causes not continuing to be normally carried out non-binary data reading
The case where occur.
Optionally, can every prefixed time interval to write-in database server 300 whether failure detects.
Data reading system provided in an embodiment of the present invention, when reading the data, reading from database server needs to read
Non-binary data part of the access in, reads the binary data portion that need to be read in data from binary data server
Point, non-binary data is only read and write in database server, is read and write binary data in binary data server, is avoided
Because file is excessive in database server, and lead to asking for the access for being unfavorable for database server content, maintenance and expansion
Topic, while keeping binary data read-write more convenient and flexible and efficient.
Method for reading data provided in an embodiment of the present invention is introduced below, method for reading data base described below
In above-described data reading system.
Figure 10 is the flow chart of method for reading data provided in an embodiment of the present invention, referring to Fig.1 0, the method for reading data
May include:
Step S600: reading client receives the data read command that user provides, true according to the data read command
Determine the data that user need to read;
When needing to read data, user can provide reading data to reading client 100 by human-computer interaction interface etc.
Instruction, correspondingly, the data read command that reading client 100 provides reception user, reading client 100 can be used receiving
After the data read command that family provides, the data that user need to read are determined according to the data read command.
Step S610: the reading client judges whether the data that need to be read include binary data;
Step S620: if so, the reading client sends the first data to the reading binary data server
Read requests, the binary data server that reads receive the first data read request that the reading client is sent, look into
The corresponding binary data of the first data read request is looked for, the binary data is returned into the reading client, institute
It states reading client and receives what the reading binary data server returned after receiving first data read request
The binary data;
The data that need to be read can only include binary data, can only include non-binary data, can also both include
Binary data includes non-binary data again.When only including binary data in the data that need to be read, or ought need to read
When not only having included binary data in data but also having included non-binary data, reading client will determine to wrap in the data that need to be read
Include binary data.
It, will be to reading binary data service if reading client determines to include binary data in the data that need to be read
Device sends the first data read request, which will look into after receiving first data read request
The corresponding binary data of the first data read request is looked for, which is returned into the reading client.
Step S630: the reading client judges whether the data that need to be read include non-binary data;
Step S640: if so, the reading client sends the second reading data to the reading database server
Request, the reading database server receive the second data read request that the reading client is sent, and search described the
The non-binary data is returned to the reading client, the reading by the corresponding non-binary data of two data read requests
Take that client receives that the reading database server returns after receiving second data read request described non-two into
Data processed.
When only including non-binary data in the data that need to be read, or working as both includes binary number in the data that need to be read
When according to again including non-binary data, reading client will determine to include non-binary data in the data that need to be read.
If reading client determines to include non-binary data in the data that need to be read, will be to the reading database service
Device sends the second data read request, after which receives second data read request, will search this
The non-binary data is returned to the reading client by the corresponding non-binary data of two data read requests.
That is, if binary data is only included in the data that need to be read, reading client will only can will be from reading
Binary data server obtains the data that need to be read;If non-binary data is only included in the data that need to be read, read
Client can only will obtain the data that need to be read from reading database server;If in the data that need to be read both include two into
Data processed include non-binary data again, then reading client will obtain this from reading binary data server and need to read
Data in binary data, from the non-binary data obtained in reading database server in the data that need to be read.
Optionally, Figure 11 shows the method that binary data is read in method for reading data provided in an embodiment of the present invention
Flow chart, referring to Fig.1 1, the method for the reading binary data may include:
Step S700: when the reading binary data server determines that the binary data corresponding first is written
Between point;
After reading the first data read request that binary data server receives reading client transmission, this will can determine
The corresponding first write time point of the binary data for needing read data packet to include, the first write time point refer to binary data
Server receives the time point of the binary data.
Step S710: the binary data is searched in the corresponding file of the first write time point.
After determining that this need to read the corresponding first write time point of binary data in data, it can further determine that
The corresponding file of first write time point searches the binary data in this document folder.
Optionally, after reading the first data read request that binary data server receives reading client transmission, also
The corresponding geographical location information of the binary data for needing read data packet to include and classification information can be further determined that, by this
Geographical location information and classification information search the binary data, improve data read rates and precision.
Optionally, Figure 12 shows the side that non-binary data is read in method for reading data provided in an embodiment of the present invention
Method flow chart, referring to Fig.1 2, the method for the reading non-binary data may include:
Step S800: the reading database server determines the non-binary data corresponding second write time
Point;
After reading database server receives the second data read request that reading client is sent, it will can determine that this needs to read
According to the corresponding second write time point of non-binary data for including, the second write time point refers to that reading database takes for access
Business device receives the time point of the non-binary data.
Step S810: the binary data is searched in the corresponding file of the second write time point.
It, can further really after determining that this need to read the corresponding second write time point of non-binary data in data
The fixed corresponding file of second write time point searches the non-binary data in this document folder.
It optionally, can also be into after reading database server receives the second data read request that reading client is sent
One step determines the corresponding geographical location information of the non-binary data for needing read data packet to include and classification information, passes through the ground
Location information and classification information are managed to search the non-binary data, improves data read rates and precision.
Optionally, Figure 13 shows cut-in stand-by in method for reading data provided in an embodiment of the present invention and reads binary number
According to the method flow diagram of server, referring to Fig.1 3, the method which reads binary data server may include:
Step S900: whether the detection reading binary data server breaks down;
Optionally, can every prefixed time interval to read binary data server whether failure detects.
Step S910: if breaking down, binary data in the reading binary data server is transferred to standby
With reading binary data server;
Binary data server fail is read if detecting, by the reading binary data server of the failure
Interior non-binary data is shifted to spare reading binary data server.
Step S920: the reading binary data server is received in the spare reading binary data server and is turned
After all binary data moved, the reading client sends the first data to the spare reading binary data server
Read requests, the spare reading binary data server, which receives the first reading data that the reading client is sent, asks
It asks, searches the corresponding binary data of the first data read request, the binary data is returned into the reading client
End.
When spare reading binary data server receives all of the reading binary data server transfer of failure
After non-binary data, the reading binary data server of the failure will stop working, the reading binary data of the failure
The work of server is inherited by the spare reading binary data server.At this point, reading client to this it is spare read two into
Data server processed sends the first data read request, which is receiving the reading client
After the first data read request sent, the corresponding binary data of the first data read request is searched, by the binary number
According to the return reading client.
Optionally, Figure 14 shows switching reading database server in method for reading data provided in an embodiment of the present invention
Method flow diagram, referring to Fig.1 4, the method for the switching reading database server may include:
Step S1000: detect whether the reading database server breaks down;
Optionally, can to reading database server, whether failure be detected every prefixed time interval.
Step S1010: if breaking down, binary data in the reading database server is transferred to spare reading
Take database server;
If detecting reading database server fail, by non-two in the reading database server of the failure
Binary data is shifted to spare reading binary data server.
Step S1020: the institute of the reading database server transfer is received in the spare reading database server
After having binary data, the reading client sends the second data read request to the spare reading database server,
The spare reading database server receives the second data read request that the reading client is sent, and searches described second
The non-binary data is returned to the reading client by the corresponding non-binary data of data read request.
When spare reading database server receives all nonbinaries of the reading database server transfer of failure
After data, the reading database server of the failure will stop working, and the work of the reading database server of the failure is by this
Spare reading database server is inherited.At this point, reading client sends the second data to the spare reading database server
Read requests after the spare reading database server receives the second data read request of reading client transmission, are searched
The corresponding non-binary data of second data read request, returns to the reading client for the non-binary data.
Method for reading data provided in an embodiment of the present invention, when reading the data, reading from database server needs to read
Non-binary data part of the access in, reads the binary data portion that need to be read in data from binary data server
Point, non-binary data is only read and write in database server, is read and write binary data in binary data server, is avoided
Because file is excessive in database server, and lead to asking for the access for being unfavorable for database server content, maintenance and expansion
Topic, while keeping binary data read-write more convenient and flexible and efficient.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of data writing systems characterized by comprising write-in client, the write-in binary system for storing binary data
The write-in database server of data server and storage non-binary data;Wherein,
Said write client, the data write instruction provided for receiving user are determined according to the data write instruction and are used
The data that family need to be written;Judge whether the data that need to be written include binary data, if so, by the binary data
It is sent to said write binary data server;Judge whether the data that need to be written include non-binary data, if so,
The non-binary data is then sent to said write database server;
Said write binary data server, for receiving the binary data of said write client transmission, to described two
Binary data is stored;
Said write database server, for receiving the non-binary data of said write client transmission, to described non-two
Binary data is stored.
2. data writing systems according to claim 1, which is characterized in that further include: spare write-in binary data clothes
Business device and/or spare write-in database server;Wherein,
The spare write-in binary data server, for receiving institute when said write binary data server failure
The binary data of write-in binary data server transfer is stated, and is receiving the transfer of said write binary data server
After all binary data, the binary data that said write client is sent is received, to the received said write client
The binary data that end is sent is stored;
The spare write-in database server, for receiving said write number when said write database server failure
According to the non-binary data that library server shifts, and in all nonbinary numbers for receiving the transfer of said write database server
According to rear, receive the non-binary data that said write client is sent, to received said write client send non-two into
Data processed are stored.
3. a kind of method for writing data, which is characterized in that be based on data writing systems of any of claims 1 or 2, the data
Wiring method includes:
Write-in client receives the data write instruction that user provides, and determines what user need to be written according to the data write instruction
Data;
Said write client judges whether the data that need to be written include binary data, if so, by the binary system
Data are sent to write-in binary data server, and said write binary data server receives said write client and sends
Binary data, the binary data is stored;
Said write client judges whether the data that need to be written include non-binary data, if so, by described non-two
Binary data is sent to write-in database server, and said write database server receives the non-of said write client transmission
Binary data stores the non-binary data.
4. method for writing data according to claim 3, which is characterized in that
It is described to the binary data carry out storage include:
Said write binary data server determines the first write time point for receiving the binary data;
Judge whether there is the corresponding file of the first write time point;
If so, by the binary data storage into the corresponding file of the first write time point;
If it is not, the corresponding file of the first write time point is then created, by the binary data storage to described
In the corresponding file of 1 write time point;
It is described to the non-binary data carry out storage include:
Said write database server determines the second write time point for receiving the non-binary data;
Judge whether there is the corresponding file of the second write time point;
If so, storing the non-binary data into the corresponding file of the second write time point;
If it is not, then creating the corresponding file of the second write time point, the non-binary data is stored to described
In the corresponding file of second write time point.
5. method for writing data according to claim 3, which is characterized in that
The method for writing data further include:
Whether detection said write binary data server breaks down, if breaking down, by said write binary number
Spare write-in binary data server is transferred to according to binary data in server;
It is described it is spare write-in binary data server receive said write binary data server transfer all two into
After data processed, the binary data that need to be written in data is sent to the spare write-in binary data by said write client
Server, the spare write-in binary data server receives the binary data that said write client is sent, to described
Binary data is stored;
The method for writing data further include:
Whether detection said write database server breaks down, if breaking down, by said write database server
Interior binary data is transferred to spare write-in database server;
After the spare write-in database server receives all binary data of said write database server transfer,
The non-binary data that need to be written in data is sent to the spare write-in database server by said write client, described
It is spare write-in database server receive said write client send non-binary data, to the non-binary data into
Row storage.
6. a kind of data reading system characterized by comprising reading client, the reading binary system for storing binary data
The reading database server of data server and storage non-binary data;Wherein,
The reading client, the data read command provided for receiving user are determined according to the data read command and are used
The data that family need to be read judge whether the data that need to be read include binary data, if so, to the reading binary system
Data server sends the first data read request, and receives the reading binary data server and receiving described first
The binary data returned after data read request judges whether the data that need to be read include non-binary data,
If so, sending the second data read request to the reading database server, and receive the reading database server
The non-binary data returned after receiving second data read request;
The reading binary data server, the first data read request sent for receiving the reading client, is looked into
The corresponding binary data of the first data read request is looked for, the binary data is returned into the reading client;
The reading database server, the second data read request sent for receiving the reading client, searches institute
The corresponding non-binary data of the second data read request is stated, the non-binary data is returned into the reading client.
7. data reading system according to claim 6, which is characterized in that further include: spare reading binary data clothes
Business device and/or spare reading database server;Wherein,
The spare reading binary data server, for receiving institute when the reading binary data server failure
The binary data for reading the transfer of binary data server is stated, and is receiving the reading binary data server transfer
After all binary data, the first data read request that the reading client is sent is received, first data is searched and reads
The corresponding binary data of request is taken, the binary data is returned into the reading client;
The spare reading database server, for receiving the reading number when the reading database server failure
According to the binary data that library server shifts, and in all binary data for receiving the reading database server transfer
Afterwards, the second data read request that the reading client is sent is received, it is corresponding non-to search second data read request
The non-binary data is returned to the reading client by binary data.
8. a kind of method for reading data, which is characterized in that based on data reading system described in claim 6 or 7, comprising:
Reading client receives the data read command that user provides, and determines what user need to read according to the data read command
Data;
The reading client judges whether the data that need to be read include binary data, if so, reading two to described
Binary data server sends the first data read request, and the reading binary data server receives the reading client
The first data read request sent searches the corresponding binary data of the first data read request, by the binary system
Data return to the reading client, and the reading client receives the readings binary data server described in receive
The binary data returned after first data read request;
The reading client judges whether the data that need to be read include non-binary data, if so, to the reading
Database server sends the second data read request, and the reading database server receives what the reading client was sent
Second data read request searches the corresponding non-binary data of the second data read request, by the nonbinary number
According to the reading client is returned, the reading client receives the reading database server and is receiving second data
The non-binary data returned after read requests.
9. method for reading data according to claim 8, which is characterized in that
The lookup corresponding binary data of the first data read request includes:
The reading binary data server determines the corresponding first write time point of the binary data;
The binary data is searched in the corresponding file of the first write time point;
It is described to search the corresponding non-binary data of the second data read request and include:
The reading database server determines the corresponding second write time point of the non-binary data;
The binary data is searched in the corresponding file of the second write time point.
10. method for reading data according to claim 8, which is characterized in that
The method for reading data further include:
Detect whether the reading binary data server breaks down, if breaking down, by the reading binary number
Spare reading binary data server is transferred to according to binary data in server;
It is described it is spare read binary data server receive it is described reading binary data server transfer all two into
After data processed, the reading client sends the first data read request, institute to the spare reading binary data server
It states spare reading binary data server and receives the first data read request that the reading client is sent, search described the
The binary data is returned to the reading client by the corresponding binary data of one data read request;
The method for reading data further include:
Detect whether the reading database server breaks down, if breaking down, by the reading database server
Interior binary data is transferred to spare reading database server;
After all binary data that the spare reading database server receives the reading database server transfer,
The reading client sends the second data read request, the spare reading data to the spare reading database server
Library server receives the second data read request that the reading client is sent, and it is opposite to search second data read request
Non-binary data is answered, the non-binary data is returned into the reading client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510904229.2A CN105574083B (en) | 2015-12-09 | 2015-12-09 | A kind of method for writing data, system and method for reading data and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510904229.2A CN105574083B (en) | 2015-12-09 | 2015-12-09 | A kind of method for writing data, system and method for reading data and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105574083A CN105574083A (en) | 2016-05-11 |
CN105574083B true CN105574083B (en) | 2019-03-15 |
Family
ID=55884214
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510904229.2A Active CN105574083B (en) | 2015-12-09 | 2015-12-09 | A kind of method for writing data, system and method for reading data and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105574083B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101169792A (en) * | 2007-12-03 | 2008-04-30 | 北京金山软件有限公司 | Data base read-write system and method |
CN101477568A (en) * | 2009-02-12 | 2009-07-08 | 清华大学 | Integrated retrieval method for structured data and non-structured data |
CN101706795A (en) * | 2009-11-30 | 2010-05-12 | 上海世范软件技术有限公司 | Method for synchronizing data of database in active/standby server |
CN103780638A (en) * | 2012-10-18 | 2014-05-07 | 腾讯科技(深圳)有限公司 | Data synchronization method and system |
-
2015
- 2015-12-09 CN CN201510904229.2A patent/CN105574083B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101169792A (en) * | 2007-12-03 | 2008-04-30 | 北京金山软件有限公司 | Data base read-write system and method |
CN101477568A (en) * | 2009-02-12 | 2009-07-08 | 清华大学 | Integrated retrieval method for structured data and non-structured data |
CN101706795A (en) * | 2009-11-30 | 2010-05-12 | 上海世范软件技术有限公司 | Method for synchronizing data of database in active/standby server |
CN103780638A (en) * | 2012-10-18 | 2014-05-07 | 腾讯科技(深圳)有限公司 | Data synchronization method and system |
Non-Patent Citations (2)
Title |
---|
E-learning 非结构化数据管理系统的构建与实现;韦琳等;《中国科学技术大学学报》;20100630;第623-628页 |
多源异构数据的互操作方法和实现技术研究;王崟;《中国优秀博硕士学位论文全文数据库 信息科技辑》;20060615;第10-21页、第33-46页 |
Also Published As
Publication number | Publication date |
---|---|
CN105574083A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106130882B (en) | The method and apparatus for being used for transmission message | |
EP3002672B1 (en) | Apparatus for increasing data storage capacity | |
CN104935654B (en) | Caching method, write-in point client in a kind of server cluster system and read client | |
CN106776368B (en) | Cache management method, device and system during data reading | |
US8069224B2 (en) | Method, equipment and system for resource acquisition | |
US20150213100A1 (en) | Data synchronization method and system | |
CN109407977B (en) | Big data distributed storage management method and system | |
CN110134648A (en) | Log processing method, device, equipment, system and computer readable storage medium | |
CN106126374B (en) | Method for writing data, method for reading data and device | |
CN109086388A (en) | Block chain date storage method, device, equipment and medium | |
JP6388339B2 (en) | Distributed caching and cache analysis | |
CN105573667A (en) | Data reading method and storage server | |
CN105897859B (en) | Storage system | |
CN103986779B (en) | A kind of application data transmission method, device and terminal device | |
CN103138912A (en) | Data synchronizing method and data synchronizing system | |
CN108540510B (en) | Cloud host creation method and device and cloud service system | |
CN104023246A (en) | Private video data cloud-storage system and method | |
JP2018194882A (en) | Control program, control method, control device, and database server | |
CN109328331A (en) | Self-organizing storage system for asynchronous storage service | |
KR101175505B1 (en) | System for providing user data storage enviroment using network based file system in n-screen | |
CN109002503A (en) | A kind of metadata read method, device, equipment and readable storage medium storing program for executing | |
CN110351313A (en) | Data cache method, device, equipment and storage medium | |
US20030217114A1 (en) | Method and system for caching network data | |
EP0903668B1 (en) | Method of transferring data between hosts through a storage subsystem | |
CN104462129B (en) | Distributed document stores and querying method and access system |
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 |