Method and device for deleting duplicated data and system
A technology of data deduplication and data page, which is applied in the database field, can solve the problems of wasting external memory storage space and reducing the efficiency of backing up current data in memory databases, and achieve the effect of saving storage space and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] refer to figure 1 , figure 1 It is an implementation flowchart of a deduplication method provided by an embodiment of the present invention, and is described in detail as follows:
[0035] In step S101, the in-memory database is in the cache area, and the data pages to be written into the external memory are cached;
[0036] Wherein, the external storage includes but is not limited to a magnetic disk, a floppy disk, a hard disk or an optical disk.
[0037] Wherein, the data page to be written into the external memory is the data page of the current data backed up to the external memory.
[0038] Wherein the memory database is in the cache area, and the data pages to be written into the external memory are cached, specifically:
[0039] The in-memory database caches data pages to be written into the external memory in the cache area, and stores external data request events in a cache queue to stop processing external data request events.
[0040] Among them, the memo...
Embodiment 2
[0059] This embodiment mainly describes the implementation process if the fingerprint value does not exist in the preset fingerprint index table, and the details are as follows:
[0060] In the preset fingerprint index table, after searching whether the fingerprint value exists, it also includes:
[0061] If the fingerprint value does not exist in the preset fingerprint index table, it is judged that the data page is not a redundant page, and the data page is written into the data file;
[0062] Obtain the data page offset of the data page in the data file;
[0063] Writing the fingerprint value corresponding to the data page and the data page offset of the data page in the data file into the fingerprint index table, and writing the fingerprint value corresponding to the data page into the memory backup information file.
[0064] Wherein, if the fingerprint value does not exist in the preset fingerprint index table, it means that the fingerprint value corresponding to the dat...
Embodiment 3
[0067] This embodiment mainly describes the implementation process of restoring data pages in the memory database, which is described in detail as follows:
[0068] receive the selected backup point;
[0069] Read the backup information file according to the received backup point, and read the fingerprint values one by one in the backup information file;
[0070] Each time a fingerprint value is read, the fingerprint value is used to search the data page offset corresponding to the fingerprint value in the fingerprint index table;
[0071] According to the data page offset and the data page size, read the data in the data page in the data file, and load the read data into the memory to restore the data in the memory database Page.
[0072] In this embodiment, the above process is repeated until the restoration is completed, and then the data in the memory database is restored to the data state of the backup point.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com