jmix-framework / jmix-bookstore

Jmix Bookstore is a comprehensive example application built with Jmix
https://demo.jmix.io/bookstore
16 stars 5 forks source link

Do not recreate data on each start #52

Closed knstvk closed 1 year ago

knstvk commented 1 year ago

It slows down startup. Check if some data already exists in the database or introduce a property to bypass this process.

mariodavid commented 1 year ago

Yes, we can do that.

The only data where it actually makes sense to have it dynamically generated are Orders (and associated data like Order Lines).

I mainly created the java code not to have to come up with test data on my own. But for the most part we can surely take a dump of the data and put it into SQL scripts as migration scripts. I already did that for part of the data like Regions, Territories and so on.

mariodavid commented 1 year ago

done in #55