When binding a multi-line prepared statement within a single transaction block (see code), it takes 390 sec to INSERT the same 11,117 rows into each of the 28 partitioned tables for total throughput of 7989 rows/ sec (compared to the 22,234 recrows/sec in the baseline)
The max/avg/min values from
vmstat -wt 1
during the INSERT resulting fromDBI::dbBind()
appear as follows:procs -----------------------memory---------------------- ---swap-- -----io---- --system-- --------cpu-------- r b swpd free buff cache si so bi bo in cs us sy id wa st 6 1 0 112348416 200092 15661572 0 0 0 10090 12259 37796 32 3 81 4 0 # MAX 3 0 0 111860781 199437 15608955 0 0 0 1708 5658 6371 21 1 78 0 0 # AVG 3 0 0 111353344 199372 15572860 0 0 0 184 4115 1602 17 0 67 0 0 # MIN