• <small id='2PkEk'></small><noframes id='2PkEk'>

    <tfoot id='2PkEk'></tfoot>

      1. <i id='2PkEk'><tr id='2PkEk'><dt id='2PkEk'><q id='2PkEk'><span id='2PkEk'><b id='2PkEk'><form id='2PkEk'><ins id='2PkEk'></ins><ul id='2PkEk'></ul><sub id='2PkEk'></sub></form><legend id='2PkEk'></legend><bdo id='2PkEk'><pre id='2PkEk'><center id='2PkEk'></center></pre></bdo></b><th id='2PkEk'></th></span></q></dt></tr></i><div id='2PkEk'><tfoot id='2PkEk'></tfoot><dl id='2PkEk'><fieldset id='2PkEk'></fieldset></dl></div>
        <legend id='2PkEk'><style id='2PkEk'><dir id='2PkEk'><q id='2PkEk'></q></dir></style></legend>
          <bdo id='2PkEk'></bdo><ul id='2PkEk'></ul>

        boto 库是线程安全的吗?

        Is boto library thread-safe?(boto 库是线程安全的吗?)

        <legend id='x2yDI'><style id='x2yDI'><dir id='x2yDI'><q id='x2yDI'></q></dir></style></legend>
        <i id='x2yDI'><tr id='x2yDI'><dt id='x2yDI'><q id='x2yDI'><span id='x2yDI'><b id='x2yDI'><form id='x2yDI'><ins id='x2yDI'></ins><ul id='x2yDI'></ul><sub id='x2yDI'></sub></form><legend id='x2yDI'></legend><bdo id='x2yDI'><pre id='x2yDI'><center id='x2yDI'></center></pre></bdo></b><th id='x2yDI'></th></span></q></dt></tr></i><div id='x2yDI'><tfoot id='x2yDI'></tfoot><dl id='x2yDI'><fieldset id='x2yDI'></fieldset></dl></div>
          <tbody id='x2yDI'></tbody>
          • <bdo id='x2yDI'></bdo><ul id='x2yDI'></ul>

              1. <small id='x2yDI'></small><noframes id='x2yDI'>

              2. <tfoot id='x2yDI'></tfoot>

                  本文介绍了boto 库是线程安全的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  特别是我对使用来自多个线程(放置、获取、更新等)的 DynamoDB 表对象感兴趣.如果这不安全,那么是否有一种安全的方法(即每个线程可能有一个表对象)?任何其他有关在 boto 中使用线程的问题或技巧表示赞赏.

                  Specifically I'm interested in using a DynamoDB table object from multiple threads (puts, gets, updates, etc). If that's not safe, then is there a safe way (i.e., maybe one table object per thread)? Any other gotchas or tips about working with threads in boto appreciated.

                  推荐答案

                  boto 库使用的 httplib 从来没有,据我所知仍然不是线程安全的.解决方法是确保每个线程都创建自己的与 DynamoDB 的连接,并且您应该很好.

                  The boto library uses httplib which has never been, and to my knowledge still is not, thread-safe. The workaround is to make sure each thread creates its own connection to DynamoDB and you should be good.

                  这篇关于boto 库是线程安全的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  env: python: No such file or directory(env: python: 没有这样的文件或目录)
                  How to evaluate environment variables into a string in Python?(如何在 Python 中将环境变量评估为字符串?)
                  Python - temporarily modify the current process#39;s environment(Python - 临时修改当前进程的环境)
                  Change current process environment#39;s LD_LIBRARY_PATH(更改当前进程环境的 LD_LIBRARY_PATH)
                  Reading and writing environment variables in Python?(在 Python 中读写环境变量?)
                  When to use sys.path.append and when modifying %PYTHONPATH% is enough(何时使用 sys.path.append 以及何时修改 %PYTHONPATH% 就足够了)
                  <i id='lul7L'><tr id='lul7L'><dt id='lul7L'><q id='lul7L'><span id='lul7L'><b id='lul7L'><form id='lul7L'><ins id='lul7L'></ins><ul id='lul7L'></ul><sub id='lul7L'></sub></form><legend id='lul7L'></legend><bdo id='lul7L'><pre id='lul7L'><center id='lul7L'></center></pre></bdo></b><th id='lul7L'></th></span></q></dt></tr></i><div id='lul7L'><tfoot id='lul7L'></tfoot><dl id='lul7L'><fieldset id='lul7L'></fieldset></dl></div>

                1. <tfoot id='lul7L'></tfoot>
                  • <legend id='lul7L'><style id='lul7L'><dir id='lul7L'><q id='lul7L'></q></dir></style></legend>

                  • <small id='lul7L'></small><noframes id='lul7L'>

                      <tbody id='lul7L'></tbody>
                        • <bdo id='lul7L'></bdo><ul id='lul7L'></ul>