<tfoot id='rr1By'></tfoot>
<legend id='rr1By'><style id='rr1By'><dir id='rr1By'><q id='rr1By'></q></dir></style></legend>

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

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

          <bdo id='rr1By'></bdo><ul id='rr1By'></ul>
      2. DynamoDB 自动递增 ID &amp;服务器时间(iOS SDK)

        时间:2023-08-29

      3. <small id='D5DFL'></small><noframes id='D5DFL'>

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

                    <tbody id='D5DFL'></tbody>
                  <i id='D5DFL'><tr id='D5DFL'><dt id='D5DFL'><q id='D5DFL'><span id='D5DFL'><b id='D5DFL'><form id='D5DFL'><ins id='D5DFL'></ins><ul id='D5DFL'></ul><sub id='D5DFL'></sub></form><legend id='D5DFL'></legend><bdo id='D5DFL'><pre id='D5DFL'><center id='D5DFL'></center></pre></bdo></b><th id='D5DFL'></th></span></q></dt></tr></i><div id='D5DFL'><tfoot id='D5DFL'></tfoot><dl id='D5DFL'><fieldset id='D5DFL'></fieldset></dl></div>
                  本文介绍了DynamoDB 自动递增 ID &amp;服务器时间(iOS SDK)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  DynammoDB 中是否有将自动递增的 ID 作为主键存储在表中的选项?我还需要将服务器时间作为创建于"字段(例如,用户创建于)存储在表中.但我找不到任何方法从 DynamoDB 或任何其他 AWS 服务获取服务器时间.

                  Is there an option in DynammoDB to store auto incremented ID as primary key in tables? I also need to store the server time in tables as the "created at" fields (eg., user create at). But I don't find any way to get server time from DynamoDB or any other AWS services.

                  你们能帮帮我吗,

                  1. 在 DyanmoDB 表中使用自动递增的 ID
                  2. 将服务器时间存储在创建于"类似字段的表中.

                  谢谢.

                  推荐答案

                  其实DynamoDB的功能很少,而这正是它的主要优势.简单.

                  Actually, there are very few features in DynamoDB and this is precisely its main strength. Simplicity.

                  • 无法自动生成 ID 或 UUID.
                  • 无法自动生成日期

                  对于日期"问题,应该很容易在客户端生成.我可以建议您使用 ISO 8601 日期格式吗?它对程序员和计算机都很友好.

                  For the "date" problem, it should be easy to generate it on the client side. May I suggest you to use the ISO 8601 date format ? It's both programmer and computer friendly.

                  在大多数情况下,有一种比使用自动 ID 更好的方法.这通常是 SQL 或 MongoDB 世界中的一个坏习惯.例如,电子邮件或登录信息将为用户提供完美的 ID.但我知道在某些特定情况下 ID 可能有用.

                  Most of the time, there is a better way than using automatic IDs for Items. This is often a bad habit taken from the SQL or MongoDB world. For instance, an e-mail or a login will make a perfect ID for a user. But I know there are specific cases where IDs might be useful.

                  在这些情况下,您需要构建自己的系统.在这个 SO answer 和 这篇文章来自 DynamoDB-Mapper 文档,我解释了怎么做它.希望对你有帮助

                  In these cases, you need to build your own system. In this SO answer and this article from DynamoDB-Mapper documentation, I explain how to do it. I hope it helps

                  这篇关于DynamoDB 自动递增 ID &amp;服务器时间(iOS SDK)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用机器人框架脚本和 chromedriver 在 Android 设备中 下一篇:在非关键属性上查询 DynamoDB

                  相关文章

                  最新文章

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

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