Abstract: A UUID generation method for a distributed graph database, and a data processing method and apparatus for the distributed graph database. The UUID generation method for the distributed graph database comprises the following steps: receiving a UUID generation request, wherein the UUID generation request comprises an input field and a partition number of the input field; calling a Murmur hash function to generate an initial UUID according to the input field and the partition number of the input field; querying whether a duplicate key value exists between the initial UUID and a historical UUID to obtain a query result; and obtaining a target UUID for storage according to the query result and the initial UUID.
Type:
Grant
Filed:
June 30, 2021
Date of Patent:
December 13, 2022
Assignee:
Vesoft. Inc
Inventors:
Chenguang Wang, Yujue Wang, Xiaomeng Ye, Yiwei Wu
Abstract: A POI recommendation method based on the graph database includes: acquiring an ID and positioning information of a target user; according to the ID and the positioning information of the target user, acquiring a feature vector of the target user, a friend intimacy coefficient of the target user and a target POI set from a target graph database, wherein the target POI set is a set composed of POIs within a preset distance range queried according to the positioning information; according to the target POI set, acquiring a feature matrix of a user set with related POI consumption records from the target graph database, wherein the related POI consumption records are consumption records associated with any POI in the target POI set; and according to the friend intimacy coefficient, the feature vector of the target user and the feature matrix, determining a target POI from the target POI set.
Abstract: A UUID generation method for a distributed graph database, and a data processing method and apparatus for the distributed graph database. The UUID generation method for the distributed graph database comprises the following steps: receiving a UUID generation request, wherein the UUID generation request comprises an input field and a partition number of the input field; calling a Murmur hash function to generate an initial UUID according to the input field and the partition number of the input field; querying whether a duplicate key value exists between the initial UUID and a historical UUID to obtain a query result; and obtaining a target UUID for storage according to the query result and the initial UUID.
Type:
Application
Filed:
June 30, 2021
Publication date:
March 3, 2022
Applicant:
Vesoft. Inc
Inventors:
Chenguang WANG, Yujue WANG, Xiaomeng YE, Yiwei WU
Abstract: A POI recommendation method based on the graph database includes: acquiring an ID and positioning information of a target user; according to the ID and the positioning information of the target user, acquiring a feature vector of the target user, a friend intimacy coefficient of the target user and a target POI set from a target graph database, wherein the target POI set is a set composed of POIs within a preset distance range queried according to the positioning information; according to the target POI set, acquiring a feature matrix of a user set with related POI consumption records from the target graph database, wherein the related POI consumption records are consumption records associated with any POI in the target POI set; and according to the friend intimacy coefficient, the feature vector of the target user and the feature matrix, determining a target POI from the target POI set.