fdb.MustAPIVersion(630)
_ = fdb.NetworkOptions{}.SetExternalClientLibrary('/usr/lib64/libfdb_c.so')
_ = fdb.NetworkOptions{}.SetClientThreadsPerVersion(10)
for i :=0 ; i < client; i ++ {
go fdbBenchmark(db)
}
func getFdbConnection() fdb.Database{
db := fdb.MustOpenDatabase('/etc/foundationdb.conf')
return db
}
func fdbBenchmark() {
db := getFdbConnection()
...........
}
VERSION:6.3.22
QUESTIONS: I can’t create multi threads per process…every memory address of the db object is the same .go client how to create multi threads per process ?