CN105335361A - Data upgrading method and apparatus - Google Patents

Data upgrading method and apparatus Download PDF

Info

Publication number
CN105335361A
CN105335361A CN201410225476.5A CN201410225476A CN105335361A CN 105335361 A CN105335361 A CN 105335361A CN 201410225476 A CN201410225476 A CN 201410225476A CN 105335361 A CN105335361 A CN 105335361A
Authority
CN
China
Prior art keywords
database
data
write operation
read
upgrading
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
CN201410225476.5A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410225476.5A priority Critical patent/CN105335361A/en
Publication of CN105335361A publication Critical patent/CN105335361A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure relates to a data upgrading method. The method comprises: copying a first database to obtain a second database, and recording a current time stamp; performing data upgrading on any one of the first database and the second database; and after the current time stamp, performing read and write operations by using the other database. The data upgrading method and apparatus realize that a database can be upgraded without affecting the normal use of users, increase the convenience and flexibility of upgrading a database, reduce the effect on normal use of users caused by upgrading a database, and improve the efficiency. The present disclosure also discloses an apparatus for implementing the data upgrading method.

Description

Data updating method and device
Technical field
The disclosure relates to mobile communication technology field, particularly relates to a kind of data updating method and device.
Background technology
Along with the development of infotech, software has become indispensable instrument in computing machine and various smart machine.Various application software is also followed user's request and is continually developed the function made new advances, and new version of upgrading, makes software function from strength to strength.
In software upgrade process, need the existing data structure of expansion software, the data in software local data base are upgraded.Such as, arrange new effective value to certain field in data, these effective values from service end, also may may generate according to certain algorithm in this locality.This data updating method is more consuming time, longer when the software application time, and the legacy data of accumulation is more, and in upgrade database, the time of data is longer.Need during database upgrade to write database, come by a newly-built background task.Carry out usually needing lock database when writing database manipulation, a background task can only carry out write operation, now other tasks can not carry out read-write operation to database, thus cause in data escalation process, and user cannot normally use this database simultaneously.
Summary of the invention
For overcoming correlation technique Problems existing, the disclosure provides a kind of data updating method and device, while carrying out data upgrading, does not affect the normal use of database.
According to the first aspect of disclosure embodiment, a kind of data updating method is provided, comprises:
Copy the first database and obtain the second database, and record current time stamp;
Data upgrading is carried out to any one database in described first database and the second database;
After described current time stamp, another database is utilized to perform read-write operation.
Achieve the normal use also not affecting user while database is upgraded, improve convenience and dirigibility that database is upgraded, when reducing database upgrade, the impact caused normally is used on user, raise the efficiency.
Described method also comprises:
After data upgrading, by the data produced by described read-write operation in another database described, copy to data and upgrade in complete any one database described, to guarantee data syn-chronization, the new user data produced when not losing upgrading.
The described data will produced by described read-write operation in another database described, copy to after data upgrade in complete any one database described, described method also comprises:
Delete another database described performing read-write operation.New database after enabling user use upgrading, experiences the rear New function of upgrading, thus completes the upgrading of database when not affecting user and normally using smoothly.
Described another database that utilizes performs read-write operation, comprising:
By the data utilizing another database execution read-write operation to produce, be stored in another database described according to the data layout after any one database upgrade described.Avoid the conversion carrying out data layout during the database replication data to upgrading is complete again, affect efficiency.
Described first database is different with the data layout of the second database.
Described another database that utilizes performs read-write operation, comprising:
By the data utilizing another database execution read-write operation to produce, be stored in another database described according to the data layout of any one database described.Avoid the conversion carrying out data layout during the data produced to the database replication read-write operation that upgrading is complete again, improve upgrading efficiency.
Described data upgrading is carried out to any one database in described first database and the second database, comprising:
From network side server or from this locality acquisition data, data upgrading is carried out to any one database described.Download upgrade data still from this locality expansion upgrade data from network side server, do not affect the normal use of user, and can not user data loss be caused.
According to the second aspect of disclosure embodiment, a kind of data update device is provided, comprises:
Processing module, obtains the second database for copying the first database, and records current time stamp;
Upgraded module, for carrying out data upgrading to any one database in described first database and the second database;
Module for reading and writing, for after described current time stamp, utilizes another database to perform read-write operation.
Described device also comprises:
Replication module, after data upgrading, by the data produced by described read-write operation in another database described, copies to data and upgrades in complete any one database described.
Described device also comprises:
Removing module, performs another database described in read-write operation for deleting.
Described module for reading and writing also comprises:
First storage unit, for the data that will another database execution read-write operation utilized to produce, is stored in another database described according to the data layout after any one database upgrade described.
Described module for reading and writing also comprises:
Second storage unit, for when described first database is different with the data layout of the second database, by the data utilizing another database execution read-write operation to produce, be stored in another database described according to the data layout of any one database described.
Described upgraded module also comprises:
Acquiring unit, for carrying out data upgrading from network side server or from this locality acquisition data to any one database described.
According to the third aspect of disclosure embodiment, a kind of data update device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein said processor is configured to:
Copy the first database and obtain the second database, and record current time stamp;
Data upgrading is carried out to any one database in described first database and the second database;
After described current time stamp, another database is utilized to perform read-write operation.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Achieve the normal use also not affecting user while database is upgraded, improve convenience and dirigibility that database is upgraded, when reducing database upgrade, the impact caused normally is used on user, raise the efficiency; Do not lose the user data produced in escalation process, and the new database after enabling user use upgrading, experience the rear New function of upgrading, thus complete the upgrading of database when not affecting user and normally using smoothly; Avoid the conversion carrying out data layout during the database replication data to upgrading is complete again, improve upgrading efficiency.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of a kind of data updating method according to an exemplary embodiment.
Fig. 2 is the process flow diagram of a kind of data updating method according to an exemplary embodiment.
Fig. 3 is the process flow diagram of a kind of data updating method according to an exemplary embodiment.
Fig. 4 is the process flow diagram of a kind of data updating method according to an exemplary embodiment.
Fig. 5 is the process flow diagram of a kind of data updating method according to an exemplary embodiment.
Fig. 6 is the block diagram of a kind of data update device according to an exemplary embodiment.
Fig. 7 is the block diagram of a kind of data update device according to an exemplary embodiment.
Fig. 8 is the block diagram of the module for reading and writing according to an exemplary embodiment.
Fig. 9 is the block diagram of the upgraded module according to an exemplary embodiment.
Figure 10 is the block diagram of a kind of data update device according to an exemplary embodiment.
Figure 11 is the block diagram of a kind of data update device according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the process flow diagram of a kind of data updating method according to an exemplary embodiment, and as shown in Figure 1, data updating method is used for, in terminal device, comprising the following steps.
In step S101, copy the first database and obtain the second database, and record current time stamp.
Terminal device, when upgrading to database, copies the data content in the first current database, generates second database with the first database with same data content.
After obtaining this second database, terminal device records current time is stabbed, and starts the time point of database upgrade as record.
In step s 102, data upgrading is carried out to any one database in the first database and the second database.
Terminal device carries out data upgrading to the first database and the second database any one database wherein.The database carrying out data upgrading receives upgrade data and carries out write operation, and now this database carrying out data upgrading can be locked, and cannot carry out other read-write operation.
In step s 103, after current time stamp, another database is utilized to perform read-write operation.
After current time stamp, when the first database and one of them database of the second database carry out data upgrading, another database is utilized to carry out read-write operation.The database now carrying out data upgrading is locked, can not carry out other read-write operations except write upgrade data.In order to not affect the normal use of user, another one database root is utilized to perform corresponding read-write operation according to the instruction that user inputs.As the first database carries out data upgrading, then the second database performs other read-write operations; As the second database carries out data upgrading, then the first database performs other read-write operations.
Disclosure embodiment, by coping database and logging timestamp, after this timestamp, utilize a database to carry out data upgrading, utilize the execution of another one database from the read-write operation of user, thus achieve database is upgraded while also do not affect the normal use of user, improve convenience and dirigibility that database is upgraded, when reducing database upgrade, the impact caused normally is used on user, raise the efficiency.
In the disclosure one embodiment, as shown in Figure 2, this data updating method is further comprising the steps of.
In step S104, after data upgrading, by the data produced by read-write operation in another database, copy in any one database that data upgrade complete.
After data upgrading, after not having this current timestamp in complete database of upgrading, another database performs the data that read-write operation produces.In order to ensure data syn-chronization, by the data produced by read-write operation in another database, copy in any one database that data upgrade complete, thus make data upgrade complete database be also included within this current timestamp after perform other read-write operations and the new data produced.
In step S105, delete another database performing read-write operation.
Data after any one database that now data are upgraded complete comprises upgrading and the data produced by read-write operation, perform another database of read-write operation comprise upgrading before data and the data that produced by read-write operation.Another database of this execution read-write operation deleted by terminal device, and guarantee user can use the new database after upgrading, experiences the rear New function of upgrading.Thus complete the upgrading of database smoothly, in escalation process, no matter how long database upgrade spends, and does not affect the normal use of user, and use the new data of generation to merge the data after upgrading and user after upgrading, can not user data loss be caused.
In the disclosure one embodiment, this step S103, after current time stamp, utilizes another database to perform read-write operation, further comprising the steps.
In step S103a, by the data utilizing another database execution read-write operation to produce, be stored in another database according to the data layout after any one database upgrade.
For the database carrying out data upgrading, when the data layout after upgrading is different from the data layout before upgrading, the data layout of the data that can produce after current time is stabbed with another database performing read-write operation does not mate, and cannot merge; Or need the conversion data that another database performing read-write operation produces after current time stamp being carried out again a data layout.
When the data layout after the database upgrade carrying out data upgrading is different from the data layout before upgrading, the database of this execution read-write operation, the data layout that the data that execution read-write operation produces are carried out after the database upgrade of data upgrading according to this is preserved, avoid the conversion carrying out data layout during pooled data again, raise the efficiency.
Such as, when the first database is used for data upgrading, second database is for performing read-write operation, and when the data layout after the first database upgrade is different from the data layout before upgrading, the second database performs the data that read-write operation produces after current time being stabbed and preserves according to the form after the first database upgrade.Or, when the second database is used for data upgrading, first database is for performing read-write operation, and when the data layout after the second database upgrade is different from the data layout before upgrading, the first database performs the data that read-write operation produces after current time being stabbed and preserves according to the form after the second database upgrade.To avoid carrying out Data Format Transform again during pooled data, the efficiency that raising database upgrade and data merge.
In the disclosure one embodiment, this first database is different with the data layout of the second database.Terminal device copies the data of the first database, and during data genaration the second database according to the first database, the data content of this second database is identical with the first database, and the data layout of this second database is different from the first database.Now, this step S103, after current time stamp, utilizes another database to perform read-write operation, further comprising the steps.
In step S103b, by the data utilizing another database execution read-write operation to produce, be stored in another database according to the data layout of any one database.
Now the first database is different from the data layout of the second database, by the data that the database performing read-write operation produces after current time stamp, preserve according to the data layout of the database carrying out data upgrading, to avoid the conversion carrying out data layout during pooled data again.
Such as, first database is different from the data layout of the second database, when the first database is used for data upgrading, when second database is for performing read-write operation, the second database performs the data that read-write operation produces after current time being stabbed and preserves according to the data layout of the first database; When the second database is used for data upgrading, when the first database is for performing read-write operation, the first database performs the data that read-write operation produces after current time being stabbed and preserves according to the data layout of the second database.Carry out the conversion of data layout when avoiding pooled data again, improve the efficiency that database upgrade and data merge.
In the disclosure one embodiment, this step S102 carries out data upgrading to any one database in the first database and the second database, comprises the following steps.
In step S102a, from network side server or from this locality acquisition data, data upgrading is carried out to any one database.
When carrying out data upgrading to the first database or the second database, download upgrade data from the server of network side, or expand local data structure in this locality according to upgrade algorithm and obtain upgrade data.Download upgrade data still from this locality expansion upgrade data from network side server, do not affect the normal use of user, and can not user data loss be caused.
Below by several exemplary embodiments, the disclosure is further described.
Embodiment one
As shown in Figure 3, when carrying out the upgrading of software data to the database of certain server, this data updating method comprises the following steps.
In step s 201, the first database copying this server current obtains the second database, and records current time stamp.
In step S202, data upgrading is carried out to any one database in the first database and the second database.From the first database and the second database, select a database to carry out data upgrading.Upgrade data from the upgrade server of network side, or from the escalation policy of this server this locality, upgrades legacy data.
In step S203, after current time stamp, another database is utilized to perform read-write operation.The database being used for performing read-write operation preserves the new data performing read-write operation and produce.
In step S204, after data upgrading, by performing the data produced by read-write operation in the database of read-write operation, copying to data and upgrading in complete database.Now to carry out in the database of data upgrading the data after not only comprising upgrading but also comprise the data performing read-write operation and produce.
In step S205, delete another database performing read-write operation.These data of access are upgraded complete database by the follow-up read-write operation of user.
This embodiment one, completes and upgrades to the software data of database, and during upgrading, do not affect the normal use of user, and the user data produced during can not upgrading being lost.
Embodiment two
As shown in Figure 4, when carrying out HardwareUpgring to database server, this data updating method comprises the following steps.
In step S301, the first database copying first server current obtains the second database, the second database is saved to the second server with higher hardware configuration, and records current time stamp.
In step s 302, data upgrading is carried out to the second database being kept at second server.
In step S303, after current time stamp, utilize the first database being kept at first server to perform read-write operation, and preserve the data of this read-write operation generation.
In step s 304, after the second database upgrade of second server, the data that this read-write operation in the first database produces are sent to the second database that the upgrading of second server is complete.
In step S305, close this first server, and be the IP address of second server by database server IP address switchover.
This embodiment two, completes simultaneously and upgrades to the hardware and software of database server, and during upgrading, do not affect the normal use of user, reduces when database carries out HardwareUpgring and normally accesses on user the impact caused, raise the efficiency.
Embodiment three
As shown in Figure 5, when upgrading to the application program of installing terminal equipment, this data updating method comprises the following steps.
In step S401, using the local data of this application program as the first database, copy this first database and obtain the second database, and record current time stamp.
In step S402, data upgrading is carried out to any one database in the first database and the second database.
In step S403, after current time stamp, utilize another database to perform the read-write operation of this application program to data, and preserve the data of this read-write operation generation.
In step s 404, after data upgrading, the data Replica performing the generation of this application program read-write operation is upgraded in complete database to data.
In step S405, delete and perform another database of this application program read-write operation, these data of access are upgraded complete database by the follow-up read-write operation of this application program.
This embodiment three, when application programs is upgraded, copy the local data of this application program as two databases, one for carrying out data upgrading, another continues to perform this application program to the read-write operation of data, make this application program while upgrading, also do not affect user and continue normal use, and the new user data produced in escalation process can not be lost.
Fig. 6 is the block diagram of a kind of data update device according to an exemplary embodiment.With reference to Fig. 6, this device comprises processing module 60, upgraded module 61 and module for reading and writing 62.
This processing module 60 is configured to obtain the second database for copying the first database, and records current time stamp;
This upgraded module 61 is configured to for carrying out data upgrading to any one database in the first database and the second database;
After this module for reading and writing 62 is configured in current time stamp, another database is utilized to perform read-write operation.
In the disclosure one embodiment, as shown in Figure 7, this data update device also comprises replication module 63 and removing module 64.
This replication module 63 is configured to for after data upgrading, by the data produced by read-write operation in another database, copies in any one database that data upgrade complete;
This removing module 64 is configured to for deleting another database performing read-write operation.
In the disclosure one embodiment, as shown in Figure 8, this module for reading and writing 62 comprises the first storage unit 620 and the second storage unit 621 further.
This first storage unit 620 is configured to, for the data that will another database execution read-write operation utilized to produce, be stored in another database according to the data layout after any one database upgrade;
This second storage unit 621 is configured to for when the first database is different with the data layout of the second database, by the data utilizing another database execution read-write operation to produce, be stored in another database according to the data layout of any one database.
In the disclosure one embodiment, as shown in Figure 9, this upgraded module 61 comprises acquiring unit 610 further.
This acquiring unit 610 is configured to for carrying out data upgrading from network side server or from this locality acquisition data to any one database.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 10 is the block diagram of a kind of data update device 800 according to an exemplary embodiment.Such as, device 800 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 10, device 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing element 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensor, for providing the state estimation of various aspects for device 800.Such as, sensor module 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right pick-up unit 800 of sensor module 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the temperature variation of device 800 orientation or acceleration/deceleration and device 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
Figure 11 is the block diagram of a kind of data update device 1900 according to an exemplary embodiment.Such as, device 1900 may be provided in a server.With reference to Figure 11, device 1900 comprises processing components 1922, and it comprises one or more processor further, and the memory resource representated by storer 1932, can such as, by the instruction of the execution of processing element 1922, application program for storing.The application program stored in storer 1932 can comprise one or one correspond to one group of instruction module with each in household electrical appliances state information notification.In addition, processing components 1922 is configured to perform instruction, to perform the above method.
Device 1900 can also comprise the power management that a power supply module 1926 is configured to actuating unit 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 can operate the operating system based on being stored in storer 1932, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of data updating method, the method comprises:
Copy the first database and obtain the second database, and record current time stamp;
Data upgrading is carried out to any one database in the first database and the second database;
After current time stamp, another database is utilized to perform read-write operation.
The method also comprises:
After data upgrading, by the data produced by read-write operation in another database, copy in any one database that data upgrade complete.
By the data produced by read-write operation in another database, after copying in any one database that data upgrade complete, the method also comprises:
Delete another database performing read-write operation.
Utilize another database to perform read-write operation, comprising:
By the data utilizing another database execution read-write operation to produce, be stored in another database according to the data layout after any one database upgrade.
This first database is different with the data layout of the second database.
Utilize another database to perform read-write operation, comprising:
By the data utilizing another database execution read-write operation to produce, be stored in another database according to the data layout of any one database.
Data upgrading is carried out to any one database in the first database and the second database, comprising:
From network side server or from this locality acquisition data, data upgrading is carried out to any one database.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (14)

1. a data updating method, is characterized in that, comprising:
Copy the first database and obtain the second database, and record current time stamp;
Data upgrading is carried out to any one database in described first database and the second database;
After described current time stamp, another database is utilized to perform read-write operation.
2. the method for claim 1, is characterized in that, described method also comprises:
After data upgrading, by the data produced by described read-write operation in another database described, copy to data and upgrade in complete any one database described.
3. method as claimed in claim 2, is characterized in that, the described data will produced by described read-write operation in another database described, and copy to after data upgrade in complete any one database described, described method also comprises:
Delete another database described performing read-write operation.
4. the method as described in as arbitrary in claim 1-3, is characterized in that, described another database that utilizes performs read-write operation, comprising:
By the data utilizing another database execution read-write operation to produce, be stored in another database described according to the data layout after any one database upgrade described.
5. the method as described in as arbitrary in claim 1-3, it is characterized in that, described first database is different with the data layout of the second database.
6. method as claimed in claim 5, is characterized in that, described another database that utilizes performs read-write operation, comprising:
By the data utilizing another database execution read-write operation to produce, be stored in another database described according to the data layout of any one database described.
7. the method for claim 1, is characterized in that, describedly carries out data upgrading to any one database in described first database and the second database, comprising:
From network side server or from this locality acquisition data, data upgrading is carried out to any one database described.
8. a data update device, is characterized in that, comprising:
Processing module, obtains the second database for copying the first database, and records current time stamp;
Upgraded module, for carrying out data upgrading to any one database in described first database and the second database;
Module for reading and writing, for after described current time stamp, utilizes another database to perform read-write operation.
9. device as claimed in claim 8, it is characterized in that, described device also comprises:
Replication module, after data upgrading, by the data produced by described read-write operation in another database described, copies to data and upgrades in complete any one database described.
10. device as claimed in claim 9, it is characterized in that, described device also comprises:
Removing module, performs another database described in read-write operation for deleting.
11. as arbitrary in claim 8-10 as described in device, it is characterized in that, described module for reading and writing also comprises:
First storage unit, for the data that will another database execution read-write operation utilized to produce, is stored in another database described according to the data layout after any one database upgrade described.
12. as arbitrary in claim 8-10 as described in device, it is characterized in that, described module for reading and writing also comprises:
Second storage unit, for when described first database is different with the data layout of the second database, by the data utilizing another database execution read-write operation to produce, be stored in another database described according to the data layout of any one database described.
13. devices as claimed in claim 8, it is characterized in that, described upgraded module also comprises:
Acquiring unit, for carrying out data upgrading from network side server or from this locality acquisition data to any one database described.
14. 1 kinds of data update devices, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein said processor is configured to:
Copy the first database and obtain the second database, and record current time stamp;
Data upgrading is carried out to any one database in described first database and the second database;
After described current time stamp, another database is utilized to perform read-write operation.
CN201410225476.5A 2014-05-26 2014-05-26 Data upgrading method and apparatus Pending CN105335361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410225476.5A CN105335361A (en) 2014-05-26 2014-05-26 Data upgrading method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410225476.5A CN105335361A (en) 2014-05-26 2014-05-26 Data upgrading method and apparatus

Publications (1)

Publication Number Publication Date
CN105335361A true CN105335361A (en) 2016-02-17

Family

ID=55285905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410225476.5A Pending CN105335361A (en) 2014-05-26 2014-05-26 Data upgrading method and apparatus

Country Status (1)

Country Link
CN (1) CN105335361A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948402A (en) * 2021-01-15 2021-06-11 浙江大华技术股份有限公司 Database updating method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220065A1 (en) * 2001-04-02 2007-09-20 Siebel Systems, Inc. Method, system, and product for maintaining software objects during database upgrade
CN102438041A (en) * 2010-10-20 2012-05-02 微软公司 Upgrade of highly available farm server groups
CN102567064A (en) * 2012-02-13 2012-07-11 山西太钢不锈钢股份有限公司 System upgrading method
CN102779191A (en) * 2012-07-03 2012-11-14 互动在线(北京)科技有限公司 Achievement system and achievement method for my structured query language (My SQL) database smooth upgrading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220065A1 (en) * 2001-04-02 2007-09-20 Siebel Systems, Inc. Method, system, and product for maintaining software objects during database upgrade
CN102438041A (en) * 2010-10-20 2012-05-02 微软公司 Upgrade of highly available farm server groups
CN102567064A (en) * 2012-02-13 2012-07-11 山西太钢不锈钢股份有限公司 System upgrading method
CN102779191A (en) * 2012-07-03 2012-11-14 互动在线(北京)科技有限公司 Achievement system and achievement method for my structured query language (My SQL) database smooth upgrading

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948402A (en) * 2021-01-15 2021-06-11 浙江大华技术股份有限公司 Database updating method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN104484200A (en) Method and device for updating firmware
CN104156236A (en) Storage space saving method and device
CN104951336A (en) Application program installation method and device
CN105488112A (en) Information pushing method and device
CN105094931A (en) Software upgrading method and device
CN104536848A (en) Firmware recovery method, device and terminal
CN104469741A (en) Terminal configuration method and device
CN105553963A (en) Control method and device of positioning services
CN105094904A (en) Application program installation method and device
CN104536783A (en) Method and device for setting reserved space
CN104281478A (en) Method and device for updating application programs
CN104462296A (en) File managing method and device and terminal
CN105446768A (en) System upgrading method and apparatus
CN104811776A (en) Multimedia playing method and device
CN104615546A (en) File data management method and device
CN105630546A (en) System updating method and system updating device
CN105892805A (en) Instant message processing method and device
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN104767857A (en) Telephone calling method and device based on cloud name cards
CN105354284A (en) Template processing method and apparatus and short message identification method and apparatus
CN104038407A (en) Instant message management method and device
CN105183586A (en) Method and apparatus for restoring accidentally deleted file in EXT file system and intelligent device
CN105426210A (en) Method and device for upgrading system
CN104503786A (en) Method and device for refreshing firmware
CN105487903A (en) System upgrading method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217