CN103678696B - Control the separated method and device of digital independent - Google Patents
Control the separated method and device of digital independent Download PDFInfo
- Publication number
- CN103678696B CN103678696B CN201310740357.9A CN201310740357A CN103678696B CN 103678696 B CN103678696 B CN 103678696B CN 201310740357 A CN201310740357 A CN 201310740357A CN 103678696 B CN103678696 B CN 103678696B
- Authority
- CN
- China
- Prior art keywords
- storehouse
- data
- write
- time point
- read
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Electric Clocks (AREA)
Abstract
The invention discloses a kind of control separated method of data read-write operation, this method includes:The write-in of storehouse progress data is being write according to the write operation received, is preserving time point and the data that the write operation is completed;When receiving user's read operation based on the data, obtain and read the current renewal time point in storehouse;When the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed, the read operation of the storehouse execution data is being write.Invention additionally discloses a kind of control separated devices of data read-write operation, realize that user confirms whether the data for writing storehouse are successfully written in time, save time, write-in data easily and fast.
Description
Technical field
The present invention relates to database datas to read and write field, is related specifically to the separated method of control digital independent and dress
It puts.
Background technology
At present, large data system(For example, ERP enterprise resource plannings), for the ease of the reading and write-in of data,
Database is divided into and reads storehouse and writes storehouse, writes storehouse for operating transactional, the record of trade type data and modification, when reading storehouse for sequence
The inquiry of the data such as book, report.Reading can be synchronized to by data such as book, reports during the sequence of write-in in some way by writing storehouse data
Storehouse, write the data that storehouse is synchronously written needs certain synchronization time to storehouse is read, and the data in storehouse are read within the synchronization time and write storehouse
Data be inconsistent.
User write storehouse write-in sequence when book, report when data when, it is necessary in time determine the data whether write success,
That is, it needs to storehouse is read be confirmed whether that the data can be read, but the certain synchronization of reading storehouse needs is synchronized to because writing the data in storehouse
Time causes user that can not confirm whether the data are successfully written in time.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill
Art.
The content of the invention
The main object of the present invention for provide control the separated method and device of data read-write operation, it is intended to realize user and
When confirm that whether write the data in storehouse is successfully written, and saves time, write-in data easily and fast.
In order to achieve the above object, the present invention proposes a kind of control separated method of data read-write operation, and this method includes
Step:
The write-in of storehouse progress data is being write according to the write operation received, is preserving time point and institute that the write operation is completed
State data;
When receiving user's read operation based on the data, obtain and read the current renewal time point in storehouse;
When the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed, performed in the storehouse of writing
The read operation of the data.
Preferably, the write operation received in the basis is writing the write-in of storehouse progress data, and it is complete to preserve the write operation
Into time point and the step of the data before, this method further includes:
Analyze the type of the user's operation received;
When the type of the user's operation received is read operation, the read operation is performed in the reading storehouse.
Preferably, this method further includes:
Specific identifier is set for specific user's operation, the specific identifier is associated with the storehouse of writing;
When the user's operation received carries specific identifier, in the user's operation write storehouse execution and received.
Preferably, the write operation that the basis receives carries out the write-in of data writing storehouse, preserves the write operation and completes
Time point and the step of the data after, this method further includes:
Storehouse is write described in control, the data are synchronized to the reading storehouse.
Preferably, after the step of current renewal time point in storehouse is write in the acquisition, this method further includes:
It when writing the current renewal time point in storehouse and being later than the time point that the write operation is completed, is performed in acquisition in the reading storehouse
The read operation of the data.
Present invention further propose that a kind of control separated device of data read-write operation, the device include:
Writing module, for writing the write-in of storehouse progress data according to the write operation received;
Memory module, for preserving time point and the data that the write operation is completed;
Processing module, for when receiving user's read operation based on the data, obtaining and reading storehouse current renewal time
Point;
Read module, for when the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed,
In the read operation write storehouse and perform the data.
Preferably, which further includes:
Analysis module, for analyzing the type of the user's operation received;
The read module, for when the type of the user's operation received is read operation, institute to be performed in the reading storehouse
State read operation.
Preferably, the processing module, for for specific user's operation set specific identifier, by the specific identifier with
It is described to write storehouse association;
The read module, during for carrying specific identifier in the user's operation received, it is described write storehouse and perform connect
The user's operation received.
Preferably, which further includes:
Control module described write storehouse the data is synchronized to the reading storehouse for controlling.
Preferably, the read module is later than the write operation completion for the current renewal time point in storehouse of writing in acquisition
Time point when, perform the read operation of the data in the reading storehouse.
Compared with the prior art, the present invention is writing the write-in of storehouse progress data according to the write operation received, is write described in preservation
Operate the time point completed and the data;When receiving user's read operation based on the data, obtain and read storehouse currently more
New time point;When the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed, institute is performed writing storehouse
State the read operation of data.Realize that user confirms that whether write the data in storehouse is successfully written, and saves the time in time, writing easily and fast
Enter data.
Description of the drawings
Fig. 1 is the flow diagram of the present invention control separated method first embodiment of data read-write operation;
Fig. 2 is the flow diagram of the present invention control separated method second embodiment of data read-write operation;
Fig. 3 is the high-level schematic functional block diagram of the present invention control separated device preferred embodiment of data read-write operation.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the flow diagram for the present invention control separated method first embodiment of data read-write operation.
It is emphasized that:Flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing
What should not all depart from the scope covered in following technical solution around the embodiment of inventive concept structure:
The write-in of storehouse progress data is being write according to the write operation received, is preserving time point and institute that the write operation is completed
State data;When receiving user's read operation based on the data, obtain and read the current renewal time point in storehouse;In the reading storehouse of acquisition
When current renewal time point is earlier than the time point that the write operation is completed, the read operation of the storehouse execution data is being write.
It is that the control separated specific steps of data read-write operation are done step-by-step in the present embodiment below:
Step S11 is writing storehouse and is carrying out the write-in of data according to the write operation received, preserve that the write operation completes when
Between point and the data.
In the present embodiment, large data management, storage system(For example, ERP enterprise resource plannings), in data volume
In more databases, for the ease of the reading and write-in of data, i.e. in order to be not read when writing data data interference or
The interference into data is not written when reading data, the database is divided into and reads storehouse and writes storehouse, the storehouse of writing is for data
Write-in, the reading read storehouse and be used for data, the reading storehouse and the operation for writing storehouse are not interfere with each other so that user is into line number
According to the interference from digital independent during write-in;Storehouse data to be written is write described in control and is synchronized to the reading storehouse, is allowed a user to
Whether the data validation user that the reading storehouse is synchronized to by reading succeeds and writes the data writing storehouse, and the storehouse of writing exists
The data are synchronized to the reading storehouse by the write operation of the data after terminating, alternatively, in the write operation of the data
After prefixed time interval after end, the data are synchronized to the reading storehouse;The data are synchronized to by the storehouse of writing
The duration for reading storehouse depends on the size of the data, and the prefixed time interval can be 5s or 8s when any suitable
Between be spaced.The write operation can be the operation for the operation either modification data with existing for being inserted into new data.
When receiving the operation of user, the action type of the user received is analyzed, i.e. analysis is read operation or writes
Operation when the action type of the user received is read operation, performs the read operation, i.e. obtain and connect from reading storehouse reading storehouse
The corresponding data of operation of the user received are read for user;When the type of the user's operation received is write operation, according to
The write operation received carries out the write-in of data writing storehouse, after data write-in is completed, preserve that the write operation completes when
Between point and the data.In the present embodiment, the XX when form at the time point that the write operation is completed is XX XX month XX day XX
Point, for example, 30 divide during 20 days 15 December in 2013,20 days 23 December in 2013 when 58 grade.In other embodiments of the invention, obtain
30 divide or 58 grade when 23 XX minutes when the form of the reading current renewal time point in storehouse taken can also be XX, such as when 15;It is preserving
While the time point that the write operation is completed, the date that the write operation is completed is preserved, for example, on December 20th, 2013,
On December 21st, 2013 etc..
Step S12 when receiving user's read operation based on the data, is obtained and is read the current renewal time point in storehouse.
In the present embodiment, when receiving for read operation based on the data, obtain and read storehouse current renewal time
Point, i.e. obtain and read renewal time point of the storehouse from present time point the last time.The reading storehouse obtained in the present embodiment currently updates
XX divides when the form at time point is XX XX month XX day XX, for example, 40 dividing during 20 days 15 December in 2013, on December 21st, 2013
04 grades when 00.In other embodiments of the present invention, the XX when form of the reading current renewal time point in storehouse of acquisition can also be XX
Point, such as 40 divide or 04 grade when 00 when 15;In acquisition reading storehouse while current renewal time point, it is currently newer to obtain reading storehouse
Date, for example, on December 20th, 2013, on December 21st, 2013 etc..
Step S13 when the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed, is writing storehouse
Perform the read operation of the data.
In the present embodiment, analyze acquisition read the current renewal time point in storehouse whether earlier than the write operation complete time
When the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed, the data are performed writing storehouse for point
Read operation, i.e. directly confirm whether succeed in the write-in for writing storehouse and carrying out data according to the write operation that receives writing storehouse;It is obtaining
When the current renewal time point in reading storehouse taken is later than the time point that the write operation is completed, the reading behaviour of the storehouse execution data is being read
Make.For example, the reading storehouse current renewal time o'clock obtained in the case of 40 minutes during 20 days 15 December in 2013, what the write operation was completed
Time point divides in the case of during 20 days 15 December in 2013 30, and the current renewal time point in reading storehouse of acquisition, which is later than the write operation, to be completed
Time point, reading storehouse and performing the read operation of the data, i.e. the data are in the case where being synchronized to and reading storehouse, in institute
It states and reads the storehouse reading data;The reading storehouse current renewal time o'clock of acquisition is described in the case of 30 minutes during 20 days 15 December in 2013
The time point that write operation is completed divides in the case of during 20 days 15 December in 2013 40, and the current renewal time point in reading storehouse of acquisition is earlier than institute
The time point of write operation completion is stated, is writing the read operation of the storehouse execution data, i.e. the data be not synchronized to reading storehouse also
In the case of, read the data in the storehouse of writing.In the present embodiment, only when it is described write storehouse write-in data be synchronized to institute
It states after reading storehouse, just reads the data in the reading storehouse, when the data for writing storehouse write-in are not synchronized to the reading storehouse,
Read the data in the storehouse of writing.For example, work as user writes storehouse write-in data A and data B described, it is synchronized in the data A
When the data B is not synchronized to the reading storehouse, the data A is read in the reading storehouse, institute is read in the storehouse of writing for the reading storehouse
State data B.
In other embodiments of the present invention, in order to can ensure that the read operation that the data are performed in storehouse is read, institute is calculated
The time point of write operation completion and the time difference of the reading current renewal time point in storehouse obtained are stated, in the time difference calculated
For positive value when, judge obtain read the current renewal time point in storehouse earlier than said write operation complete time point, what is calculated
Time difference is negative value, and the absolute value of the time difference calculated is more than the duration synchronously needed(Based on existing in the storehouse of writing
After the completion of the data write-in, the data are synchronized on the basis of reading storehouse immediately)When, the reading storehouse for judging to obtain currently updates
Time point is later than the time point that said write operation is completed.For example, the reading storehouse current renewal time o'clock obtained is in December, 2013
40 divide for example at 20 days 15, and the time point that the write operation is completed divides in the case of during 20 days 15 December in 2013 30, the data
The when a length of time difference 5 minutes, calculated synchronously needed is -10 minutes, and 10 are more than 5, judges the reading storehouse obtained currently more
New time point is later than the time point that said write operation is completed;The reading storehouse current renewal time o'clock of acquisition was on December 20th, 2013
58 divide for example when 23, and the time point that the write operation is completed divides in the case of during 21 days 00 December in 2013 08, the time calculated
Difference is+10 minutes, and judge to obtain reads the current renewal time point in storehouse earlier than the time point that said write operation is completed.
The present embodiment is writing storehouse and is carrying out the write-in of data according to the write operation received, preserve that the write operation completes when
Between point and the data;When receiving user's read operation based on the data, obtain and read the current renewal time point in storehouse;It is obtaining
When the reading current renewal time point in storehouse taken is earlier than the time point that the write operation is completed, the reading behaviour of the storehouse execution data is being write
Make.It realizes that user confirms whether the data for writing storehouse are successfully written in time, saves time, write-in data easily and fast.
As shown in Fig. 2, the flow diagram for the present invention control separated method second embodiment of data read-write operation.
Based in above-mentioned first embodiment, this method further includes step:
Step S14 sets specific identifier for specific user's operation, and the specific identifier is associated with writing storehouse;
Step S15, when the user's operation received carries specific identifier, write storehouse perform receive user behaviour
Make.
In this embodiment, specific identifier is set for specific user's operation, the specific user's operation can be to adopting
Purchase write-in either read operation, the write-in of selling operation data or reading, the write-in of occurrences in human life data or the reading of business datum
It takes, the specific identifier is " 0 " or " S " etc., other are not provided with the specific identifier for specific user's operation.It is described specific
It identifies and is associated with writing storehouse, when the user's operation received carries specific identifier, the user's operation that receives is performed writing storehouse,
The type of the user's operation is read operation or write operation.In other embodiments of the present invention, the specific identifier can also
It is associated with the reading storehouse, when the user's operation received carries specific identifier, the user's operation received is performed in reading storehouse.
In the present embodiment by the way that specific user's operation is given to set specific identifier, the specific identifier and the storehouse of writing are closed
Connection, when the user's operation received carries specific identifier, in the user's operation write storehouse execution and received.To avoid taking
User's operation with specific identifier is disturbed be subject to other operations, saves operation deadline, write-in or reading easily and fast
Access evidence.
As shown in figure 3, the function module signal for the present invention control separated device preferred embodiment of data read-write operation
Figure, the device include:Writing module 10, memory module 20, control module 30, analysis module 40, processing module 50 and reading mould
Block 60.
Said write module 10, for writing the write-in of storehouse progress data according to the write operation received;
The memory module 20, for preserving time point and the data that the write operation is completed.
In the present embodiment, large data management, storage system(For example, ERP enterprise resource plannings), in data volume
In more databases, for the ease of the reading and write-in of data, i.e. in order to be not read when writing data data interference or
The interference into data is not written when reading data, the database is divided into and reads storehouse and writes storehouse, the storehouse of writing is for data
Write-in, the reading read storehouse and be used for data, the reading storehouse and the operation for writing storehouse are not interfere with each other so that user is into line number
According to the interference from digital independent during write-in
The control module 30, for control it is described write storehouse data to be written and be synchronized to the reading storehouse, allow a user to
Whether the data validation user that the reading storehouse is synchronized to by reading succeeds and writes the data writing storehouse.The storehouse of writing exists
The data are synchronized to the reading storehouse by the write operation of the data after terminating, alternatively, in the write operation of the data
After prefixed time interval after end, the data are synchronized to the reading storehouse;The data are synchronized to by the storehouse of writing
The duration for reading storehouse depends on the size of the data, and the prefixed time interval can be 5s or 8s when any suitable
Between be spaced.The write operation can be the operation for the operation either modification data with existing for being inserted into new data.
The analysis module 40, for when receiving the operation of user, analyzing the action type of the user received.
That is, analysis is read operation or write operation, and when the action type of the user received is read operation, the reading is performed reading storehouse
Operation, i.e. from the corresponding data of operation for reading the user that storehouse acquisition receives, read for user;In the user's operation received
Type be write operation when, according to the write operation received writing storehouse carry out data write-in, data write-in complete after, protect
Deposit time point and the data that the write operation is completed.In the present embodiment, the form at the time point that the write operation is completed
For XX XX month XX day XX when XX point, for example, 30 divide during 20 days 15 December in 2013,20 days 23 December in 2013 when 58 grade.
In other embodiments of the invention, XX minutes when the form of the reading current renewal time point in storehouse of acquisition can also be XX, such as 30 when 15
Point or 58 grade when 23;While the time point that the write operation is completed is preserved, the date that the write operation is completed, example are preserved
Such as, on December 20th, 2013, on December 21st, 2013 etc..
The processing module 50 reads storehouse currently more for when receiving user's read operation based on the data, obtaining
New time point.
In the present embodiment, when receiving for read operation based on the data, obtain and read storehouse current renewal time
Point, i.e. obtain and read renewal time point of the storehouse from present time point the last time.The reading storehouse obtained in the present embodiment currently updates
XX divides when the form at time point is XX XX month XX day XX, for example, 40 dividing during 20 days 15 December in 2013, on December 21st, 2013
04 grades when 00.In other embodiments of the present invention, the XX when form of the reading current renewal time point in storehouse of acquisition can also be XX
Point, such as 40 divide or 04 grade when 00 when 15;In acquisition reading storehouse while current renewal time point, it is currently newer to obtain reading storehouse
Date, for example, on December 20th, 2013, on December 21st, 2013 etc..
The read module 60, in the reading current renewal time point in storehouse of acquisition earlier than the time that the write operation is completed
During point, in the read operation write storehouse and perform the data.
In the present embodiment, analyze acquisition read the current renewal time point in storehouse whether earlier than the write operation complete time
When the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed, the data are performed writing storehouse for point
Read operation, i.e. directly confirm whether succeed in the write-in for writing storehouse and carrying out data according to the write operation that receives writing storehouse;It is obtaining
When the current renewal time point in reading storehouse taken is later than the time point that the write operation is completed, the reading behaviour of the storehouse execution data is being read
Make.For example, the reading storehouse current renewal time o'clock obtained in the case of 40 minutes during 20 days 15 December in 2013, what the write operation was completed
Time point divides in the case of during 20 days 15 December in 2013 30, and the current renewal time point in reading storehouse of acquisition, which is later than the write operation, to be completed
Time point, reading storehouse and performing the read operation of the data, i.e. the data are in the case where being synchronized to and reading storehouse, in institute
It states and reads the storehouse reading data;The reading storehouse current renewal time o'clock of acquisition is described in the case of 30 minutes during 20 days 15 December in 2013
The time point that write operation is completed divides in the case of during 20 days 15 December in 2013 40, and the current renewal time point in reading storehouse of acquisition is earlier than institute
The time point of write operation completion is stated, is writing the read operation of the storehouse execution data, i.e. the data be not synchronized to reading storehouse also
In the case of, read the data in the storehouse of writing.In the present embodiment, only when it is described write storehouse write-in data be synchronized to institute
It states after reading storehouse, just reads the data in the reading storehouse, when the data for writing storehouse write-in are not synchronized to the reading storehouse,
Read the data in the storehouse of writing.For example, work as user writes storehouse write-in data A and data B described, it is synchronized in the data A
When the data B is not synchronized to the reading storehouse, the data A is read in the reading storehouse, institute is read in the storehouse of writing for the reading storehouse
State data B.
In other embodiments of the present invention, in order to can ensure that the read operation that the data are performed in storehouse is read, institute is calculated
The time point of write operation completion and the time difference of the reading current renewal time point in storehouse obtained are stated, in the time difference calculated
For positive value when, judge obtain read the current renewal time point in storehouse earlier than said write operation complete time point, what is calculated
Time difference is negative value, and the absolute value of the time difference calculated is more than the duration synchronously needed(Based on existing in the storehouse of writing
After the completion of the data write-in, the data are synchronized on the basis of reading storehouse immediately)When, the reading storehouse for judging to obtain currently updates
Time point is later than the time point that said write operation is completed.For example, the reading storehouse current renewal time o'clock obtained is in December, 2013
40 divide for example at 20 days 15, and the time point that the write operation is completed divides in the case of during 20 days 15 December in 2013 30, the data
The when a length of time difference 5 minutes, calculated synchronously needed is -10 minutes, and 10 are more than 5, judges the reading storehouse obtained currently more
New time point is later than the time point that said write operation is completed;The reading storehouse current renewal time o'clock of acquisition was on December 20th, 2013
58 divide for example when 23, and the time point that the write operation is completed divides in the case of during 21 days 00 December in 2013 08, the time calculated
Difference is+10 minutes, and judge to obtain reads the current renewal time point in storehouse earlier than the time point that said write operation is completed.
The present embodiment is writing storehouse and is carrying out the write-in of data according to the write operation received, preserve that the write operation completes when
Between point and the data;When receiving user's read operation based on the data, obtain and read the current renewal time point in storehouse;It is obtaining
When the reading current renewal time point in storehouse taken is earlier than the time point that the write operation is completed, the reading behaviour of the storehouse execution data is being write
Make.It realizes that user confirms whether the data for writing storehouse are successfully written in time, saves time, write-in data easily and fast.
Further, the processing module 30, for setting specific identifier for specific user's operation, by the specific mark
Knowledge is associated with the storehouse of writing;
The read module 40 during for carrying specific identifier in the user's operation received, performs in the storehouse of writing
The user's operation received.
In this embodiment, specific identifier is set for specific user's operation, the specific user's operation can be to adopting
Purchase write-in either read operation, the write-in of selling operation data or reading, the write-in of occurrences in human life data or the reading of business datum
It takes, the specific identifier is " 0 " or " S " etc., other are not provided with the specific identifier for specific user's operation.It is described specific
It identifies and is associated with writing storehouse, when the user's operation received carries specific identifier, the user's operation that receives is performed writing storehouse,
The type of the user's operation is read operation or write operation.In other embodiments of the present invention, the specific identifier can also
It is associated with the reading storehouse, when the user's operation received carries specific identifier, the user's operation received is performed in reading storehouse.
In the present embodiment by the way that specific user's operation is given to set specific identifier, the specific identifier and the storehouse of writing are closed
Connection, when the user's operation received carries specific identifier, in the user's operation write storehouse execution and received.To avoid taking
User's operation with specific identifier is disturbed be subject to other operations, saves operation deadline, write-in or reading easily and fast
Access evidence.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.Pass through above embodiment party
The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software
The mode of hardware platform is realized, naturally it is also possible to which by hardware, but the former is more preferably embodiment in many cases.It is based on
Such understanding, the part that technical scheme substantially in other words contributes to the prior art can be with software product
Form embody, which is stored in a storage medium(Such as ROM/RAM, magnetic disc, CD)In, including
Some instructions are used so that a station terminal equipment(Can be mobile phone, computer, server or the network equipment etc.)Perform this hair
Method described in bright each embodiment.
The foregoing is merely the preferred embodiment of the present invention, are not intended to limit the scope of the invention, every utilization
It is related to be directly or indirectly used in other for the equivalent structure or equivalent flow shift that description of the invention and accompanying drawing content are made
Technical field, be included within the scope of the present invention.
Claims (8)
- A kind of 1. control separated method of data read-write operation, which is characterized in that the method comprising the steps of:The write-in of storehouse progress data is being write according to the write operation received, is preserving time point and the number that the write operation is completed According to;It when receiving user's read operation based on the data, obtains and reads the current renewal time point in storehouse, during the current update Between point for read storehouse from present time point the last time renewal time point;When the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed, write described described in the execution of storehouse The read operation of data;The method further includes:Specific identifier is set for specific user's operation, the specific identifier is associated with the storehouse of writing;When the user's operation received carries specific identifier, in the user's operation write storehouse execution and received.
- 2. the control separated method of data read-write operation as described in claim 1, which is characterized in that received in the basis Write operation before the step of writing storehouse and carry out the write-in of data, preserving time point and the data that the write operation is completed, This method further includes:Analyze the type of the user's operation received;When the type of the user's operation received is read operation, the read operation is performed in the reading storehouse.
- 3. the control separated method of data read-write operation as claimed in claim 1 or 2, which is characterized in that described according to reception To write operation writing storehouse and carrying out the write-in of data, preserving time point and the data that the write operation is completed the step of it Afterwards, this method further includes:Storehouse is write described in control, the data are synchronized to the reading storehouse.
- 4. the control separated method of data read-write operation as described in claim 1, which is characterized in that it is current that storehouse is read in the acquisition After the step of renewal time point, this method further includes:When the current renewal time point in reading storehouse of acquisition is later than the time point that the write operation is completed, described in the execution of the reading storehouse The read operation of data.
- 5. a kind of control separated device of data read-write operation, which is characterized in that the device includes:Writing module, for writing the write-in of storehouse progress data according to the write operation received;Memory module, for preserving time point and the data that the write operation is completed;Processing module, for when receiving user's read operation based on the data, obtaining and reading the current renewal time point in storehouse, institute It states and reads the current renewal time point in storehouse to read renewal time point of the storehouse from present time point the last time;Read module, for when the reading current renewal time point in storehouse of acquisition is earlier than the time point that the write operation is completed, in institute It states and writes the read operation that storehouse performs the data;For setting specific identifier for specific user's operation, the specific identifier and the storehouse of writing are closed for the processing module Connection;The read module, during for carrying specific identifier in the user's operation received, it is described write storehouse and perform receive User's operation.
- 6. the control separated device of data read-write operation as claimed in claim 5, which is characterized in that the device further includes:Analysis module, for analyzing the type of the user's operation received;The read module, for when the type of the user's operation received is read operation, the reading to be performed in the reading storehouse Operation.
- 7. such as the control separated device of data read-write operation described in claim 5 or 6, which is characterized in that the device further includes:Control module described write storehouse the data is synchronized to the reading storehouse for controlling.
- 8. the control separated device of data read-write operation as claimed in claim 5, which is characterized in thatThe read module, for when the current renewal time point in reading storehouse of acquisition is later than the time point that the write operation is completed, The read operation of the data is performed in the reading storehouse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310740357.9A CN103678696B (en) | 2013-12-27 | 2013-12-27 | Control the separated method and device of digital independent |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310740357.9A CN103678696B (en) | 2013-12-27 | 2013-12-27 | Control the separated method and device of digital independent |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103678696A CN103678696A (en) | 2014-03-26 |
CN103678696B true CN103678696B (en) | 2018-06-01 |
Family
ID=50316240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310740357.9A Active CN103678696B (en) | 2013-12-27 | 2013-12-27 | Control the separated method and device of digital independent |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103678696B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574022B (en) * | 2014-10-14 | 2020-04-17 | 阿里巴巴集团控股有限公司 | Method and device for processing business object based on relational database |
CN107038180A (en) * | 2016-08-23 | 2017-08-11 | 平安科技(深圳)有限公司 | Insurance application information updating method and management server |
CN106960054B (en) * | 2017-04-01 | 2020-10-02 | 北京奇虎科技有限公司 | Data file access method and device |
CN107506378B (en) * | 2017-07-20 | 2020-06-16 | 阿里巴巴集团控股有限公司 | Method and device for realizing database access |
CN110019494B (en) * | 2017-07-26 | 2021-09-07 | 北京国双科技有限公司 | Media data processing method and device, storage medium and processor |
EP3701364A4 (en) * | 2017-12-28 | 2020-10-28 | SZ DJI Technology Co., Ltd. | System and method for supporting low latency in a movable platform environment |
CN109542872B (en) * | 2018-10-26 | 2021-01-22 | 金蝶软件(中国)有限公司 | Data reading method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101982949A (en) * | 2010-11-04 | 2011-03-02 | 杭州东信北邮信息技术有限公司 | Detection system of intelligent network equipment and method |
CN102402596A (en) * | 2011-11-07 | 2012-04-04 | 北京搜狗科技发展有限公司 | Reading and writing method and system of master slave separation database |
CN102591964A (en) * | 2011-12-30 | 2012-07-18 | 北京新媒传信科技有限公司 | Implementation method and device for data reading-writing splitting system |
CN102622427A (en) * | 2012-02-27 | 2012-08-01 | 杭州闪亮科技有限公司 | Method and system for read-write splitting database |
CN103020243A (en) * | 2012-12-18 | 2013-04-03 | 新浪网技术(中国)有限公司 | Method and device for master-slave replication structure replacement of database |
-
2013
- 2013-12-27 CN CN201310740357.9A patent/CN103678696B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101982949A (en) * | 2010-11-04 | 2011-03-02 | 杭州东信北邮信息技术有限公司 | Detection system of intelligent network equipment and method |
CN102402596A (en) * | 2011-11-07 | 2012-04-04 | 北京搜狗科技发展有限公司 | Reading and writing method and system of master slave separation database |
CN102591964A (en) * | 2011-12-30 | 2012-07-18 | 北京新媒传信科技有限公司 | Implementation method and device for data reading-writing splitting system |
CN102622427A (en) * | 2012-02-27 | 2012-08-01 | 杭州闪亮科技有限公司 | Method and system for read-write splitting database |
CN103020243A (en) * | 2012-12-18 | 2013-04-03 | 新浪网技术(中国)有限公司 | Method and device for master-slave replication structure replacement of database |
Also Published As
Publication number | Publication date |
---|---|
CN103678696A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103678696B (en) | Control the separated method and device of digital independent | |
CN104144216A (en) | Data processing method and device for wearable terminal | |
US9038054B1 (en) | System and method for automated product version rollback | |
US9451423B2 (en) | Method and apparatus for recording information during a call | |
CN111782470A (en) | Distributed container log data processing method and device | |
CN109408468A (en) | Document handling method and device calculate equipment and storage medium | |
CN104657164B (en) | Software upgrading treating method and apparatus | |
CN104219639A (en) | Method and device for displaying text message record | |
CN109582543A (en) | Data retrogressive method and device | |
CN107992763A (en) | The power-off protection method and device of a kind of file system | |
CN111340451A (en) | Intelligent non-inductive attendance checking method and device | |
CN107315658A (en) | A kind of data back up method and device, computer installation and readable storage medium storing program for executing | |
CN112363932B (en) | Test method and device for business object to be tested and electronic device | |
CN111324576A (en) | Recording data storage method and device, storage medium and terminal equipment | |
CN115495519A (en) | Report data processing method and device | |
CN115757639A (en) | Data source synchronization method and device, electronic equipment and storage medium | |
CN113918436A (en) | Log processing method and device | |
CN114840421A (en) | Log data processing method and device | |
CN113392091A (en) | Distributed cluster data migration method and device | |
CN112632266B (en) | Data writing method and device, computer equipment and readable storage medium | |
CN103955386A (en) | Method and device for upgrading storage equipment firmware | |
CN109379412A (en) | A kind of method and apparatus for deleting cloud host | |
CN107423207A (en) | System compatibility automated testing method and device | |
CN104468336A (en) | Method and device for managing discussion records of wireless network application platform | |
CN110716699A (en) | Method and apparatus for writing data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |