CN106407398A - A data storage method and system - Google Patents

A data storage method and system Download PDF

Info

Publication number
CN106407398A
CN106407398A CN201610836972.3A CN201610836972A CN106407398A CN 106407398 A CN106407398 A CN 106407398A CN 201610836972 A CN201610836972 A CN 201610836972A CN 106407398 A CN106407398 A CN 106407398A
Authority
CN
China
Prior art keywords
data
stored
caching server
storage
system database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610836972.3A
Other languages
Chinese (zh)
Inventor
沈文策
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Cnfol Information Technology Co Ltd
Original Assignee
Fujian Cnfol Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Cnfol Information Technology Co Ltd filed Critical Fujian Cnfol Information Technology Co Ltd
Priority to CN201610836972.3A priority Critical patent/CN106407398A/en
Publication of CN106407398A publication Critical patent/CN106407398A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation

Landscapes

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

Abstract

The embodiments of the invention provide a data storage method and device. The method comprises the steps of saving to-be-stored data into a system database; acquiring saving-failing to-be-stored data; saving the saving-failing to-be-stored data in a cache server; storing the saving-failing to-be-stored data stored in the cache server into the system database until the saving-failing to-be-stored data are saved in the system database. The data storage method and system have the advantages that one cache server is arranged to temporarily store to-be-stored data failing to be saved in the system database and then the saving-failing to-be-stored data stored temporarily in the cache server are saved in the system database, so that the to-be-saved data can be completely saved in the system database and the security and integrity of data are guaranteed.

Description

A kind of date storage method and system
Technical field
The present invention relates to technical field of Internet information, more particularly to a kind of date storage method and system.
Background technology
At present, Internet market has huge development potentiality, and its application following will be covered from office altogether Information of enjoying is to wide spectrums such as the marketing, services.In addition, the electronic trade that Internet brings just is changing advanced business living Dynamic traditional mode, its provide convenience and widely interconnect will on future society life various aspects produce impact.
Although Internet has many advantages, such as, it is also to have its inherent defect.Data safety sex chromosome mosaicism is puzzlement One principal element of Internet user's development is although have now many schemes and service to guarantee in Internet The reliability of online commerce transaction, but be really suitable for and the product dominating market is still not clear.
In Internet, user generally realizes various network activitys by computer terminal, sets in computer The server put provides corresponding demand for services, such as user's access, information processing etc. for the various network activitys of user.So And, when server process data, needs are saved in system database data, it sometimes appear that needing in the middle part of data to be saved Divided data cannot be saved in system database, thus leading to loss of data, data safety has hidden danger.
Content of the invention
The purpose of the embodiment of the present invention is to provide a kind of date storage method and system, to realize in system database The data to be saved preserving unsuccessfully is saved in system database it is ensured that the safety and integrity of data.Concrete technical scheme As follows:
For reaching above-mentioned purpose, the invention discloses a kind of date storage method, including:
Data to be stored is saved in system database;
Obtain the data to be stored preserving unsuccessfully;
The data described to be stored preserving unsuccessfully is saved in caching server;
System database described in data Cun Chudao to be stored by the described preservation failure of storage in described caching server In, until preserving the described data to be stored preserving unsuccessfully in described system database.
Preferably, described in described data Cun Chudao to be stored by the described preservation failure storing in described caching server In system database, including:
Every preset time period, by the data storage to be stored of the described preservation failure of storage in described caching server To in described system database.
Preferably, described in described data Cun Chudao to be stored by the described preservation failure storing in described caching server In system database, including:
When the data capacity to be stored of the described preservation failure of storage in described caching server exceedes predetermined threshold value, by institute State in the system database described in data Cun Chudao to be stored of described preservation failure of storage in caching server.
Preferably, in the described data Cun Chudao institute to be stored by the described preservation failure of storage in described caching server Before stating in system database, described date storage method also includes:
Determine the described data to be stored preserving unsuccessfully that whether is stored with described caching server;
The described system number described in data Cun Chudao to be stored by the described preservation failure of storage in described caching server According in storehouse, including:
If being stored with the described data to be stored preserving unsuccessfully in described caching server, will deposit in described caching server In the data Cun Chudao system database to be stored of described preservation failure of storage.
Preferably, in the described data Cun Chudao institute to be stored by the described preservation failure of storage in described caching server After stating in system database, described date storage method also includes:
Remove treating of the described preservation failure being saved in described system database storing in described caching server Data storage.
For reaching above-mentioned purpose, the invention also discloses a kind of data-storage system, including:
First memory module, for being saved in data to be stored in system database;
Obtain data module, for obtaining the data to be stored preserving unsuccessfully;
Second memory module, for being saved in the described data to be stored preserving unsuccessfully in caching server;
3rd memory module, for the data storage to be stored that the described preservation of storage in described caching server fails To in system database, until preserving the described data to be stored preserving unsuccessfully in described system database.
Preferably, described 3rd memory module, specifically for:
Every preset time period, by the data storage to be stored of the described preservation failure of storage in described caching server To in system database.
Preferably, described 3rd memory module, specifically it is additionally operable to:
When the data capacity to be stored of the described preservation failure of storage in described caching server exceedes predetermined threshold value, by institute State in the system database described in data Cun Chudao to be stored of described preservation failure of storage in caching server.
Preferably, before described 3rd memory module, described data-storage system also includes:
Determining module, for determining the described data to be stored preserving unsuccessfully that whether is stored with described caching server;
Described 3rd memory module, specifically for:
If being stored with the described data to be stored preserving unsuccessfully in described caching server, will deposit in described caching server In the data Cun Chudao system database to be stored of described preservation failure of storage.
Preferably, after described 3rd memory module, described data-storage system also includes:
Remove module, for removing in described caching server described in being saved in described system database of storage Preserve data to be stored unsuccessfully.
The invention provides a kind of date storage method and system, by arranging a caching server by system data The data to be stored that storehouse preserves unsuccessfully is temporarily stored in caching server, then by caching server temporary preserve unsuccessfully wait deposit Storage data is saved in system database, present invention achieves system database to the complete preservation of data to be saved it is ensured that The safety and integrity of data.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of date storage method flow chart of the embodiment of the present invention;
Fig. 2 is a kind of data-storage system figure of the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of date storage method and device, as shown in figure 1, Fig. 1 is the embodiment of the present invention A kind of date storage method flow chart, including:
S101:Data to be stored is saved in system database;
Specifically, in user network activity, by the service request of system server receive user, complete user network The various data messages of user network activity can be considered as data to be stored, such as user is accessing certain by the corresponding operating of activity During individual website, website visiting number of times can be considered the data to be stored of user network activity, and user browses click website in website During the page, page number of clicks can be considered data to be stored of user network activity etc..
Because server needs to respond service request being processed, in general server should possess the service of undertaking and Ensure the ability of service, therefore will at aspects such as disposal ability, stability, reliability, security, extensibility, manageabilitys Ask higher.Database server provides data, services for user network activity.Database server is set up in system database base On plinth, there is the characteristic of system database, database server has system database management function, including system configuration and pipe Reason, data access manage data security management with more new management, data integrity;The inquiry of database and operating function, This function includes database retrieval and modification;Database maintenance function, imports/derives management including data, and database structure is tieed up Shield, data recovery function and performance monitoring;Data base concurrency runs, because in the same time, the user accessing database is more than One, so database server must support parallel running mechanism, process and occur while multiple event.Database server While providing various application services operation for User Activity, finally the data to be stored of user network activity is saved in and is In system database.
For example, count website visiting number of times when, that is, user access some websites when, server respond first user visit Ask request, database server imports this user's access times, including the data access that this user is accessed and more new management, number According to inquiry and manipulation, database retrieval and the modification, database maintenance etc. in storehouse, the most at last this user's access times record in system In database, by that analogy, the website visiting number of times of all users of the final keeping records of system database, you can count this net Stand access times.
S102:Obtain the data to be stored preserving unsuccessfully;
Specifically, when above-mentioned database server is when being saved in data to be stored in system database, it is understood that there may be User's access times are excessively frequent or database server does not respond to user network work in certain time point or in the time period Dynamic, lead to this time point or the data to be stored of the user network of time period activity cannot be saved in system database.
In embodiments of the present invention, setting caching server preserves data to be stored unsuccessfully obtaining system database. Specific practice is:The data to be stored of failure is preserved in the data to be stored obtaining user network activity by pre-set programs, and The data to be stored preserving unsuccessfully getting is set up with caching server and contacts, that is, by being arranged in caching server Information acquisition services obtain the data to be stored of this preservation failure in caching server.
For example, count website visiting number of times when, that is, user access some websites when, server respond first user visit Ask request, database server imports user's access times, including the data access that user is accessed and more new management, database Inquiry and manipulation, database retrieval and modification, database maintenance etc., the most at last user's access times record in system database In, but because user's access times are excessively frequently excessive to this website number of clicks or other reason, lead to database server User website access times are not saved in system database in certain time point or in the time period, cause this time point or In time period, user website access times are lost, and the website visiting number of times of final system statistics of database is less than actual user and accesses Number of times.At this moment, just can by setting caching server data acquisition service obtain this time point of system database or when Between section do not have preserve user's access times.
S103:The data to be stored preserving unsuccessfully is saved in caching server;
Specifically, by the above-mentioned data acquisition service being arranged on caching server obtain system database time point or After the data not having to preserve of time period, this data is considered as protecting by the service with preservation function being arranged in caching server Deposit the data to be stored of failure, the data to be stored preserving unsuccessfully is temporarily stored in caching server.
For example, count website visiting number of times when, the most at last user's access times record in system database, but due to User's access times are excessively frequently excessive to this website number of clicks or other reason, database server in certain time point or User website access times are not saved in system database in time period, are obtained by the data of the caching server of setting Take service to obtain the user's access times not having to preserve of this time point of system database or time period, be arranged on buffer service This user's access times is considered as preserving data to be stored unsuccessfully by the service that having in device preserves function, user is accessed secondary Number is temporarily stored in caching server.
S104:In the data Cun Chudao system database to be stored preserving unsuccessfully that will store in caching server, until Data to be stored unsuccessfully is preserved in system database.
Specifically, the service that sends by being arranged in caching server preserves keep in caching server unsuccessfully Data is activation to be stored receives what caching server sent to system database, the data reception service in system database Preserve data to be stored unsuccessfully, and in calling system database, data preserves service to preserve the treating unsuccessfully of preserving receiving Data storage, in caching server, the data to be stored of all preservation failures of caching is saved in system database the most at last.
For example, count website visiting number of times when, the most at last user's access times record in system database, but due to User's access times are excessively frequently excessive to this website number of clicks or other reason, database server in certain time point or User website access times are not saved in system database in time period, are obtained by the data of the caching server of setting Take service to obtain the user's access times not having to preserve of this time point of database or time period, be arranged in caching server Have preserve function service this user's access times not preserved is considered as preserving data to be stored unsuccessfully, by user Access times are temporarily stored in caching server.Will be temporary in caching server by the transmission service being arranged in caching server User's access times be sent to system database, the data reception service in system database receive caching server send The user's access times come, and call data in database to preserve service to preserve the user's access times receiving, the most at last In caching server caching all user's access times be saved in database corresponding to this website visiting number of times statistics In data, so, website visiting number of times can just be counted exactly.
A kind of date storage method that the present invention provides, is by arranging a caching server, using caching server Caching function the data to be stored that system database preserves unsuccessfully is temporarily stored in caching server, then by caching server In the temporary data to be stored preserving unsuccessfully be saved in system database.Present invention achieves system database is to be saved The complete preservation of data is it is ensured that the accuracy of data, safety and integrity.
Preferably, in a kind of data Cun Chudao system to be stored preserving unsuccessfully by storage in caching server of the present invention In embodiment in system database, including:
Every preset time period, by the data Cun Chudao system number to be stored preserving unsuccessfully of storage in caching server According in storehouse.
Specifically, this caching server is arranged with a preset time period, the purpose of setting preset time period is:? In preset time period caching server periodically by the data is activation to be stored preserving unsuccessfully of wherein preservation to system database, Realize caching server and updating ability is preserved to the data timing to be stored preserving unsuccessfully.
Specific practice is:Call in caching server and send service, to being saved in buffer service in preset time period The data timing to be stored preserving unsuccessfully in device sends, and the reception service in database receives in caching server and sends The data to be stored preserving unsuccessfully, be arranged in caching server preserve service by database receive come preserving unsuccessfully Data to be stored preserves, until the data to be stored preserving unsuccessfully that the caching server in this time cycle sends all preserves In database.
For example, when counting website visiting number of times, by the distributed caching memcached being arranged in caching server Method of increasing income obtains the user's access times not have preservation of database time point or time period, and caching server is by this data It is considered as preserving data to be stored unsuccessfully, user's access times are temporarily stored in caching server.In implementation process, to caching Server arranges a preset time period, in preset time period, caching server is scanned, and detects buffer service User's access times whether are preserved, if detect preserving user's access times, buffer service in caching server in device User's access times of preservation are sent to system database by the method for increasing income of the memcached in device, connecing in system database Conquer business and receive the user's access times sending in caching server, the preservation service in caching server of being arranged on is by number Receive the user's access times come to preserve according to storehouse, the user's access times preserving in caching server the most at last are all saved in and are In the corresponding data to this website visiting number of times statistics in system database, realize to the correct system counting this website visiting number of times Meter, deviation in the statistics preventing loss of data and causing.
It should be noted that arranging other data in buffer service to preserve service or method, by preserve unsuccessfully wait deposit Storage data is saved in caching server, broadly falls in the protection domain of this patent.
By Preset Time is arranged to caching server, in preset time period, caching server is scanned, will The data is activation to be stored preserving unsuccessfully that in preset time period, caching server is kept in is to system database, it is to avoid caching clothes Business device preserves overabundance of data and causes data corruption and to caching server build-up of pressure, improves caching server data keeping quality Can, in addition to system database, according to Preset Time, the data timing to be stored preserving unsuccessfully can be saved in system database In, also avoid data all in caching server are disposably saved in the pressure of system database.
Preferably, in a kind of data Cun Chudao system to be stored preserving unsuccessfully by storage in caching server of the present invention In embodiment in system database, including:
When the data capacity to be stored preserving unsuccessfully of storage in caching server exceedes predetermined threshold value, by caching server In the data Cun Chudao system database to be stored preserving unsuccessfully of middle storage.
Specifically, a threshold value is arranged to the data storage capacity of caching server, data preserves in caching server The data to be stored preserving unsuccessfully is saved in caching server for service, and setting program obtains the preservation that caching server preserves The data capacity to be stored of failure and the threshold value of the data storage capacity setting to caching server, and compare both big Little, if the data capacity to be stored preserving unsuccessfully that caching server preserves is more than the data storage capacity to caching server The threshold value of setting, then the data is activation service in caching server by be saved in caching server preserve unsuccessfully to be stored Data is sent in sequence in system database, and the data reception service of system database accepts the preservation that caching server sends The data to be stored of failure, and the data to be stored of all preservation failures that caching server is sent is saved in system data In storehouse.
For example, when counting website visiting number of times, obtained by the memcached method of increasing income being arranged in caching server Take the user's access times not having to preserve of system database time point or time period, this data is considered as protecting by caching server Deposit the data to be stored of failure, user's access times are temporarily stored in caching server.In implementation process, to caching server Data storage capacity one threshold value is set, the memcached being arranged in caching server increases income what method will not preserve User's access times are saved in caching server, and setting program obtains the user's access not having to preserve that caching server preserves Number of times data capacity and the threshold value of the data storage capacity setting to caching server, and compare both sizes, if slow The user's access times data capacity not have to preserve depositing server preservation sets more than to the data storage capacity of caching server The threshold value put, then the user's access times being saved in caching server are sent out by the data is activation service in caching server successively Deliver in system database, the data reception service of system database accepts user's access times that caching server sends, And user's access times of all preservation failures that caching server sent be saved in system database corresponding to this In the data of website visiting number of times statistics, realize, to the correct statistics counting this website visiting number of times, preventing to this partial data Loss.
By caching server is arranged with the threshold value of a buffer memory capacity, can be very good to reduce the storage of caching server Pressure, improves the caching performance of caching server, and, for system database, system database is slow according to set The threshold value depositing capacity carries out preserving data to be stored unsuccessfully, also reduces the storage pressure of system database.
Preferably, the data to be stored preserving unsuccessfully of storage in caching server is being deposited by a kind of of the embodiment of the present invention In embodiment before storing up in system database, also include:
Whether determining is stored with caching server preserves data to be stored unsuccessfully;
Specifically, by pre-set programs, caching server is timed with scanning, whether preserves in detection caching server There is the data to be stored preserving unsuccessfully.The purpose being timed scanning is:Whether guarantor is preserved in timing detection caching server Deposit the data to be stored of failure, in order to avoid the overabundance of data to be stored preserving unsuccessfully preserving in caching server, improve caching clothes The storage performance of business device.
In the data Cun Chudao system database to be stored preserving unsuccessfully that will store in caching server, including:
If being stored with the data to be stored preserving unsuccessfully in caching server, by the preservation storing in caching server failure Data Cun Chudao system database to be stored in.
Specifically, the data to be stored preserving unsuccessfully, buffer service are preserved by above-mentioned detecting in caching server The number to be stored preserving unsuccessfully that data is activation service in device will preserve in caching server according to storage time sequencing According to being sent to system database, what the data reception service in system database accepted that caching server sends preserves unsuccessfully Data to be stored, and then, what data in system database preserved that service preserves that caching server sends preserve treating unsuccessfully Data storage, until all of data to be stored preserving unsuccessfully is all saved in system database in caching server.
For example, when counting website visiting number of times, obtained by the memcached method of increasing income being arranged in caching server Fetch data the user's access times not having to preserve of storehouse time point or time period, this data is considered as preserving and loses by caching server The data to be stored losing, user's access times are temporarily stored in caching server.In implementation process, by pre-set programs to slow Depositing server to be scanned, in detection caching server, whether preserving the user's access times not preserved, if detecting slow Deposit the user's access times not having to preserve having preservation in server, be arranged at the memcached side of increasing income in caching server Method, according to the user's access times storage time sequencing not having to preserve preserving, the user preserving that do not have preserving is accessed Number of times is sent to system database, and what the data reception service order caching server in system database sent does not preserve User's access times, and then, data in system database preserves service and maintains system data the data reception service in storehouse The user's access times not having to preserve receiving, until all of user's access times not having to preserve are whole in caching server It is saved in the corresponding data to this website visiting number of times statistics in system database, realize correct to website visiting number of times Statistics, prevents the loss to this partial data.
It can be seen that, by detecting to caching server, the preservation preserving in detection caching server fails the embodiment of the present invention Data to be stored, then by caching server preserve the data to be saved preserving unsuccessfully be saved in system database, can Realize the real-time detection of caching server, the real-time preservation of system database.
Preferably, will in caching server storage the data Cun Chudao system database to be stored preserving unsuccessfully in it Afterwards, also include:
Remove the data to be stored preserving unsuccessfully being saved in system database of storage in caching server.
Specifically, when the data is activation to be stored preserving unsuccessfully preserving in caching server is to system database, system After the data to be stored preserving unsuccessfully is preserved by database, buffer service is removed in the data dump service in caching server The data to be stored preserving unsuccessfully being saved in system database in device.
For example, when counting website visiting number of times, obtained by the memcached method of increasing income being arranged in caching server Take the user's access times not having to preserve of system database time point or time period, this data is considered as protecting by caching server Deposit the data to be stored of failure, user's access times are temporarily stored in caching server, are arranged in caching server Memcached increases income method according to the user's access times storage time sequencing not having to preserve preserving, by not having of preserving The user's access times having preservation are sent to system database, the data reception service order caching server in system database The user's access times not having to preserve sending, and then, data in system database preserves service and maintains system data storehouse In the user's access times not have to preserve that receive of data reception service, until all of not preservation in caching server User's access times are all saved in the corresponding data to this website visiting number of times statistics in system database.In system number After keeping according to the user's access times not having to preserve that storehouse completes that caching server is sent, in caching server Memcached increase income method remove be saved in system database not have preservation user's access times.
It can be seen that, remove the data to be stored preserving unsuccessfully preserving in caching server, caching server can be saved Memory space, improves the utilization rate of caching server.
The embodiment of the invention also discloses a kind of data-storage system, can be found in Fig. 2, Fig. 2 is the one of the embodiment of the present invention Plant data-storage system figure, including:
First memory module 201, for being saved in data to be stored in system database;
Obtain data module 202, for obtaining the data to be stored preserving unsuccessfully;
Second memory module 203, for being saved in the data to be stored preserving unsuccessfully in caching server;
3rd memory module 204, for the data Cun Chudao system to be stored preserving unsuccessfully that will store in caching server In system database, until preserving data to be stored unsuccessfully in system database.
A kind of data-storage system that the present invention provides, is by arranging a caching server, using caching server Caching function, the data to be stored that system database is preserved unsuccessfully is temporarily stored in caching server, then by caching server In the temporary data to be stored preserving unsuccessfully be saved in system database.Present invention achieves system database is to be saved The complete preservation of data is it is ensured that the safety and integrity of data.
It should be noted that the system of the embodiment of the present invention is to apply the system of above-mentioned date storage method, then above-mentioned number All embodiments according to storage method are all applied to this device, and all can reach same or analogous beneficial effect.
Preferably, the 3rd memory module 204, specifically for,
Every preset time period, by the data Cun Chudao system number to be stored preserving unsuccessfully of storage in caching server According in storehouse.
Preferably, the 3rd memory module 204, is specifically additionally operable to,
When the data capacity to be stored preserving unsuccessfully of storage in caching server exceedes predetermined threshold value, by caching server In the data Cun Chudao system database to be stored preserving unsuccessfully of middle storage.
Preferably, before the 3rd memory module 204, data-storage system also includes:
Determining module, for determining the data to be stored preserving unsuccessfully that whether is stored with caching server;
3rd memory module 204, specifically for,
If being stored with the data to be stored preserving unsuccessfully in caching server, by the preservation storing in caching server failure Data Cun Chudao system database to be stored in.
Preferably, after the 3rd memory module 204, data-storage system also includes:
Remove module, for removing in caching server the treating unsuccessfully of preserving being saved in system database of storage Data storage.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that Also there is other identical element including in the process of key element, method, article or equipment.
Each embodiment in this specification is all described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for system For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to embodiment of the method in place of correlation Part illustrate.
These are only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All at this Any modification, equivalent substitution and improvement made within bright spirit and principle etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of date storage method is it is characterised in that include:
Data to be stored is saved in system database;
Obtain the data to be stored preserving unsuccessfully;
The described data to be stored preserving unsuccessfully is saved in caching server;
In the system database described in data Cun Chudao to be stored that the described preservation of storage in described caching server is failed, directly Preserve the described data to be stored preserving unsuccessfully to described system database.
2. date storage method according to claim 1 it is characterised in that described by described caching server storage In the described system database described in data Cun Chudao to be stored preserving unsuccessfully, including:
Every preset time period, by the data Cun Chudao system to be stored of the described preservation failure of storage in described caching server In system database.
3. date storage method according to claim 1 it is characterised in that described by described caching server storage In the described system database described in data Cun Chudao to be stored preserving unsuccessfully, including:
When the data capacity to be stored of the described preservation failure of storage in described caching server exceedes predetermined threshold value, will be described slow Deposit in the system database described in data Cun Chudao to be stored of described preservation failure of storage in server.
4. the date storage method according to any one of claims 1 to 3 is it is characterised in that take described caching described Before in the system database described in data Cun Chudao to be stored of described preservation failure of storage in business device, described data storage side Method also includes:
Determine the described data to be stored preserving unsuccessfully that whether is stored with described caching server;
The described system database described in data Cun Chudao to be stored by the described preservation failure of storage in described caching server In, including:
If being stored with the described data to be stored preserving unsuccessfully in described caching server, by storage in described caching server In the described system database described in data Cun Chudao to be stored preserving unsuccessfully.
5. the date storage method according to any one of claims 1 to 3 is it is characterised in that take described caching described After in the system database described in data Cun Chudao to be stored of described preservation failure of storage in business device, described data storage side Method also includes:
Remove the to be stored of the described preservation failure being saved in described system database storing in described caching server Data.
6. a kind of data-storage system is it is characterised in that include:
First memory module, for being saved in data to be stored in system database;
Obtain data module, for obtaining the data to be stored preserving unsuccessfully;
Second memory module, for being saved in the data to be stored preserving unsuccessfully in caching server;
3rd memory module, for the data Cun Chudao institute to be stored that the described preservation of storage in described caching server fails State in system database, until preserving the described data to be stored preserving unsuccessfully in described system database.
7. data-storage system according to claim 6 is it is characterised in that described 3rd memory module, specifically for:
Every preset time period, by the data Cun Chudao institute to be stored of the described preservation failure of storage in described caching server State in system database.
8. data-storage system according to claim 6, it is characterised in that described 3rd memory module, is specifically additionally operable to:
When the data capacity to be stored of the described preservation failure of storage in described caching server exceedes predetermined threshold value, will be described slow Deposit in the system database described in data Cun Chudao to be stored of described preservation failure of storage in server.
9. data-storage system according to claim 6 is it is characterised in that before described 3rd memory module, described Data-storage system also includes:
Determining module, for determining the described data to be stored preserving unsuccessfully that whether is stored with described caching server;
Described 3rd memory module, specifically for:
If being stored with the described data to be stored preserving unsuccessfully in described caching server, by storage in described caching server In the described system database described in data Cun Chudao to be stored preserving unsuccessfully.
10. data-storage system according to claim 6 is it is characterised in that after described 3rd memory module, described Data-storage system also includes:
Remove module, for removing the described preservation being saved in described system database of storage in described caching server The data to be stored of failure.
CN201610836972.3A 2016-09-21 2016-09-21 A data storage method and system Pending CN106407398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610836972.3A CN106407398A (en) 2016-09-21 2016-09-21 A data storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610836972.3A CN106407398A (en) 2016-09-21 2016-09-21 A data storage method and system

Publications (1)

Publication Number Publication Date
CN106407398A true CN106407398A (en) 2017-02-15

Family

ID=57997656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610836972.3A Pending CN106407398A (en) 2016-09-21 2016-09-21 A data storage method and system

Country Status (1)

Country Link
CN (1) CN106407398A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678682A (en) * 2017-08-16 2018-02-09 芜湖恒天易开软件科技股份有限公司 Method for the storage of charging pile rate
CN109151061A (en) * 2018-09-28 2019-01-04 视联动力信息技术股份有限公司 A kind of date storage method and device
CN112632184A (en) * 2020-12-15 2021-04-09 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112650814A (en) * 2020-12-30 2021-04-13 平安壹钱包电子商务有限公司 Data storage method, device, equipment and storage medium based on message middleware

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1393771A (en) * 2001-06-28 2003-01-29 华为技术有限公司 Method for quickly eliminating different information in database
CN101707399A (en) * 2009-11-20 2010-05-12 深圳市科陆电子科技股份有限公司 Method and system for acquiring electric energy information
US20110099179A1 (en) * 2009-10-26 2011-04-28 Oracle International Corporation Performance boost for sort operations
CN103886079A (en) * 2014-03-26 2014-06-25 北京京东尚科信息技术有限公司 Data processing method and system
CN105701257A (en) * 2016-03-31 2016-06-22 北京奇虎科技有限公司 Data processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1393771A (en) * 2001-06-28 2003-01-29 华为技术有限公司 Method for quickly eliminating different information in database
US20110099179A1 (en) * 2009-10-26 2011-04-28 Oracle International Corporation Performance boost for sort operations
CN101707399A (en) * 2009-11-20 2010-05-12 深圳市科陆电子科技股份有限公司 Method and system for acquiring electric energy information
CN103886079A (en) * 2014-03-26 2014-06-25 北京京东尚科信息技术有限公司 Data processing method and system
CN105701257A (en) * 2016-03-31 2016-06-22 北京奇虎科技有限公司 Data processing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678682A (en) * 2017-08-16 2018-02-09 芜湖恒天易开软件科技股份有限公司 Method for the storage of charging pile rate
CN109151061A (en) * 2018-09-28 2019-01-04 视联动力信息技术股份有限公司 A kind of date storage method and device
CN112632184A (en) * 2020-12-15 2021-04-09 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112650814A (en) * 2020-12-30 2021-04-13 平安壹钱包电子商务有限公司 Data storage method, device, equipment and storage medium based on message middleware
CN112650814B (en) * 2020-12-30 2023-09-26 平安壹钱包电子商务有限公司 Data storage method, device, equipment and storage medium based on message middleware

Similar Documents

Publication Publication Date Title
CN106407398A (en) A data storage method and system
CN104104717B (en) Deliver channel data statistical approach and device
CN106599199A (en) Data caching and synchronization method
CN102006330B (en) Distributed cache system, data caching method and inquiring method of cache data
WO2021164487A1 (en) Data query method and apparatus
CN106202581B (en) A kind of data search method and device
CN108429777B (en) Data updating method based on cache and server
CN109977129A (en) Multi-stage data caching method and equipment
CN106550052A (en) A kind of data acquisition unit and method based on OPC UA
CN109120709A (en) A kind of caching method, device, equipment and medium
CN104794228A (en) Search result providing method and device
CN110196759B (en) Distributed transaction processing method and device, storage medium and electronic device
CN107153644A (en) A kind of method of data synchronization and device
CN104239353B (en) WEB classification control and log audit method
CN110737857A (en) back-end paging acceleration method, system, terminal and storage medium
CN107491549A (en) A kind of data processing method and system
CN106446075A (en) Page request processing method and apparatus
CN107506438A (en) A kind of data processing storage method and device for Internet of Things
CN108132948B (en) Method and device for processing crawled webpage
CN101645802B (en) Method and device for controlling contents
CN109587232A (en) Document breakpoint transmission method based on iOS network
CN107239542A (en) A kind of data statistical approach, device, server and storage medium
CN107357686A (en) A kind of daily record delet method and device
CN104811349A (en) Method and device of access statistics
CN104751386A (en) Hotel distributed price comparison method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170215

WD01 Invention patent application deemed withdrawn after publication