I am trying to Creat Wordpress website that will contain 10 Million post, such that when i upload a single its become a post with it's own name as title. and i am importing these images with Wp-cli. now the problem i am facing is that i have uploaded about half a million images and now Wordpress has become slow, its taking too much time to import images. please suggest me any solution for this
Images Importing goes slow down, Server usage only 1% i am doing this Via WP-cli with this command
wp media import ~/Pictures/processed-images-medium/\*\*\/\*.jpg
every time when image upload its become a Unique post you can check it at here
/
I am trying to Creat Wordpress website that will contain 10 Million post, such that when i upload a single its become a post with it's own name as title. and i am importing these images with Wp-cli. now the problem i am facing is that i have uploaded about half a million images and now Wordpress has become slow, its taking too much time to import images. please suggest me any solution for this
Images Importing goes slow down, Server usage only 1% i am doing this Via WP-cli with this command
wp media import ~/Pictures/processed-images-medium/\*\*\/\*.jpg
every time when image upload its become a Unique post you can check it at here
http://www.wallpaper2k/naked-art-first/
Share
Improve this question
edited Dec 30, 2018 at 15:14
Shoabch
asked Dec 30, 2018 at 14:21
ShoabchShoabch
11 bronze badge
6
|
Show 1 more comment
1 Answer
Reset to default 0You need to either read more about database optimization or hire a specialist and distribute those posts possibly on multiple database and file servers. Even if you build a custom solution it would be slow so don't blame WP.
wp_insert_post()
andwp_unique_post_slug()
on your dev install and try to look for suitable hooks for that. Thewp profile
command might also give info on your site. – birgire Commented Dec 30, 2018 at 15:35wp shell
with a timer (search e.g. for microtime in PHP) or e.g. try it withwp profile eval <php-code>
. You can also look at it from within the wp-admin backend, with a profiling plugin like the Query Monitor and try e.g. to see if it gives any information when you manually upload a file. Note that this site does not favor long comment discussion, so it's recommended to give as much detail in the question to increase the change for someone being able to give a useful answer. – birgire Commented Dec 30, 2018 at 16:15