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?
Best approach for you to identify a filed over which you can create different Custer's of data. Once you have identified different Cluster's based on identified filed (e.g. id, date, or etc) then try to load each cluster data individually. Provided each cluster data is less that maximum limit of (10K). You also need to make sure that each n numbers of cluster's data should be loaded simultaneously.