I have one table which has auto_increment column and in procedure we are looping and performing one by one insert but now observing delay in response, could you pls share example for insert_all with auto_increment column.(I tried but not working with me )
It is not possible to use insert_all if the target table has an auto_increment column, and you want to auto-fill the auto_increment column.
You could try inserting the data in bulk to a scratch or temp table and then use an INSERT…SELECT… to move data from that table to the final target table (the one with the auto_increment). That might be faster than doing a bunch of singleton inserts, depending on the scenario.
Here’s what I had in mind re: the INSERT…SELECT… approach.