I want to load 1 record that has 1.8MB of data from BigQuery query result to Java, currently I am using code like
@Autowired
BigQuery bigQuery;
QueryJobConfiguration queryJobConfiguration = QueryJobConfiguration.newBuilder(query)
.setDefaultDataset(bigQueryProperties.getDatasetName())
.setUseQueryCache(true)
.setNamedParameters(queryParametersMap)
.setJobTimeoutMs(jobTimeoutMs)
.build();
bigQuery.query(queryJobConfiguration)
I know this code is better to be used for a large number of lightweight records So I am interested if there is any better approach in case we have just 1 but a very big record