Here is something you could try. If your 50 queries are all inserting into that same table "DB.MAIN" the queries will lock that table and run sequentially. If you could change the queries to write to their own temp table then all 50 queries can be run in parallel and at the end you can then insert the temp table values into DB.MAIN.
↧