Skip to content
- Capacity planning. MAXPERM = sum of following
- Raw Data (RD after compression)
- Raw Data Extension (RDE: summary tables, indexes) RD*0.25
- FALLBACK
- Working space overhead: Spool, temp tables, utility work-tables, disk fragmentation (RD+RDE)*0.40, uncompressed
- A cylinder can have only one of the space type (Perm/Spool/Temp)
- Datablock can have rows from only one table
- Cylinder can have rows from multiple tables.
- Adavanced Format Drives have native sector size of 4K. DB Size automatically adjusted to be even multiples of 4KB
- On cylinder full condition, following alternatives are considered
- Cylinder migrate to adjacent cylinder: max of 10 blocks are moved
- Cylinder migrate to a new: Max of 10 blocks are moved
- During cylinder migration,
- they are defragmented in background if they have >= 25% free space
- if number of free cylinders fall below 10, mini cylpack to free up a cylinder
- mini cylpack never happens on spool space
- AutoCylPack runs in background when system is idle. Merge up to 8 small blocks (<MergeBlockRatio) within a single cylinder during FTS update scans (no empty INS-SEL)
CREATE TABLE options [DEFAULT|NO] MERGEBLOCKRATIO [= <int> (%)]
- freespace applies to cylinder:
- specified at CREATE TABLE, DBSControl FREESPACEPERCENT, FERRET PACKDISK
- honored during: FLOAD, MLOAD (empty), INS-SEL (empty), CREATE SI
- ignored during: mini cylpack, all other data load ops except above
- online reconfig: Allows adding new nodes while system is up
- Uses ReconfigRedistOrderTbl and ReconfigDeleteOrderTbl system tables
- ROT Larger (1MB) block size:
- Use 512KB on appliance, 256K on EDW, 1MB for spool
- For OLTP applications, do not use large block size
- Rows in big blocks are aligned on 4 byte v/s 2 byte => increase in tablesize
- Intermediate spool DB and row size can be up to 1MB; but final spool size is limited to 64K
- Big blocks require more memory to hold block. As a consequence, when doing multicontext operations such as sliding window merge join or columnar inserts may be slower.
- DBC tables, JI and HI can’t specify DB size but use the default value
- Compressions: MVC, Algorithmic (ALC) and Block (BLC)
- ALC on MVC is allowed. ALC will compress only non-MVC-compressed values
- No ALC: Volatile. Yes ALC: CHAR, VARCHAR, BYTE
- measured in %: (uncompressed - compressed) / uncompressed * 100
- measured in ratio: uncompressed / compressed
- BLC, unlike MVC and ALC, decompresses in spool and backups.
- Base TVS (included in all versions of Teradata, paid or not), has two basic functions:
- Pool all cylinders within the clique and allocate to AMPs (instead of entire PDISK)
- Due to this, a single disk failure can affect multiple AMPs. Hence, Intelliflex systems require
FALLBACK
- Count accesses to the cylinders to understand the usage patterns (temperature)
- TVS
- Can operate in Traditional (compatibility) or Intelligent Placement modes
- Allocates 20% of fast storage to WAL and spool. These cannot cool off
- TVS designated VERY HOT data is kept in TIM by PDE
- VH Cache data is brought back into memory after restart
- Storage can be plugged into IFX in units that are not multiples of the number of AMPs (eg 20 AMPs on a node does not require 20 storage units to be added). TVS carves that up and hands out the cylinders to the AMPs. This makes storage addition much more flexible.
- TIM. The usage pattern information is key to implementing TIM. Without it we do not know what to put/keep in TIM memory.
- TBBLC. Temperature based compression depends on the usage information as well. In this case we care about the low usage data versus TIM wanting to identify the high usage data.
- Two types: Manual or Auto (Temp based)
- DDL option BLOCKCOMPRESSION {MANUAL|AUTOTEMP|NEVER|DEFAULT} only applies to permanent (except PJ) tables. Non-perm tables use DBSControl settings
- If Default or unspecified uses DBSControl DefaultTableMode
- Altering table-level attr doesn’t cause immediate compression change
- TD14+: Manual mode independent sub-table compression: primary, fallback, clob
- fallback will include both data and index
- does not affect spool, mload work, or inex work since they don’t have fallback
- QB
- Manual:
BLOCKCOMPRESSION {YES/ALL|NO/NONE|FALLBACK|ONLYCLOBS|WITHOUTCLOBS|FALLBACKANDCLOBS}
- AutoTemp:
TVSTEMPERATURE_{PRIMARY,PRIMARYCLOBS,FALLBACK,FALLBACKCLOBS}={HOT/WARM/COLD}
- QB overrides DBSControl Compress* settings, unless
- unless they are set to NEVER
- ARC must (de)compress, but remembers compression status. Can override with QB
- Query bands
- TVSTemperature force TVS Temperature
- If all rows a deleted from table, BLC status is forgotten
- data remains compressed in FSG Cache. Each request must perform decompression
- can be applied independently to primary, fallback and CLOB data. Spool is off by default
- reduces physical IO, but not logical IO
- TBBLC continues until compressed DB reach TempBLCThresh
- p = ( t / comp) / ( (1-t) + t / comp) (p: amit of compressed data, t: threshod, comp: compression factor achieved
- TD13.10: Only primary data including fallback compressed. Indexes are not compressed
- TD14: Primary SI data is not compressed, but fallback can be
- ROT: Uses 9x CPU for read and 25x CPU for write (Ballinger TD13.10 BLC)
- ROT: Use Max DB size (255 sectors) because compression is at DB level
- ROT: Use WD throttle+CPU limit for queries that use BLC tables
- BLC+CPU limit => higher elapsed time => AWT exhaustion if no throttle
- Especially needed on 5xxx platforms. Not much a concern on appliances
- TBBLC (Temperature Based BLC)
- QB TVSTemperature and FERRET FORCE override default initial temp
- Temp is maintained at Cylinder level
- ROT: Do not combine ALC and BLC due to higher overhead