Skip to main content
 首页 » 编程设计

python之Bigtable 批量插入

2025年01月19日16telwanggs

我可以使用 python 在 Bigtable 中执行批量插入吗?

我正在使用以下方法插入,但速度非常慢。我有数百万行要插入。

def row(self, row_key, filter_=None, append=False): 
    """Factory to create a row associated with this table. 

引用文档:https://googlecloudplatform.github.io/google-cloud-python/latest/bigtable/table.html

谢谢。

请您参考如下方法:

我认为您正在寻找 mutate_rows

Cloud Bigtable writes有更多细节,还有一个 Python example .