久久久久久久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. 如何確定是否確實(shí)刪除了 DynamoDB 項(xiàng)目?

      How to determine if a DynamoDB item was indeed deleted?(如何確定是否確實(shí)刪除了 DynamoDB 項(xiàng)目?)
      <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. 本文介紹了如何確定是否確實(shí)刪除了 DynamoDB 項(xiàng)目?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

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

                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.

                確定該項(xiàng)目是否確實(shí)存在和刪除的唯一方法是請求項(xiàng)目的屬性:

                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 操作實(shí)際上已經(jīng)刪除了一個項(xiàng)目,或者沒有.

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

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

                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)于如何確定是否確實(shí)刪除了 DynamoDB 項(xiàng)目?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)建一個隨機(jī)打亂數(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>

                        • 主站蜘蛛池模板: 成年人在线观看 | 欧美精品三区 | 6996成人影院网在线播放 | www.天堂av.com | 精品国产精品一区二区夜夜嗨 | 色综合久久久久 | 国产精品不卡 | www日韩 | 欧美成人一区二区三区 | 欧美久久久久久久久中文字幕 | 97色在线观看免费视频 | 一级片网址 | 国内久久 | 亚洲欧洲视频 | 男女免费观看在线爽爽爽视频 | 国产精品久久久久久婷婷天堂 | 久久久久亚洲精品 | chengrenzaixian| 国产一级片在线观看视频 | 国产在线观看网站 | 精品久久影院 | 欧美精品欧美精品系列 | 亚洲精品一区二区三区在线 | 国产精品一区二区三区四区 | 国产在线视频一区 | 精品视频国产 | 精品中文字幕在线 | 亚洲成av | 久久综合av | 久久精品 | 国产高清免费视频 | 欧美日韩国产在线观看 | 精品一区二区久久 | 黑人久久 | 天天碰夜夜操 | 欧美精品综合在线 | 亚洲激精日韩激精欧美精品 | 中文字幕国产精品 | 国产电影一区二区三区爱妃记 | 日韩免费高清视频 | 黄色福利|