|Re: [ATL] Transformation execution time [message #780276 is a reply to message #780198]
||Tue, 17 January 2012 14:19
Registered: October 2011
I've tried further and my transformation is now working properly and in reasonable time.
What has gone wrong:
In rule Qualifier2Qualifier I have to generate a reference to a corresponding QualifierType. My previous solution was to iterate over all QualifierTypes to find the right one:
QualifierTypeRef <- cim!QualifierType->allInstances()->select(qt | qt.Name.toLower() = mofQualifier.name.toLower())->first(),
This has taken up to 1 second per qualifier. Unfortunately there are more than 32,000 qualifiers in my model. So this is the reason why transformation has run endlessly.
My current workaround is to not generate this reference - do you have an idea how I can optimize above iteration to run much faster?
Thank you very much for your help in advance!
Powered by FUDForum
. Page generated in 0.04195 seconds