I have this table with a varchar of size 10K
create table doc(
id BIGINT,
name VARCHAR(50),
body VARCHAR(1)
);
More often than not, the table will only store small values (less than 200
characters) in the "body" column. However, I want it to be big just in
case.
My Question: when creating table with the "possibility" of a large varchar,
does that negatively impact the performance (speed or memory) of the
database? Does H2 do anything special to "antiicpte" large varchar
entries, or is it exactly the smae as if I made the body column a smaller
varchar.
I know that *if* I put a large value in the varchar, that will take memory,
but I am speaking about the table structure and assuming that most values
will be small?
-Adam
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.