Hello Team, AppNair,
In one of customer's OScript module, there is usage of this code. What the module does is
: Given the object of the folder, the category name, one of the value of the attribute (along with attribute name)
: the module retreives all the document's atribute value and puts in a list. So you have 20 documents in the folder, we get a list of attribute values for each of the document.
: This module is used extensively and as such for say 10000 folders and around 100000 documents the cats/atts are fetched.
The code has the following snippet and what happens is that the catVersion.Definition.ValueTemplate.Values (which is an Assoc) gets weird.
Meaning, the assoc's keyValue becomes like '\\2\\', '\\\\2 \\\\\' and so on after each pass this \\ becomes so huge the convert function inside the if loop uses a string conversion of this keyvalue and crashes the livelink server.
I basically commented the code and the crash does not happen (obviously since the string manipulation does not happen).
But can anybody tell the impact of commenting the code. In terms of the output/performance/memory/etc we are not seeing any impact.
/*if result.OK
//We now must convert the LLIAPI cat value tree to the CAT version spec for the Value Template
if Assoc.IsKey( catVersion.Definition.ValueTemplate, 'Values' ) //Do not Xlate
result = ._ConvertInternalValueTree(catVersion.Definition.ValueTemplate.Values)
end
end*/
Madhu
In one of customer's OScript module, there is usage of this code. What the module does is
: Given the object of the folder, the category name, one of the value of the attribute (along with attribute name)
: the module retreives all the document's atribute value and puts in a list. So you have 20 documents in the folder, we get a list of attribute values for each of the document.
: This module is used extensively and as such for say 10000 folders and around 100000 documents the cats/atts are fetched.
The code has the following snippet and what happens is that the catVersion.Definition.ValueTemplate.Values (which is an Assoc) gets weird.
Meaning, the assoc's keyValue becomes like '\\2\\', '\\\\2 \\\\\' and so on after each pass this \\ becomes so huge the convert function inside the if loop uses a string conversion of this keyvalue and crashes the livelink server.
I basically commented the code and the crash does not happen (obviously since the string manipulation does not happen).
But can anybody tell the impact of commenting the code. In terms of the output/performance/memory/etc we are not seeing any impact.
/*if result.OK
//We now must convert the LLIAPI cat value tree to the CAT version spec for the Value Template
if Assoc.IsKey( catVersion.Definition.ValueTemplate, 'Values' ) //Do not Xlate
result = ._ConvertInternalValueTree(catVersion.Definition.ValueTemplate.Values)
end
end*/
Madhu