WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i try to import a custom DB to the WP DB with about 2000 rows (custom post type). the problem is that the insert by wp_insert_post takes about a second per insert.

Is this normal ? Is there a fast/alternative solution... I think that a insert query should not take over some milliseconds.


its a remote server and both databases are on it. the queries are in quite normal speed (already tested), just the inserting is the problem.

Need some code ? Ask in comments..

thanks guys.

share|improve this question
You need to add much more info: local/server, how's your custom DB structured, etc. Also: Get the debug plugin (official repo) + extensions. – kaiser Apr 13 '12 at 12:13

quite easily.

deactivate Wordpress SEO Plugin by Yoast before you playing around with the wp_insert_post function. It delays the function about a factor of hundred.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.