A lot of this depends on the quality of the code that you use to click on the database.
If you write your batch to insert a single value into an INSERT request (i.e.
INSERT INTO table (field) VALUES (value_1); INSERT INTO table (field) VALUES (value_2); ... INSERT INTO table (field) VALUES (value_n);
Your performance will crash and record.
If you insert multiple values ββusing one INSERT (i.e.
INSERT INTO table (field) values (value_1),(value_2)...(value_n);
you will find that you can easily insert many records per second
As an example, I wrote a quick application that was supposed to add LDAP account request information to the storage buffer. Inserting one field at a time (i.e. LDAP_field, LDAP_value ), the entire script took 10 seconds to complete. When I concatenated the values ββinto a single INSERT query, the execution time of the script was reduced to about 2 seconds from start to finish. This included the overhead of starting and completing a transaction
Hope this helps
source share