Genx Posted March 7, 2006 Posted March 7, 2006 Before i start... where are the descriptions for each forum section, i couldn't seem to find them when looking for somewhere to post this...Sorry if i posted this in the wrong place, you'd think i'd know by now eh Lee? Anyway, here's my question, i want to know how much physical space a 30 character long text string in one record will take up on a computer. Or in a larger scale example: 5 text fields, each roughly 30 character strings, 1,000,000 records. Thanks ~Genx
Lee Smith Posted March 7, 2006 Posted March 7, 2006 Location: [color:orange]Main Index [color:blue]» [color:orange]Forum Index [color:blue]» [color:orange]Beyond FileMaker [color:blue]» Brain Food [color:orange]The Left Brain Complex calculations, advanced scripting and other mind boggling topics. Lee
Genx Posted March 7, 2006 Author Posted March 7, 2006 Lol thanks lee, but um, where abouts would this fit? Thanks again ~Genx
Wim Decorte Posted March 7, 2006 Posted March 7, 2006 should be easy enough to test, no? Create an empty file. Check size. Add 30 characters to a text field, check size...
Genx Posted March 7, 2006 Author Posted March 7, 2006 Hmmm... That wouldn't be all that accurate though would it? ahwell, ill do it and loop a duplication for about 10000 records and divide and get the average or something Cheers for the suggestion Wim, though i am lazy i'll do it hehe ~Genx
Genx Posted March 7, 2006 Author Posted March 7, 2006 Rightio for anyone who's interested i got approx 48 bytes (found by sample of 10,000 records and 5 fields of data each containing a string of 30 characters) ~Genx
Wim Decorte Posted March 7, 2006 Posted March 7, 2006 IIRC fm stores each character as 2-byte unicode internally, which is why the 2GB text field limit will give you approx. 1 billion characters...
Genx Posted March 8, 2006 Author Posted March 8, 2006 ... well how did i manage to get less than 2-byte a character?
Wim Decorte Posted March 8, 2006 Posted March 8, 2006 No idea. Something else to keep in mind: if your field is indexed (or can be indexed automatically) then the size it takes will grow beyond the physical data in the field. How much depends on what indexes are build for that field.
comment Posted March 8, 2006 Posted March 8, 2006 Unicode uses (or better put, CAN use) variable length encoding.
BruceJ Posted March 17, 2006 Posted March 17, 2006 If indexing is ON for a field but there is nothing in the field, does it still take up space?
Fitch Posted April 19, 2006 Posted April 19, 2006 If indexing is ON for a field but there is nothing in the field, does it still take up space? The Zen of FileMaker, very deep. No, the field won't take up any space in the index. It will only affect the file size in the bytes it takes to define it in the schema.
Recommended Posts
This topic is 6792 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now