Focal Point
[CLOSED] While Adding a new column into XFOC File, The File Size is doubled.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9117058096

October 15, 2018, 06:12 AM
Veeramani Karuthapandian
[CLOSED] While Adding a new column into XFOC File, The File Size is doubled.
Dear Team,

I am creating a new XFOC file and it contains 25 columns. The File size will be around 16lacs kb. And then, Now, I am going to add one more new column XXXX (A255) into the XFOC.
Now, The XFOC file size is doubled in 32 lacs kb.

For one column, Why it has increased the file size of doubled in kb?. Can you please help me to understand the concepts.

Thanks in Advance.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
October 15, 2018, 07:58 AM
Chaudhary
Please make sure when creating new column you did not append the existing data to the existing file. check the file records.


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
October 15, 2018, 03:54 PM
Waz
What are the other 25 columns formats ?

Are there multiple segments in the XFOC file ?

Can you post the Master ?

Also, thought about rebuilding the XFOC file ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 16, 2018, 09:30 AM
jgelona
This is one of those things that IBI doesn't teach anymore, the structure of FOCUS and XFOCUS files, how records get added, how they are accessed and how to efficiently build them. I don't think they even teach their own staff anymore. For example, how many know that a A1 field really takes 4 bytes? Every A1 field wastes 75%. How many know how to get an A1 field to take 1 byte? How many realize that your Integer fields are internally stored as binary, take 4 bytes and one can change the format from I4 to I6 without doing a REBUILD? How many know, as long as a field is not part of the segment key and not indexed, you can change field names without a REBUILD? How many know about the record pointers in FOCUS and XFOCUS files? How many know that you don't have to access a FOCUS or XFOCUS file from the top segment? To me, as a developer, these are important things to know but as far as I know IBI hasn't taught this stuff in more than 20 years.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
October 16, 2018, 03:57 PM
Waz
Dang it, wheres the like button...


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!