Graph data updating method and device, computer equipment and storage medium
An update method and data update technology, which is applied in database update, database index, structured data retrieval, etc., can solve the problem of high update cost and achieve the effect of reducing search cost, improving update efficiency, and ensuring update efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] figure 1 It is a flow chart of the method for updating graph data provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of updating existing graph data (that is, data stored in the form of a graph structure). This method can be composed of graph data The updating device can be implemented by software and / or hardware, and generally can be integrated in a computer device with computing and processing functions. Such as figure 1 As shown, the method specifically includes:
[0029] S110. Receive data to be updated.
[0030] Among them, the business platform based on graph data generally includes a processing link and a storage link. The processing link is used to perform business processing and generate business data, and the storage link is used to update the existing graph according to the business data. For example, user A transfers money to user B, Corresponding business data will be generated, and this new business data needs t...
Embodiment 2
[0046] On the basis of the foregoing embodiments, this embodiment provides an embodiment of an update manner corresponding to the first priority category. Specifically, if the priority category of the data to be updated is the first priority category, in S130, the data to be updated is processed according to the update method corresponding to the priority category, including:
[0047] If the data to be updated is point data, obtain the index address of the point data from the pre-stored index information, search for the corresponding point in the graph according to the index address of the point data, and update the point of the point according to the point data attribute information;
[0048] If the data to be updated is edge data, obtain the index address of the out-degree point and the index address of the in-degree point of the edge data from the pre-stored index information, and determine the distance between the out-degree point and the in-degree point There is a unique...
Embodiment 3
[0067] On the basis of the foregoing embodiments, this embodiment provides an embodiment of an update manner corresponding to the second priority category. Specifically, if the priority category of the data to be updated is the second priority category, in S130, the data to be updated is processed according to the update method corresponding to the priority category, including:
[0068] Determine that the data to be updated hits the update data cached in the cache; update the corresponding data in the cache according to the data to be updated; write the update data in the cache that meets the writing conditions into the graph by polling, Overwrite the corresponding original data in the figure.
[0069] In this embodiment, all the update data belonging to the second priority category are written into the cache, and the update data in the cache are written into the graph in batches in a polling manner. Among them, the write condition refers to the condition that the updated dat...
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