久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

      <i id='GLJVg'><tr id='GLJVg'><dt id='GLJVg'><q id='GLJVg'><span id='GLJVg'><b id='GLJVg'><form id='GLJVg'><ins id='GLJVg'></ins><ul id='GLJVg'></ul><sub id='GLJVg'></sub></form><legend id='GLJVg'></legend><bdo id='GLJVg'><pre id='GLJVg'><center id='GLJVg'></center></pre></bdo></b><th id='GLJVg'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GLJVg'><tfoot id='GLJVg'></tfoot><dl id='GLJVg'><fieldset id='GLJVg'></fieldset></dl></div>
    1. 如何確定是否確實刪除了 DynamoDB 項目?

      How to determine if a DynamoDB item was indeed deleted?(如何確定是否確實刪除了 DynamoDB 項目?)
      <i id='bhD9d'><tr id='bhD9d'><dt id='bhD9d'><q id='bhD9d'><span id='bhD9d'><b id='bhD9d'><form id='bhD9d'><ins id='bhD9d'></ins><ul id='bhD9d'></ul><sub id='bhD9d'></sub></form><legend id='bhD9d'></legend><bdo id='bhD9d'><pre id='bhD9d'><center id='bhD9d'></center></pre></bdo></b><th id='bhD9d'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bhD9d'><tfoot id='bhD9d'></tfoot><dl id='bhD9d'><fieldset id='bhD9d'></fieldset></dl></div>

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

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

            1. <tfoot id='bhD9d'></tfoot>

                  <tbody id='bhD9d'></tbody>
                <legend id='bhD9d'><style id='bhD9d'><dir id='bhD9d'><q id='bhD9d'></q></dir></style></legend>
              1. 本文介紹了如何確定是否確實刪除了 DynamoDB 項目?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                DynamoDB 提供了用于刪除項目的 API.在返回的 DeleteItemOutcomeDeleteItemResult 中沒有字段或方法來確定是否找到了 key 并且該項目確實被刪除了.

                DynamoDB provides an API for deleting items. In the returned DeleteItemOutcome and DeleteItemResult there is no field or method to determine if the key was found and the item was indeed deleted.

                確定該項目是否確實存在和刪除的唯一方法是請求項目的屬性:

                The only way to find out if the item was indeed present and deleted, is to request the items' attributes:

                新的 DeleteItemSpec().withPrimaryKey("key","1").withReturnValues(ReturnValue.ALL_OLD))

                但是,這會消耗額外的讀取容量.有沒有更有效的方法來檢查刪除結(jié)果 - 找到和刪除的鍵/無效鍵?

                This, however, consumes extra read capacity. Is there a more efficient way to check the delete result - key found and deleted / invalid key?

                推薦答案

                DeleteItemResult#getAttributes()方法 來確定一個 DeleteItem 操作實際上已經(jīng)刪除了一個項目,或者沒有.

                DeleteItemResult#getAttributes() is the way to determine if a DeleteItem operation has actually deleted an item, or not.

                如果您指定 ReturnValue.ALL_OLD 并且項目被刪除,則返回項目屬性映射,否則返回空映射.這是確定操作是否成功的唯一方法.API 不會返回其他確認信息.

                If you specify ReturnValue.ALL_OLD and the item was deleted, a map of item attributes is returned, otherwise and empty map is returned. This is the only way to know for sure if the operation was successful. No other confirmation is returned by the API.

                請記住,DeleteItem 操作每次至少會消耗 1 個寫入容量單位.如果刪除的item大于1KB,消耗的容量會大于1.

                Keep in mind that a DeleteItem operation will consume a minimum of 1 write capacity unit every time. If the deleted item is larger than 1KB, consumed capacity will be more than 1.

                供參考: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/CapacityUnitCalculations.html#ItemSizeCalculations.Writes

                這篇關(guān)于如何確定是否確實刪除了 DynamoDB 項目?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關(guān)系嗎?)
                How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個隨機打亂數(shù)字的 int 數(shù)組)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲為 int?)
                <i id='YqiVK'><tr id='YqiVK'><dt id='YqiVK'><q id='YqiVK'><span id='YqiVK'><b id='YqiVK'><form id='YqiVK'><ins id='YqiVK'></ins><ul id='YqiVK'></ul><sub id='YqiVK'></sub></form><legend id='YqiVK'></legend><bdo id='YqiVK'><pre id='YqiVK'><center id='YqiVK'></center></pre></bdo></b><th id='YqiVK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YqiVK'><tfoot id='YqiVK'></tfoot><dl id='YqiVK'><fieldset id='YqiVK'></fieldset></dl></div>
                  • <small id='YqiVK'></small><noframes id='YqiVK'>

                        <tbody id='YqiVK'></tbody>
                          <bdo id='YqiVK'></bdo><ul id='YqiVK'></ul>

                        • <tfoot id='YqiVK'></tfoot><legend id='YqiVK'><style id='YqiVK'><dir id='YqiVK'><q id='YqiVK'></q></dir></style></legend>

                        • 主站蜘蛛池模板: 一区二区三区播放 | 亚洲精品视频观看 | 日韩二区 | 久久久久国产 | 黄色三级免费网站 | 99精品欧美一区二区三区综合在线 | 在线视频 亚洲 | 日韩成人在线观看 | 亚洲视频在线观看一区二区三区 | 中文字幕在线观看 | 日韩免费一区 | 亚洲高清视频一区二区 | 国产一区二区精品在线观看 | 欧美一二三 | 亚洲一区二区三区在线播放 | 日本一二区视频 | 久久人人网| 毛片一级片 | 看片91| 午夜视频在线播放 | 一级片av| 国产一级大片 | 高清久久久| 天堂亚洲网 | 久久亚洲国产精品 | 亚洲色图综合网 | 久久精品国产久精国产 | 亚洲精品福利在线 | 久久久亚洲| 无码一区二区三区视频 | 国产一级大片 | 国久久 | 在线播放中文字幕 | v片网站 | 久久精品一区二区三区四区 | 嫩草91在线| 国产福利91精品一区二区三区 | www天天操| 免费黄色片在线观看 | 日韩毛片免费看 | 91看片网|