wp_insert_post memory consumption

Did some profiling, it was the 5k+ queries being stored in the $wpdb->queries array.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)