I am trying to insert 38000 records in BigQuery using Streaming insertAll
method.
But first I am getting error as:
Insert operation not performed
com.google.cloud.bigquery.BigQueryException: Read timed out
Then after increasing the timeout time as:
RetrySettings retrySetting = RetrySettings.newBuilder().setTotalTimeout(Duration.ofMinutes(90))
.build();
BigQueryOptions bigqueryOptions = BigQueryOptions.newBuilder()
.setRetrySettings(retrySetting).build();
BigQuery bigquery = bigqueryOptions.getDefaultInstance().getService();
... I'm getting another error:
Insert operation not performed
com.google.cloud.bigquery.BigQueryException: Connection reset
Please help, how can I insert all records in BigQuery?