【发布时间】:2023-03-16 09:37:01
【问题描述】:
我正在使用这个在 Amazon Redshift 中编写 python pandas 数据框 -
df.to_sql('table_name', redshiftEngine, index = False, if_exists = 'replace' )
虽然我的数据框只有几千行和 50-100 列,但写一张表需要 15-20 分钟。我想知道这是否是 redshift 的正常表现?有什么办法可以优化这个过程,加快写表速度?
【问题讨论】:
标签: python python-3.x pandas dataframe amazon-redshift