Hi All ,
I observed at customer place most of the tracking data has been inserted into the Bam_ActivityName_ActiveRelationship for tracking purpose and from there query is being build to execute the various type of reports and SSIS packages are running for other different tasks.
I observed SSIS packages and other query which are performed on these tables are performing very poorly and this become a critical issue there
After analysis I realized LongReferenceData haveNTEXT data type and which is the root cause behind it.
I ran one simple query against it to retrieve only single row in my local VM and it took around 4.5 minute to execute the query however when I changed NTEXT as VARCAR(MAX) , same query has been executed in the 18 sec only.
I notice NTEXT data type for column LongReferenceData is automaticity getting created ,
My question is ,
- Is any way where these particular data type can be managed prior to deploy the activity and it will be created as VARCHAR(MAX) to improve the performance.
- How same can be changed in production where already data are existing and there are lot activity have been already created
Thanks
KK