Re: Reducing size of .dat and .idx in SE5.02
Posted in 1996
Topics: General Discussion
Nils.Myklebust@ccmail.telemax.no said: > : spitz@GANS2X.ana.med.uni-muenchen.de (Richard Spitz) writes: > : Jonathan Leffler (johnl@informix.com) wrote: >> >> (deleted various stuff about needing cisam files and se files names >> to be shareable) > > Why don't you put your C-Isam tables in one directory, the SE-database tables > in another and create links between them. > In that case all you need to do when you rebuild a table in the SE-database > is to recreate the link to the appropriate file in your C-Isam directory. why bother? why not take 5 minutes to reverse engineer the systables file which has a known structure and write a function (using cisam of course) to read the systables file using the tabname index. i've done this and it allows you to relocate files (using dirpath) quite nicely as well. you'll never have to worry about links or hardcoding a file name again (other than as a table name reference). The next guy who comes along won't have to worry about links either (maintanence hint) -- Aaron Pelton | A person should live forever or die trying. aaron@silo-alcazar.com | S. Robinson #include<disclaimer.h> | Silo Music/Alcazar Records