Method and storage medium for optimized loading of memory data
A technology for in-memory data and data, applied in the field of optimal loading of in-memory data, can solve problems such as slow program startup and impact on use functions, and achieve the effects of stable performance of the whole machine, ensuring integrity, and reducing the probability of stalling.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] Please refer to figure 1 with figure 2 This embodiment provides a method for optimizing loading of memory data, which can not only increase the speed of data loading into the memory, thereby increasing the startup speed of the program; but also ensure that the running speed of the program is not affected and the integrity of the loaded data is ensured.
[0038] First, see figure 1 , set the main cache and backup cache inside the server, and the data in the backup cache is kept in sync with the data in the main cache, and the backup cache is used to synchronize the data in the main cache to play a backup role. When the client calls the server interface, the interface will read data from the main cache, and the data in the main cache can also be used by other internal functions of the server.
[0039] When the data in the main cache changes (such as data changes or operations by background operation and maintenance personnel), the program will only update the data in t...
Embodiment 2
[0045]This embodiment provides the corresponding embodiment 1, and provides a specific application scenario:
[0046] 1. The client calls the server interface, and the interface needs to read the dictionary list data from the main cache, about 1000 items; the program directly reads the 1000 items of data from the main cache and returns them.
[0047] 2. The current time is 22 o'clock. After 10 minutes, the background management personnel added 100 new dictionary data, and the program will update the dictionary list data in the main program to 1100, and update the corresponding database records at the same time.
[0048] 3. At this time, an independent asynchronous thread in the program will regularly read the data in the main cache and write it into the backup cache every 30 seconds to ensure that the data in the main and backup caches are consistent.
[0049] 4. Another independent asynchronous thread will be started every hour. The main task is to read the data in the backup...
Embodiment 3
[0052] This embodiment provides a corresponding embodiment 1 and embodiment 2, and provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, it can realize the above-mentioned embodiment 1 or embodiment The steps included in the method for optimizing loading of memory data described above, the specific steps will not be repeated here, please refer to the description of Embodiment 1 or Embodiment 2 for details.
[0053] In summary, the method for optimizing loading of memory data and the storage medium provided by the present invention can not only realize effective backup of memory data; but also can increase the loading speed of memory data, thereby increasing the startup rate of programs; furthermore, it can also ensure that The integrity of the loaded data; finally, it can ensure that the daily running speed of the program is not affected, and improve the stability of the services provided by the main ...
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