i am using import.sql to create demo data, when the import.sql file is getting bigger with insert statements, it’s execution becomes very slow, and it takes long time to process, is there’s any way to make it faster ?
i am using mysql-essential-5.1.47 with hibernate 3.5.1-Final
please advise, thanks.
i am using import.sql to create demo data , when the import.sql file is
Share
IMHO, this feature should only be used for quick’n dirty prototypes. If you’re using it each time you start your application, then simply don’t. Import the file once and for all, and then start and stop the application as many times as you want. If the schema or data changes, then reimport it explicitely.
If you’re using it for unit tests, then also create the schema once and for all, and use dbUnit to import data before each unit test. But the data used by the unit test should be reduced to the minimum necessary for this specific unit test.