Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用protobuf方式,生成的代码文件,无法以O(1)或map的方式存取;因为相关的数据结构是数组的 #119

Open
FancyTiger opened this issue Apr 25, 2023 · 0 comments

Comments

@FancyTiger
Copy link

如题, 下面是生成的表结构, 无法高效一键检索

type Table struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields

ExampleData []*ExampleData `protobuf:"bytes,1,rep,name=ExampleData,proto3" json:"ExampleData,omitempty"` // table: ExampleData
ExtendData  []*ExtendData  `protobuf:"bytes,2,rep,name=ExtendData,proto3" json:"ExtendData,omitempty"`   // table: ExtendData
ExampleKV   []*ExampleKV   `protobuf:"bytes,3,rep,name=ExampleKV,proto3" json:"ExampleKV,omitempty"`     // table: ExampleKV

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant