Skip to content

Commit c3b95a4

Browse files
author
Alex Walker
authored
Add prefetch to Options (#112)
## 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
1 parent 12e31ae commit c3b95a4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

protobuf/options.proto

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ message Options {
3535
oneof batch_size_opt {
3636
int32 batch_size = 3;
3737
}
38+
oneof prefetch_opt {
39+
bool prefetch = 4;
40+
}
3841
oneof session_idle_timeout_opt {
39-
int32 session_idle_timeout_millis = 4;
42+
int32 session_idle_timeout_millis = 5;
4043
}
4144
oneof schema_lock_acquire_timeout_opt {
42-
int32 schema_lock_acquire_timeout_millis = 5;
45+
int32 schema_lock_acquire_timeout_millis = 6;
4346
}
4447
}

0 commit comments

Comments
 (0)