Thread-safe index dynamic updating method and system
A dynamic update and index technology, applied in the index field, can solve problems such as the inability to guarantee real-time update of the index and update thread safety
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] The invention monitors the change of the index file in the directory to be indexed through the dynamic monitoring technology, compares it with the current index version and time, and judges whether the index needs to be updated.
[0050] When the index needs to be updated, this method can automatically rebuild the index and ensure that the index user can still use the index normally during the process of rebuilding the index. The thread-safe index updating method proposed by the present invention can ensure the usability and thread safety of the index in the scenario of high concurrent query when the index is dynamically changed.
[0051] According to a thread-safe index dynamic update method provided by the present invention, such as Figures 1 to 2 shown, including:
[0052] Step S1: read the index file information in the directory to be indexed;
[0053] Step S2: Initialize the index hash queue and index state set according to the index file information, and establis...
Embodiment 2
[0098] Embodiment 2 is a preferred example of embodiment 1
[0099] image 3 As an example of a dynamic index system, the thread-safe index dynamic update system provides two query methods: user access query and external system call query. After receiving user or system behavior, the system distributes the request to the index management use case through the index query use case. The index management use case maintains a dynamically changing index queue for accepting user requests and dynamically updating index information. The index update use case monitors the index update status through the index file management use case. If the index is updated, a new index will be dynamically established and the index management use case will be notified to update. The index management use case updates the index file in a thread-safe manner after receiving the notification. The system timing steps are as follows:
[0100] S1: Index file management use case reads and parses index files;...
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