Data was loading very slowly, due to transform map scrips
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2023 11:35 PM
We have on before and on after transform map scripts, when we are doing data load the records was inserting very slowly. It was taking lot of time to insert the records.
To avoid this what we can do, please let us know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2023 12:19 AM
yes, can you try it in lower instance
Regards, Shekhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2023 01:13 AM
I have tried the above script in dev instance, it was working very slowly.
i am using scoped application, and in scoped application we have customized table.
those are the above scripts we are performing on custom table, created data source and transform map scripts in scoped application.
The data was loading very slowly, due to transform map scripts.
what can be do, i have not created index on coleasce fields is it reason for data loading very slowly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2023 12:26 AM - edited ‎06-05-2023 12:28 AM
Without knowing the details of your instance, I would say that your query is incorrect.
You are doing a query on two different fields on incident "imported" and "incident_id".
As far as I know, there is no such fields OOB on the incident table, meaning your query is invalid, and depending on the settings on the instance, will return ALL incident records.
And since you are looping through all found records, and updating them one by one, this script will be very slow.