perf(vector): Improve hnsw by sharding vectors #9453
Trunk Check
Checked 15 modified files
11 existing issues (use --show-existing to see them)
✖ 7 new lint issues
Details
To reproduce and test locally, run:
trunk check
For help resolving these issues, see our docs on running on PRs or debugging Trunk Check
Annotations
Check failure on line 66 in tok/partitioned_hnsw/partitioned_factory.go
github-actions / Trunk Check
golangci-lint2(staticcheck)
[new] S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...))
Check failure on line 808 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `proto.Unmarshal` is not checked
Check failure on line 1412 in posting/index.go
github-actions / Trunk Check
golangci-lint2(unused)
[new] const numCentroids is unused
Check failure on line 1612 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `MemLayerInstance.IterateDisk` is not checked
Check failure on line 1662 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `indexer.BuildInsert` is not checked
Check failure on line 1688 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `indexer.BuildInsert` is not checked
Check failure on line 1702 in posting/index.go
github-actions / Trunk Check
golangci-lint2(errcheck)
[new] Error return value of `x.ExponentialRetry` is not checked