× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,

Just an other information about VARLEN.
When specifying VARLEN without a numeric values. The complete data is stored
in a separate space the so called overflow area. The VARLEN field contains
only the address of the overflow area. When accessint the data, they must be
first resolved, i.e. the overflow area must be searched. Also all CLOB
fields are stored in this overflow area. Searching the overflow area may
take a lot of time (compared to the execution time of the query).

When defining VARLEN(numValue). All varying textes that are shorter than the
specifed numeric value are stored directly in the table. Only longer textes
get stored in the overflow area. To get the best performance the numeric
value should be defined so that around 90% of all textes can be stored
directly in the table.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"

-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von Jon Paris
Gesendet: Thursday, August 09, 2007 18:33
An: rpg400-l@xxxxxxxxxxxx
Betreff: Re: Database design question


NOTE 32000A COLHDG('Note') VARLEN

I would change this line to say (for example) VARLEN(1000) Nathan. That
assumes that 1,000 characters encompasses the majority of cases but
sometimes you need to go to 32K.

This gives you a better balance between performance and storage usage.

Jon Paris
Partner400
www.Partner400.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.