What is use of compress in terdata?Explain?
Answers were Sorted based on User's Feedback
Answer / sat!sh
Compression is used to Minimize the table size, for example
when the table size is increasing anonymously We can use
Compression to reduce the size of the table
Conditions:
1.Compression can be declared at the time of table creation
2.We can compress up to 256 column values(not columns)
3.We can't compress variable length fields
(vartext,varchar..)
Explanation for 2 condition:
create table tab1
(
:
:
Order_type char(25) compress ('air','sea','road')
:
)
in the above example order type have 3 fields, one should
be selected by the user, so one of the field will repeat
for every order, like these column values we can use
compress statement because these are repeating for entire
table, like these column values TD supports 256 col
generally NCR people will provides ready made scripts for
these type of compressions
----
Hi friends got any best ans share with us :)
Is This Answer Correct ? | 18 Yes | 3 No |
Answer / veni botcha
Hey Buddy!!
U r mistaken we can only compress 255 distinct values per
column plus nulls(by default).
Compressed values are stored in table header.
also compression cannot be done on primary index columns
and alter table does not support compression on existing
columns.
Compression works with multi-set tables.
Is This Answer Correct ? | 15 Yes | 1 No |
Answer / yuvaevergreen
Use of compress is multivalue compression saves space and
adds speed.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / ismail
Both of ur answers about the number of columns values that
can be compressed (255 distinct values/single value) are
correct. Versions upto V2R4 allows only single value
compression. Since V2R5 multi-value compression is possible.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / vinay
@Veni ...FYI Compression works with SET tables as well.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / tdguy
Highly common values are used for compression. More space
can be saved. The value is stored in table header.
Datatypes like INTERVAL, TIME, TIMESTAMP, VARBYTE and
VARCHAR cannot be compressed.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / yuvaevergreen
Compression helps in enhanced storage, improved response
time, CPU savings.
Select Currentperm from DBC.tablesize where
tablename='tablename'; Using the permsize, we can know about
the percentage space saved.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / surendra
Now, 13.10 is equiped with 510 characters wide compression
including more datatypes. The ALC which helps to use the UDF
is adding more power to compression. I feel happy that the
MVC and ALC can work together which also reduce the further
effort while working on a compressed data column.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rahul
I heart about in Teradata 14 ,NCR allows compress on varchar columns as well ,upto 510 character please correct me if i m wrong.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain teradata architecture in detail with a diagram.
Hi frnds...can any one help me regarding this que.. We have column in a table name it as C1 WHICH CONTAIN ALPHANUMERIC AND NUMERIC VALUES. C1 2A 2B 2V 2H 1 2 3 4 5 i want to retrive numeric values like 1,2,3,4,5 How we can get Plz let me know.Thanks in advance
If Fast Load Script fails and only the error tables are made available to you, then how will you restart?
Explain the new features of teradata?
what is single value and Multivalue ?
what is the advantages of other etl tool than teradata utilities or vice versa ?(datastage/informatica)
what is sysdba and sysdbc ? which has high priority ?
What are the differences between TerdataV2R5 and V12 Versions please??
How to handle nulls in Teradata??? How many columns can be there in a table??? How to find average sal with out using avg function????
why varchar takes 2 extra bytes?
What is the function of parser component in teradata?
What is the use of having index's on table?