redshift drop or truncate table very very slow

后端 未结 4 1854
轻奢々
轻奢々 2021-01-30 03:50

When drop or truncate a not too big table(4M rows) in my redshift database, it take very very long(hours) to complete. Does anybody experience the same issue?

Thanks

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 04:50

    I've experienced the same problem. It turned out to be opened transaction ran from somewhere else.

    For example, if you have 2 shells open with redshift shell, you will not be able to drop a table from the first shell, that participate in an open transaction in the second shell.

    After I committed / rolled back in the second window, truncate worked perfectly.

    Hope it helped.

提交回复
热议问题