What are the disadvantages of using VARCHAR?

Answer Posted / s

1.Additional 2 byte length indicator is stored along with
the VARCHAR column.
2.It can potentialy affect the amount of logging when the
row with VARCHAR column is updated.
3. The placement of the VARCHAR column in a DB2 table has
performance impact. DB2 has to calculate the offset of the
the column that occurs after the VARCHAR each time the
column is accessed that increases the CPU consumption.
Atleast 5-15 instructions are executed per column.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the reason behind not using select * in embedded sql programs?

601


What are the bind parameters ibm db2?

622


How do I change the column size in db2?

587


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

624


What are the contents of dclgen?

652






What is blu acceleration in db2?

603


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3114


Is ibm db2 free?

572


What is consistency token in db2?

638


What is db2 command?

582


What are the various isolation levels possible?

643


What is syscat in db2?

574


How can deadlocks be resolved?

538


What is the difference between db2 and oracle?

671


What is a dbrm in db2?

574