From e8704c2cb90af456999ef484c132de7420918e57 Mon Sep 17 00:00:00 2001
From: Anatoly Khaytovich 4. Go to nmig directory, install dependencies, and run the app. 4. Go to nmig directory, install dependencies, and run the app with
-
More info: http://www.postgresql.org/docs/current/static/app-createuser.html
More info: http://www.postgresql.org/docs/current/static/app-createuser.html
+--expose-gc
flag
Sample:
$ cd /path/to/nmig
$ npm install
- $ node main.js
-
$ node --expose-gc main.js
+
+ Remark: you can increase node.js memory limit (RAM usage) using --max-old-space-size
flag
+
+
+ Following command will increase memory limit to ~2GB and run nmig
+
$ node --max-old-space-size=2048 --expose-gc main.js
+
5. At the end of migration check log files, if necessary.
Log files will be located under "logs_directory" folder in the root of the package.
@@ -70,7 +79,7 @@ which includes data types mapping, creation of tables, constraints, indexes,
PostgreSQL database took 1 minute 18 seconds.
-Remark: it is highly recommended to VACUUM newly created database!
+Remark: it is highly recommended to VACUUM newly created database!
Just keep in mind, that VACUUM is a very time-consuming procedure.
So if you are short in time - disable VACUUM via config.json ("no_vacuum" parameter).
Such step will save you ~25% of migration time.