Jon, project, note 4

jda jda at his.com
Sat Jul 10 15:38:49 CDT 2004


>I have to see that in your Prefs database table
>You create one field for each parameter you want to store.
>
>Am I right that this table will save only one record?
>
>This is not good idea.
>
>Even if you set segment size for db = 2KB, you loose 2KB for each
>field/parameter.
>
>If you have 50 parameters your pref db will be 100KB.
>
>
>--------
>The right way is -> table with 2 fields Property and Value
>Both VarChar.
>
>Then you will store all your 50 parameters in 2KB only, instead of 100KB.
>

I know. You are seeing some old code that I left in for backward 
compatibility. I use the second method for all new preferences I 
create now. I'd convert the old ones, too, but it would break so many 
things.

Jon



More information about the Valentina-beta mailing list