Improve Import Performance in Microsoft SQL
Is there a better way to import data into Microsoft SQL server OR Azure SQL for the matter? At the moment the records are being inserted one by one, rather we would like to explore if there are options to import records in bulk/ batches.
Tyler Lamparter Sorry to tag you, but thought you may want to guide here :)
0
Comments
Hi Vreddhi Bhat,
We plan to add metadata support for Microsoft SQL server (cloud-hosted) in the upcoming release. As a part of this feature, you can use bulk insert and map source data with destination columns seamlessly.
Please look out for our release notes for more details.
Best Regards
Thank you Rohit Prasad. Is there an estimated timeline for this release?
Hi Vreddhi Bhat,
This feature is planned for the September release, so it would be available on or around 26th September depending on the region (NA/EU).
Please let us know if you have any follow-up questions.
Best Regards,
Vreddhi Bhat, Rohit Prasad's answer is the best and the release isn't too far away. In case you're curious on how you could do it now, you could have a presave page script on the export side that converts a whole page of records into a single record with an array of "lines". So the input of the presave page would be [{},{},{},{},{},{},{}] and the output would be [{"record_data":[{},{},{},{},{},{},{}]}]. After that, you can use an {{#each}} handlebar expression within the SQL query editor to loop through the array and shove in multiple values.
Thank you Tyler Lamparter. Doesnt the {{#each}} loop introduce the same performance hiccup?
Vreddhi Bhat no because you would be making 1 insert statement with multiple values per page of data versus 1 insert statement for each value/record of data. Here is an example:
Tyler Lamparter Is it ok for you to help me with the pre-save script that you referred to earlier where in the idea of converting the records in a page to a single array of records. I am unable to test it easily. Just wondering whether you have a readily available JS code.
Rohit Prasad May I know whether the release of bulk insert and data-mapping is going to be released this week as per original plan?
Vreddhi Bhat the presSavePage script would look like this on the export step.
The SQL Server enhancement is scheduled to release on Thursday.
Please sign in to leave a comment.