Skip to content

Commit fce76b3

Browse files
docs(bigquery): add client thread-safety documentation (#132)
* docs(bigquery): add client thread-safety documentation * docs(bigquery): nit * docs(bigquery): nit
1 parent 445ae08 commit fce76b3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
.. include:: README.rst
22

3+
.. note::
4+
5+
Because the BigQuery client uses the third-party :mod:`requests` library
6+
by default and the BigQuery-Storage client uses :mod:`grpcio` library,
7+
both are safe to share instances across threads. In multiprocessing
8+
scenarios, the best practice is to create client instances *after*
9+
:class:`multiprocessing.Pool` or :class:`multiprocessing.Process` invokes
10+
:func:`os.fork`.
11+
312
More Examples
413
~~~~~~~~~~~~~
514

0 commit comments

Comments
 (0)