Skip to content

Commit

Permalink
Add prefetch to Options (#112)
Browse files Browse the repository at this point in the history
## What is the goal of this PR?

On executing a Graql query, Grakn automatically streams the first batch of responses back to the client. But, for an `insert` query, they usually don't need those answers. To remedy this, we made `prefetch` a configurable per-query option.

## What are the changes implemented in this PR?

Add prefetch option
  • Loading branch information
Alex Walker authored Jan 25, 2021
1 parent 12e31ae commit c3b95a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions protobuf/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ message Options {
oneof batch_size_opt {
int32 batch_size = 3;
}
oneof prefetch_opt {
bool prefetch = 4;
}
oneof session_idle_timeout_opt {
int32 session_idle_timeout_millis = 4;
int32 session_idle_timeout_millis = 5;
}
oneof schema_lock_acquire_timeout_opt {
int32 schema_lock_acquire_timeout_millis = 5;
int32 schema_lock_acquire_timeout_millis = 6;
}
}

0 comments on commit c3b95a4

Please sign in to comment.