Default maximal length for VarChar Re: VChar vs VText

Ed Kleban Ed at Kleban.com
Wed Nov 30 09:09:47 CST 2005




On 11/28/05 5:59 AM, "Ruslan Zasukhin" <sunshine at public.kherson.ua> wrote:

> On 11/28/05 3:57 AM, "Ed Kleban" <Ed at Kleban.com> wrote:
> 
>>> Actually in v2 for UTF8 the best size of VarChar will be 2044.
>>> 
>> 
>> Why?  Does this have to do with the natural page size of MacOS X or
>> something?  
> 
> Yes. Best size of page is 4K
> 
> We assume that page should keep at least 2 records.
> 
> So max size *in bytes* for one record is (4K - header) / 2 = 2044
>  

Ok, great. I understand.  I'll change my code accordingly.
You can change the Kernel doc.  ;-)

Thanks!
--Ed




More information about the Valentina mailing list