blob: fd8bf0db6d8f6b93647cdebc537f4243cb8c861e [file] [log] [blame]
// Copyright 2018 The LUCI Authors.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
// Package bq is a library for working with BigQuery.
// Limits
// Please see BigQuery docs:
// for the most
// updated limits for streaming inserts. It is expected that the client is
// responsible for ensuring their usage will not exceed these limits through
// bq usage. A note on maximum rows per request: Put() batches rows per request,
// ensuring that no more than 10,000 rows are sent per request, and allowing for
// custom batch size. BigQuery recommends using 500 as a practical limit (so we
// use this as a default), and experimenting with your specific schema and data
// sizes to determine the batch size with the ideal balance of throughput and
// latency for your use case.
// Authentication
// Authentication for the Cloud projects happens
// during client creation:
// What form this takes depends on the application.
// Monitoring
// You can use tsmon ( to
// track upload latency and errors.
// If Uploader.UploadsMetricName field is not zero, Uploader will
// create a counter metric to track successes and failures.
package bq