typedb icon indicating copy to clipboard operation
typedb copied to clipboard

Timeout when querying with inference

Open Teimurazi-Toloraia opened this issue 2 years ago • 0 comments

Description

When I make a query with inference

Environment

  1. OS (where TypeDB server runs): Windows 11
  2. TypeDB version (and platform): I downloaded from https://repo.vaticle.com/#browse/browse:artifact-snapshot:vaticle_typedb%2F07b9dfe04c786888a68f70b6f46dfdad1c9bb2e5%2Ftypedb-server-windows-07b9dfe04c786888a68f70b6f46dfdad1c9bb2e5.zip%3E
  3. TypeDB client: rust

Reproducible Steps

Steps to create the smallest reproducible scenario: https://github.com/Teimurazi-Toloraia/typedb-bug here I have data.tql, query.tql and schema.tql I make a query with inference: https://github.com/Teimurazi-Toloraia/tourists-visit-cities/blob/ccf6925d2082902716e79a57e571a627b2f9372c/visitations/src/main.rs#L264

You can also get the timeout by running this code if you uncomment the bigger data, lines: 117, 118, 150, 151, 181, 182

Expected Output

The function should return how many friends that person met. For example, when firstname = "Giorgi" and lastname = "Tsintsadze" it should return 30

Actual Output

timeout, and stopping after 300 seconds

Additional information

It works perfectly fine when I do not have inference, or the data is super small (only 12 people).

Teimurazi-Toloraia avatar Jul 20 '23 08:07 Teimurazi-Toloraia