• <tfoot id='0ub1g'></tfoot>
    <legend id='0ub1g'><style id='0ub1g'><dir id='0ub1g'><q id='0ub1g'></q></dir></style></legend>
      • <bdo id='0ub1g'></bdo><ul id='0ub1g'></ul>

        <small id='0ub1g'></small><noframes id='0ub1g'>

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

        如何在 DynamoDB 中立即获取表的行数?

        时间:2023-07-05

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

          <small id='Fge4X'></small><noframes id='Fge4X'>

            • <bdo id='Fge4X'></bdo><ul id='Fge4X'></ul>

              <legend id='Fge4X'><style id='Fge4X'><dir id='Fge4X'><q id='Fge4X'></q></dir></style></legend>

                  本文介绍了如何在 DynamoDB 中立即获取表的行数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 boto.dynamodb2,看来我可以使用 Table.query_count().但是,当没有应用查询过滤器时,它会引发异常.

                  I'm using boto.dynamodb2, and it seems I can use Table.query_count(). However it had raised an exception when no query filter is applied.

                  我能做些什么来解决这个问题?

                  What can I do to fix this?

                  顺便说一句,boto.dynamodb2.table.Table.Query 可以使用的过滤器文档在哪里?我试图搜索它,但什么也没找到.

                  BTW, where is the document of filters that boto.dynamodb2.table.Table.Query can use? I tried searching for it but found nothing.

                  推荐答案

                  有两种方法可以在 DynamoDB 中获取行数.

                  There are two ways you can get a row count in DynamoDB.

                  第一个是执行全表扫描并在执行过程中计算行数.对于任何合理大小的表,这通常是一个可怕的想法,因为它会消耗您预置的所有读取吞吐量.

                  The first is performing a full table scan and counting the rows as you go. For a table of any reasonable size this is generally a horrible idea as it will consume all of your provisioned read throughput.

                  另一种方法是使用 Describe Table 请求来估计表中的行数.这将立即返回,但只会根据 AWS 文档定期更新.

                  The other way is to use the Describe Table request to get an estimate of the number of rows in the table. This will return instantly, but will only be updated periodically per the AWS documentation.

                  指定索引中的项目数.DynamoDB 更新了这个值大约每六个小时.最近的变化可能不是反映在这个值中.

                  The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

                  这篇关于如何在 DynamoDB 中立即获取表的行数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何将地图插入 DynamoDB 表? 下一篇:boto 库是线程安全的吗?

                  相关文章

                  <small id='vvQRZ'></small><noframes id='vvQRZ'>

                    <bdo id='vvQRZ'></bdo><ul id='vvQRZ'></ul>
                • <tfoot id='vvQRZ'></tfoot>
                    <legend id='vvQRZ'><style id='vvQRZ'><dir id='vvQRZ'><q id='vvQRZ'></q></dir></style></legend>

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