Memory data persistence method and device, storage medium and computer equipment
An in-memory data and persistent technology, applied in the computer field, can solve the problems of not being able to guarantee data security well, large file size, occupying storage space, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0079] When the business data persistence mode is the snapshot file mode, step 204 specifically includes:
[0080] Step 204A1, calling the fork function fork to create a child process;
[0081] Step 204A2, write the existing business data in the memory into the snapshot file through the sub-process.
[0082] In the above embodiment, use the fork function to copy a copy of the current process (child process), the parent process continues to process the client request, the fork process is responsible for synchronizing the data in the memory to the temporary file on the disk, when the child process writes the snapshot After the temporary file is finished, replace the original snapshot file with the temporary file, and then the child process exits.
Embodiment 2
[0084] When the business data persistence mode is an incremental file mode, step 204 specifically includes:
[0085] Step 204B1, when there is update data written into the internal memory, sequentially add write instructions corresponding to the update data to the incremental file.
[0086] In the above embodiment, the memory usually performs continuous update operations on the same data, each update operation corresponds to a write instruction, and the write instructions corresponding to each update operation are added to the incremental file in order, Write commands that are added to the delta file first are placed in front of write commands that are added to the delta file later.
Embodiment 3
[0088] If the business data persistence mode corresponding to the target time is a mixed mode, step 204 specifically includes:
[0089] Step 204C1, when there is updated data that needs to be written into the memory, add the write instructions corresponding to the updated data to the incremental file in sequence;
[0090] Step 204C2, when the size of the incremental file is greater than or equal to the preset threshold, add existing data in memory to the snapshot file, and clear the incremental file.
[0091] In the above-mentioned embodiment, the data persistence process corresponding to the mixed mode is as follows: First, the business data is persisted in the incremental file mode, and each time the data is updated, the write instruction corresponding to the updated data is added to the incremental file, and the write There will be more and more write instructions in the incremental file, the size of the incremental file will become larger and larger, and the storage space ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com