Content-Length: 267299 | pFad | https://www.github.com/googleapis/python-bigquery/commit/fce76b3776472b1da798df862a3405e659e35bab

2E5 docs(bigquery): add client thread-safety documentation (#132) · googleapis/python-bigquery@fce76b3 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://www.github.com/googleapis/python-bigquery/commit/fce76b3776472b1da798df862a3405e659e35bab

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy