Problem with setting alias
Posted: Thu Jun 16, 2011 8:08 am
Hello,
I have a dimension with 100.000 elements and want to set the alias for those elements using the API function TM1ObjectAttributeValueSet. With TM1 9.0 that was no problem. As we are upgrading to version 9.5, it takes about 10 times longer than before. I tried to use TM1ServerBatchUpdateStart and TM1EnableBulkLoadMode but that was no improvement in performance.
What can I do to get the same performance as before in version 9.0?
I have a dimension with 100.000 elements and want to set the alias for those elements using the API function TM1ObjectAttributeValueSet. With TM1 9.0 that was no problem. As we are upgrading to version 9.5, it takes about 10 times longer than before. I tried to use TM1ServerBatchUpdateStart and TM1EnableBulkLoadMode but that was no improvement in performance.
Code: Select all
voEle = TM1ObjectListHandleByIndexGet( pLocal, voDim, TM1DimensionElements(), TM1ValIndex( pLocal, 1 ) ) ;
voAttribute = TM1ObjectListHandleByNameGet( pLocal, voEle, TM1ObjectAttributes(), TM1ValString( pLocal, ALIAS_BEZEICHNUNG.c_str(), 0 ) ) ;
for ( i=0; i<TM1Element.Length; i++ )
{
hEle = TM1ObjectListHandleByNameGet( pEle, voDim, TM1DimensionElements(), TM1ValString( pLocal, TM1Element[i].c_str(), 0 ) );
TM1ObjectAttributeValueSet( pAttribute, hEle, voAttribute, TM1ValString( pLocal, TM1Alias[i].c_str(), 0 ) ) ;
}