VimIy微民网,让世界倾听微民的声音! 设为首页 | 加入收藏 | 网站地图
当前位置:主页 > 大杂烩 >

【你们6级都毕业了】 Google App Engine - Update on Datastore Auto IDs

整理时间:2013-06-16 17:42 来源:www.vimiy.com 作者:编辑 点击:

【楼主】2013-06-15 11:31

» Google App Engine - Update on Datastore Auto IDs
    机翻的完全反人类.
    
    In the upcoming 1.8.1 release, the Datastore default auto ID policy in production will switch to scattered IDs to improve performance. This change will take effect for all versions of your app uploaded with the 1.8.1 SDK.
    
    Since 1.7.6 you could try out the new behavior in the development application server, where scattered auto IDs are the default. These IDs are large, well-distributed integers, but are guaranteed to be small enough to be completely represented as 64-bit floats so they can be stored as Javascript numbers or JSON. If you still need legacy ids for some entities (e.g. because you want smaller numbers for user-facing ids), we recommend you use the allocateIds() API, which will continue to behave as before. You can also override the default auto id policy by setting the new auto_id_policy option in your app.yaml/appengine-web.xml to legacy, but please note that this option will be deprecated in a future release and will eventually be removed.
    
    -- Chris Ramsdale, Google App Engine Product Manager
    
    2013 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
    
    You have received this mandatory email service announcement to update you about important changes to Google Cloud Platform.
    
网友评论2013-06-15 11:33


    机翻的完全反人类,在即将到来的1.8.1版本中,生产数据存储默认自动识别政策将切换到分散的ID,以提高性能。这种变化将生效上传您的应用程序的所有版本与1.8.1 SDK 1.7.6起,你可以尝试新的行为在开发应用程序服务器,零散的自动ID是默认的。这些ID都很大,以及分布式的整数,但保证是足够小,可以完全表示为64位浮点这样他们就可以存储为JavaScript号码或JSON。如果您仍然需要传统IDS的一些实体(如用户,因为你想更小的数字面临IDS),我们建议您使用allocateIds()API,这将继续表现为前。您也可以覆盖默认的自动识别政策由设置新的auto_id_policy的选择在app.yaml中/ AppEngine上web.xml中遗留,但请注意,此选项将在未来的版本中被弃用,最终将被删除。-克里斯Ramsdale,谷歌的App Engine产品经理2013谷歌公司1600剧场百汇,山景,CA 94043 您收到这封电子邮件服务公告通知您关于谷歌云计算平台的重要变化。
    
网友评论2013-06-15 11:40


    楼主这id是血海深仇啊
    发表回复

    
    
    

关于网站 | 网站声明 | 用户反馈 | 合作伙伴 | 联系我们
Copyright © 2012年2月8日 Power by DedeCms