You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a query that prints ~3k results that fetches a single entity (with each entity having 5-10 attributes). I want to test out how much time the query takes to run. So I want to do something like this to estimate roughly how long it would take to retrieve and render the results. I'm using the time that studio shows as a lower limit on how long a query would take to run (as I have additional processing overhead in the API layer). I try to do this:
match ... $x isa entity...;
fetch $x: attribute; count;
But count doesn't seem to supported with fetch. So I do this:
1
match ... $x isa entity...;
fetch $x: attribute;
But Studio doesn't print all the results. So to get an accurate representation of the query response time, I have to do this first:
2
match ... $x isa entity...;
$x has unique-id $y;
get $y; count;
and then use that count to run the fetch query to output all the results.
3
match ... $x isa entity...;
fetch $x: attribute; limit <count from 2>;
I want to run 3 (without having to specify a limit) instead of modifying 2 (to fetch all the attributes individually) as I have around 5-10 attributes for each entity and it's easier to fetch all the attributes through a fetch as opposed to a get query. I want to do this to get a rough estimate of how much time it takes to run a query with all the attributes fetched.
Environment
TypeDB distribution: Core
TypeDB version: 2.26.0
Environment: Mac
Studio version: 2.26.0
Other details:
Reproducible Steps
Set up
Run this:
match ... $x isa entity...;
fetch $x: attribute;
Unexpected result
Doesn't print all the results if the number of expected responses is too large.
Expected result
Should print all the responses instead of truncating.
The text was updated successfully, but these errors were encountered:
Description
I have a query that prints ~3k results that fetches a single entity (with each entity having 5-10 attributes). I want to test out how much time the query takes to run. So I want to do something like this to estimate roughly how long it would take to retrieve and render the results. I'm using the time that studio shows as a lower limit on how long a query would take to run (as I have additional processing overhead in the API layer). I try to do this:
But count doesn't seem to supported with fetch. So I do this:
1
But Studio doesn't print all the results. So to get an accurate representation of the
query response time
, I have to do this first:2
and then use that count to run the fetch query to output all the results.
3
I want to run
3
(without having to specify a limit) instead of modifying2
(to fetch all the attributes individually) as I have around 5-10 attributes for each entity and it's easier to fetch all the attributes through afetch
as opposed to aget
query. I want to do this to get a rough estimate of how much time it takes to run a query with all the attributes fetched.Environment
Reproducible Steps
Run this:
Doesn't print all the results if the number of expected responses is too large.
Expected result
Should print all the responses instead of truncating.
The text was updated successfully, but these errors were encountered: