5 篇文章

  • Create Ann Index

    Create Ann Index Ann Index Manager 在 Storage Daemon 中设计一个VectorIndexManager单例对整个 Storaged 中的 Ann Index 进行管理。 Ann Index 的生命周期: 创建:通过 CreateTagAnnIndex 请求创建 Ann Index。 除非删除,否则会一直在内存中维护,在退出时需要持久化到磁盘,同时重启系统后需要从磁盘中加载已经存在的 Ann Index。 使用:在查询时使用 Ann Index 进行加速。 删除:通过 DropTagAnnIndex 请求删除 Ann Index。 更新:通过 Up...

  • DDL for vector type

    Implement DDL for Vector Type Implement CREATE TAG for Vector Type Thrift: Modify ColumnTypeDef Use type_lenght to indicate the dimension of the vector type.

  • DML for vector type

    The Process of DML for Vector Type(Insert for example) Overview Graphd Process Insert 语句首先由 Graphd 从 client 接收,Graph Service 将 Query、Session、Storage 等打包成 Request Context,随后将 Request Context 打包成 Query Context,创建 Query Instance 随后开始执行 parse、validate、optimize、execute 整个流程。 经过 Graphd 的 validate,进入 Plann...

  • Match for vector property

    Match for Vector Property Simplest match case MATCH (v) RETURN v LIMIT 3; Process MatchValidator 验证阶段 在验证阶段,节点 (v) 被识别为: 没有指定标签的节点模式 没有属性过滤条件 别名为 v,类型为 AliasType::kNode MatchPathPlanner 路径规划阶段 StartVidFinder 寻找起始点 在 MatchPathPlanner::findStarts() 中 // 遍历所有的 StartVidFinder for (auto& finder : sta...

  • wal for vector type

    WAL for Vector Type WAL Scenarios 场景 1: 新节点加入集群 初始状态 集群状态: - Leader: Node1 (term=5, lastLogId=100) - Follower: Node2 (term=5, lastLogId=100) - Follower: Node3 (term=5, lastLogId=100) - 新节点: Node4 (term=0, lastLogId=0) 重放流程 步骤 1: 新节点启动 // Node4 启动 void RaftPart::start(std::vector<HostAddr>&...