vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.86k stars 1.21k forks source link

Push down multi-update into StorageD #5969

Open JackChuengQAQ opened 2 weeks ago

JackChuengQAQ commented 2 weeks ago

Introduction

I am the contributor of Enable MULTIUPDATE and LOOKUP | UPDATE #5953, in the current commit, graphD need to send multiple RPC request to StorageD, which may cause highly communication cost.

Contents

I am going to enhance the code, push down the multi-update into StorageD, which allows only one RPC request for multi-update.

My plan is simply described as follows. First, change the RPC Request to allow sending a set of vertex (edge) to StorageD. Second, change class UpdateVertexProcessor (UpdateEdgeProcessor) as well as UpdateTagNode (UpdateEdgeNode) to support update a bacth of vertices (edges) at a time.

If you have any advice, please let me know!