Posted on

Magento 2 – how to store example data for my module

I think about storing example data for my custom module – module will generate some random sets based on it but I don’t know how to approach it.

I want to start with 4 groups of values every with 100 unique values and want to expand it later.

Should I handle it through database table $installer or store it in some CSV file inside module and read it somehow? I don’t know what should be “best practice” approach to do such task in Magento 2.

Leave a Reply

Your email address will not be published. Required fields are marked *