1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-11 23:01:08 +01:00

Updated Improve Performance of PGPainless CLI with Nailgun (markdown)

Paul Schaub 2023-05-08 14:44:31 +02:00
parent 84e250dffb
commit b3e7bfc1fc

@ -7,6 +7,12 @@ Programs run in the server (which is implemented in Java), and are triggered by
To use nailgun to increase the performance of `pgpainless-cli`, the first thing you need is a Java 8 installation. To use nailgun to increase the performance of `pgpainless-cli`, the first thing you need is a Java 8 installation.
This is because nailgun uses features from Java 8, which were removed in later releases. This is because nailgun uses features from Java 8, which were removed in later releases.
Futher, you need to compile PGPainless using Java 8 to get a compatible jar file.
```shell
$ JAVA_HOME=$JAVA8_HOME gradle assemble
$ ls pgpainless-cli/build/libs/pgpainless-cli-XYZ-all.jar
```
## Start the nailgun server ## Start the nailgun server
Simply execute the nailgun-server.jar on the Java 8 JVM: Simply execute the nailgun-server.jar on the Java 8 JVM:
@ -15,7 +21,7 @@ Simply execute the nailgun-server.jar on the Java 8 JVM:
$ $JAVA8_HOME/bin/java -jar nailgun-server.jar $ $JAVA8_HOME/bin/java -jar nailgun-server.jar
``` ```
Next, load the pgpainless-cli-XYZ-all.jar: Next, load the freshly built pgpainless-cli-XYZ-all.jar:
```shell ```shell
$ ng ng-cp /path/to/pgpainless-cli-XYZ-all.jar $ ng ng-cp /path/to/pgpainless-cli-XYZ-all.jar