How to optimize multiple insert into wordpress database
To optimize the query, instead of use $wpdb->insert is possible to use $wpdb->query and use a single query that insert all the items. In fact, according to MySQL documentation: If you are inserting many rows from the same client at the same time, use INSERT statements with multiple VALUES lists to insert several rows at … Read more