Method and device for updating business data in search engine
By using distributed locks and version verification mechanisms in the distributed search engine, the inefficiency and resource waste caused by frequent remote calls are solved, achieving efficient business data updates and resource savings.
CN120910058APending Publication Date: 2025-11-07BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
6 Cites 0 Cited by
Patent Information
- Application Number
- CN202410558268.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2025-11-07
AI Technical Summary
Technical Problem
In existing technologies, updating business data in distributed search engines requires frequent remote calls, resulting in low update efficiency and wasted server resources.
Method used
A distributed lock and version verification mechanism is adopted. When a business data change message is received, a distributed lock is added to obtain and verify the version number, ensuring data consistency. The lock is released after the update is completed, reducing the number of remote calls.
Benefits of technology
It improved the efficiency of updating business data in the search engine, reduced the number of remote calls, saved server resources, and achieved cost reduction and efficiency improvement.
✦ Generated by Eureka AI based on patent content.
Abstract
The invention discloses a method and a device for updating business data in a search engine, and relates to the technical field of big data. A specific embodiment of the method comprises the following steps: in response to a received service data change message, extracting a service data identifier and a to-be-updated data field from the service data change message, and adding a distributed lock for service data according to the service data identifier; obtaining first business data from a search engine according to the business data identifier, wherein the first business data comprises a version number; performing version verification on the service data change message according to the version number of the first service data; and under the condition that the version verification is passed, updating the first service data according to the to-be-updated data field, and releasing the distributed lock after the updating is completed. According to the embodiment, the updating efficiency of the business data in the search engine is improved while the business data is guaranteed not to be lost and updated, the number of times of remote calling is greatly reduced, server resources are saved, and cost reduction and efficiency improvement are achieved.
Need to check novelty before this filing date? Find Prior Art