High-concurrency database access method and method applied to multi-server system
An access method and database technology, applied in the field of database data access, can solve problems such as increased workload, and achieve the effects of stable retrieval efficiency, reduced storage and search time consumption, and improved performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] Embodiment 1: A method for accessing a high-concurrency database. Triggers are set in the database, and a cache is set outside the database. The cache is provided with a hash table and a doubly linked list, and a cache clearing thread is provided for timing a long time Clean up the data that is not accessed to ensure that there is sufficient memory to store the cached data. When reading the database, read the cache first. When writing the database, write the updated data to the updated data table through a trigger, and write the updated data to the cache. , specifically include the following steps:
[0033] 1) When the main program reads the database, it first obtains the key value of the relevant data, and then reads the cache through the key value. If there is data in the cache, the main program uses the cached data directly. If there is no data in the cache, it reads the database. And use the read data, and write the read data into the cache at the same time, the spe...
Embodiment 2
[0050] Embodiment 2: The method of applying the high-concurrency database access method of Embodiment 1 to a multi-server system, setting up multiple web servers, and setting one of the servers as the core server, when the data of a certain server changes , to notify the core server of the change of the server, and the core server then notifies all other servers of the change, and the data of all servers is changed to new data.
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