I have created a custom class in the database and i want to pre-populate it with about 10,000 entries.
I have my 10,000 entries in a json. I could create a function that loops through each entry and then creates a new instance of the class and sets the relevant values.
Is there a better way to do this?