dolthub / dolthub/dolt

ddb.ResolveTag latency results in timeouts on DoltHub

Open
#8,755 0 comments 0 reactions 0 assignees View on GitHub
dolthub
Dominant language
Go
Stars
24.4k
Forks
873
Avg merge
1d 5h
Merged PRs (30d)
108

Description

[ddb.ResolveTag](https://github.com/dolthub/dolt/blob/main/go/libraries/doltcore/doltdb/doltdb.go#L580) is slow for DoltHub databases with a large number of tags.

Latency appears to come from:
```go
ds, err := ddb.db.GetDataset(ctx, tagRef.String())
if err != nil {
return nil, ErrTagNotFound
}
```

```go
dc, err := datas.LoadCommitAddr(ctx, vrw, commitAddr)
if err != nil {
return nil, err
}
```

```go
commit, err := NewCommit(ctx, vrw, ns, dc)
if err != nil {
return nil, err
}
```

each of which can have variable latency from 300-700ms.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.