arykalin
01/24/2024, 8:15 AMgo
storeCfg := datastore.DefaultDatastoreConfig()
storeCfg.Engine = datastore.PostgresEngine
storeCfg.URI = "postgres://postgres:postgres@localhost:5432/spicedb_test?sslmode=disable"
ds, err := datastore.NewDatastore(ctx,
storeCfg.ToOption(),
datastore.WithRequestHedgingEnabled(false),
)
The puzzling part is that p.Cli.ReadRelationships
only seems to work after a 2 to 5-second delay post-creation. Is this normal for SpiceDB, especially with PostgreSQL as a datastore, or am I doing something that's causing this delay?
Would love to get your thoughts or any pointers on this.
Thanks a bunch!