使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
时间戳中序列号的垃圾回收
您为单元的时间戳属性分配序列号(而不是分配日期和时间)的原因可能与垃圾回收无关。本页面介绍了针对具有此类人工时间戳的数据的 Bigtable 垃圾回收政策。
在查看本页面之前,您应该参阅垃圾回收概览,包括实际和人工时间戳的说明。
版本数
如果时间戳为序列号,则垃圾回收政策应基于版本数。这意味着需要指定要保留的单元数。如果您使用序列号而不是实际时间戳,则基于存在时间的垃圾回收政策是不安全的,这是因为基于存在时间的政策会根据时间戳移除数据。
将序列号存储在时间戳中的优点
将序列号存储在时间戳中的缺点
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-03-19。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]