teradata delete会释放空间吗
发布日期:2021-07-29 11:13:41 浏览次数:2 分类:技术文章

本文共 1112 字,大约阅读时间需要 3 分钟。

系统在下列情况下会使用spool空间:• 在sessi没有结束时,每个用户查询的返回值。因此,为了存储查询的返回值,每个用户都必须有足够的spool空间。• 大表.•  volatile tables. These tables require more available spool space.对系统需要的spool空间的粗略估计:对于没有fallback,无compressi,且工作量适中的系统,spool空间应占系统MAXPERM的30%,或者占系统CURRENTPERM的40%。下列情况下需要更多的spool空间:• 高压缩比的数据需要更多的spool空间。-- 压缩可以降低current perm data storage但不是总会降低spool空间,因为spool表并不总是被压缩。• 批加载一次可以加载数百万条或更多的记录,因此在加载过程中需要spool空间来存放临时数据。• 高并发需要更大的spool空间。下列情况需要较少的spool空间:• Fallback会使用双倍的currentperm来存储数据,但不需要双倍的spool空间。因为只有主拷贝会使用spool空间。• 适时加载,如运用TPump,一次只加载少量的数据,不需要很多的spool空间。• 好的调优策略可以运用更少的及spool空间。Spool空间分类:• Volatile Spool下列情况下Volatile Spool被释放:1、Transacti completes (unless the table was created with ON  PRESERVE )2、Table is dropped manually during the session3、Session ends4、 Database resets• Intermediate Spool1、当spool结果不再需要时,Intermediate Spool空间被释放。2、可以通过查看执行计划来判断Intermediate Spool空间被释放的时机。3、intermediate spool做flush操作后的第一步处理描述为“Last Use”• Output SpoolOutput results are either:1、Final s returned in the answer set for a query2、s updated within, inserted into, or deleted from a base tablePermanent, temporary, 及spool数据块不能在相同的cylinder中共存

转载地址:https://blog.csdn.net/thy822/article/details/49451669 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:The new Summary Collect Statistics feature starting with Teradata Release 14
下一篇:teradata collect statistics

发表评论

最新留言

感谢大佬
[***.8.128.20]2024年04月12日 07时32分55秒