Question

I have downloaded Magento 2.2 with sample data.

So in sample data instance, there are only 2046 products. So I want 10K sample data products data.

how can I get this data?

Because I want to test my module on 10k products.

Anyone know about this solution?

Was it helpful?

Solution

You can use this command for create sample data product :

php bin/magento setup:perf:generate-fixtures /(Magento root )/setup/performance-toolkit/profiles/ce/(Profile xml as per your need)medium.xml.

You can use medium.xml for that

For more product create click here.

OTHER TIPS

For More Information

I faced error mysql server has gone away while importing sample data products command so fix the error ,go to following path xampp/mysql/bin/my.ini and increase packet value

[mysqld]
max_allowed_packet = 512M

[mysqldump]
max_allowed_packet = 512M

Then restart mysql and apache.

-Go to magento2 root directory through command line

if you want to import 800 products(I have applied below code in local xampp windows) use below code

php bin/magento setup:perf:generate-fixtures setup/performance-toolkit/profiles/ce/small.xml

if you want to import 4000 products(I have applied below code in local xampp windows) use below code

php bin/magento setup:perf:generate-fixtures setup/performance-toolkit/profiles/ce/medium_msite.xml

if you want to import 24000 products(I have applied below code in local xampp windows) use below code

php bin/magento setup:perf:generate-fixtures setup/performance-toolkit/profiles/ce/medium.xml

if you want to import 300000 products use below code

php bin/magento setup:perf:generate-fixtures setup/performance-toolkit/profiles/ce/large.xml

if you want to import 600000 products use below code

php bin/magento setup:perf:generate-fixtures setup/performance-toolkit/profiles/ce/extra_large.xml

Note: If you are applying on a server this command so it should disable cron.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top