Skip to content

What is the relationship and differences of two segments in DataNode & QueryNode #37073

Discussion options

You must be logged in to vote

I believe this function is the query node receive data from the message queue and insert the data into the in-memory growing segment. Yes, it is in memory, for query node.

func (sd *shardDelegator) ProcessInsert(insertRecords map[int64]*InsertData) {
      growing, err = segments.NewSegment()
      .......
      err := growing.Insert(context.Background(), insertData.RowIDs, insertData.Timestamps, insertData.InsertRecord)
}

yes it is, thx!

May I ask why this part of memory needs to be written in C++, any advantage concern?

In the design, C++ is the data plane and Go is the control plane. All index building and searching work of vector/scalar data are in C++ side to make it more effici…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@Reidddddd
Comment options

@Reidddddd
Comment options

@yhmo
Comment options

Comment options

You must be logged in to vote
5 replies
@Reidddddd
Comment options

@yhmo
Comment options

@Reidddddd
Comment options

@liliu-z
Comment options

Answer selected by Reidddddd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants