gpt4 book ai didi

bigtable - 如果所有值都被垃圾收集,是否会自动删除一行?

转载 作者:行者123 更新时间:2023-12-02 03:21:30 33 4
gpt4 key购买 nike

假设有一行包含列族和其中的列。该列族有一个 gc 策略,并且该列中的所有值都刚刚过期。

那么,该行会发生什么情况?该行会被垃圾收集器删除吗?或者,它仍然存在并且可以访问吗?

我检查了文档,但只发现 https://cloud.google.com/bigtable/docs/overview#empty-cells 对此有一些模糊的评论。

Empty cells in a Cloud Bigtable table do not take up any space. Each row is essentially a collection of key/value entries, where the key is a combination of the column family, column qualifier and timestamp. If a row does not include a value for a specific key, the key/value entry is simply not present.

就我而言,根据上述文本,集合将为空。那么,我的问题是空集合是否仍然存在。

理想情况下,我希望自动删除空行,以防止表中有太多空行。如果空行没有自动删除,除了编写一个程序来扫描和删除这些行之外,是否有任何方法可以自动删除该空行?

最佳答案

如果行键的所有单元格都被垃圾收集,则该行确实被删除。请注意garbage collection is asynchronous ,并且数据可能需要长达一周的时间才能完全删除。

关于bigtable - 如果所有值都被垃圾收集,是否会自动删除一行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54616872/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com