Skip to content
Permalink
Browse files
docs(bigquery): add client thread-safety documentation (#132)
* docs(bigquery): add client thread-safety documentation

* docs(bigquery): nit

* docs(bigquery): nit
  • Loading branch information
HemangChothani committed Jun 15, 2020
1 parent 445ae08 commit fce76b3776472b1da798df862a3405e659e35bab
Showing with 9 additions and 0 deletions.
  1. +9 −0 docs/index.rst
@@ -1,5 +1,14 @@
.. include:: README.rst

.. note::

Because the BigQuery client uses the third-party :mod:`requests` library
by default and the BigQuery-Storage client uses :mod:`grpcio` library,
both are safe to share instances across threads. In multiprocessing
scenarios, the best practice is to create client instances *after*
:class:`multiprocessing.Pool` or :class:`multiprocessing.Process` invokes
:func:`os.fork`.

More Examples
~~~~~~~~~~~~~

0 comments on commit fce76b3

Please sign in to comment.