From e8704c2cb90af456999ef484c132de7420918e57 Mon Sep 17 00:00:00 2001 From: Anatoly Khaytovich Date: Sat, 5 Mar 2016 19:23:44 +0200 Subject: [PATCH] Update README.md --- README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 78356cf..f40fa17 100644 --- a/README.md +++ b/README.md @@ -39,15 +39,24 @@ Chunk size can be adjusted easily via configuration file. Remarks: -

4. Go to nmig directory, install dependencies, and run the app.
+

4. Go to nmig directory, install dependencies, and run the app with --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.