Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Weili Gu committed Feb 20, 2024
1 parent a4d9ef1 commit a3d9519
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/coordinator/internal/metastore/db/dbmodel/segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import (
)

type Segment struct {
/* Making CollectionID the primary key allows fast search when we have CollectionID.
This requires us to push down CollectionID from the caller. We don't think there is
need to modify CollectionID in the near future. Each Segment should always have a
collection as a parent and cannot be modified. */
CollectionID *string `gorm:"collection_id;primaryKey"`
ID string `gorm:"id;primaryKey"`
Type string `gorm:"type;type:string;not null"`
Expand Down

0 comments on commit a3d9519

Please sign in to comment.