91
MP Server / Re: Find Total compressed Doc size stored in an app group
« on: January 23, 2017, 09:11:38 AM »
Well that's not easy to do, because there are many combination possible. And per load, you could also have different settings for an AG.
But basically, you need to use the following idea for compressed files:
per DOC_NAME, you get the max(comp_off) and to this value add the associated COMP_LEN.
Example:
DOC_NAME: 1FAAA
MAX(COMP_OFF): 21892981
associated COMP_LEN to MAX(COMP_OFF): 29129
Size of 1FAAA in the cache AND in Centera: 21892981 + 29129 = 21922110 bytes
And you do that for every DOC_NAME in your AG, and you got the size you want.
If the files are not compressed, normally, take for your doc_name, the max(doc_off) and add the corresponding doc_len, and you have for that object the size in cache and in Centera.
To know if your doc_name is compressed or not, you need to look at the field comp_type, if I remember correctly, if the value is "N" (none) "D" (disable), then the content is not compressed, otherwise it is compressed.
I let you figure out how to do it in SQL, shell, java, etc... But you have the logic here.
Regards,
Alessandro
But basically, you need to use the following idea for compressed files:
per DOC_NAME, you get the max(comp_off) and to this value add the associated COMP_LEN.
Example:
DOC_NAME: 1FAAA
MAX(COMP_OFF): 21892981
associated COMP_LEN to MAX(COMP_OFF): 29129
Size of 1FAAA in the cache AND in Centera: 21892981 + 29129 = 21922110 bytes
And you do that for every DOC_NAME in your AG, and you got the size you want.
If the files are not compressed, normally, take for your doc_name, the max(doc_off) and add the corresponding doc_len, and you have for that object the size in cache and in Centera.
To know if your doc_name is compressed or not, you need to look at the field comp_type, if I remember correctly, if the value is "N" (none) "D" (disable), then the content is not compressed, otherwise it is compressed.
I let you figure out how to do it in SQL, shell, java, etc... But you have the logic here.
Regards,
Alessandro