Skip to content

Commit eb5a229

Browse files
authored
update URLs to download data from dgraph-benchmarks repo (#9404)
This maybe a temporary solution. We need to figure out something more permanent that uses authenticated requests to download data files.
1 parent e648e77 commit eb5a229

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

t/t.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -881,14 +881,14 @@ func isVectorPackage(pkg string) bool {
881881
}
882882

883883
var datafiles = map[string]string{
884-
"1million-noindex.schema": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/1million-noindex.schema?raw=true",
885-
"1million.schema": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/1million.schema?raw=true",
886-
"1million.rdf.gz": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/1million.rdf.gz?raw=true",
887-
"21million.schema": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/21million.schema?raw=true",
888-
"21million.rdf.gz": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/21million.rdf.gz?raw=true",
884+
"1million-noindex.schema": "https://raw.githubusercontent.com/hypermodeinc/dgraph-benchmarks/refs/heads/main/data/1million-noindex.schema",
885+
"1million.schema": "https://raw.githubusercontent.com/hypermodeinc/dgraph-benchmarks/refs/heads/main/data/1million.schema",
886+
"1million.rdf.gz": "https://media.githubusercontent.com/media/hypermodeinc/dgraph-benchmarks/refs/heads/main/data/1million.rdf.gz",
887+
"21million.schema": "https://raw.githubusercontent.com/hypermodeinc/dgraph-benchmarks/refs/heads/main/data/21million.schema",
888+
"21million.rdf.gz": "https://media.githubusercontent.com/media/hypermodeinc/dgraph-benchmarks/refs/heads/main/data/21million.rdf.gz",
889889
}
890890

891-
var baseUrl = "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/ldbc/sf0.3/ldbc_rdf_0.3/"
891+
var baseUrl = "https://media.githubusercontent.com/media/hypermodeinc/dgraph-benchmarks/refs/heads/main/ldbc/sf0.3/ldbc_rdf_0.3/"
892892
var suffix = "?raw=true"
893893

894894
var rdfFileNames = [...]string{
@@ -944,8 +944,7 @@ func downloadLDBCFiles() {
944944
}
945945

946946
for _, name := range rdfFileNames {
947-
filepath := baseUrl + name + suffix
948-
ldbcDataFiles[name] = filepath
947+
ldbcDataFiles[name] = baseUrl + name + suffix
949948
}
950949

951950
start := time.Now()

0 commit comments

Comments
 (0)