Skip to content

01 Global Configuration

hkuich edited this page Nov 22, 2021 · 1 revision

Configuration

{
  "globalConfig": {
    "separator": ",",           // default separator to use in data files
    "rowsPerCommit": 50,        // number of insert statements loaded per transaction commit
    "parallelisation": 64,      // defaults to # of cores * 8
    "schema": "src/test/resources/1.0.0/phoneCalls/schema.gql", // path to your schema
    "orderedBeforeGenerators": [    // generators that must run before the default order of generators**
      "person-1"
    ],
    "orderedAfterGenerators": [     // generators that must run after the default order of generators
      "person-2",
      "person-3"
    ],
    "ignoreGenerators": [           // generators to skip - useful for debugging
      "person-ignored"
    ]
  },
  ...
}

** the default order of generators is: attributes, entities, relations, appendAttributes, appendAttributesOrInsert

In case you need to fine tune/adjust configuration settings, every generator can have a config specific to itself. You can here set alternative values for "separator" and "rowsPerCommit", like so:

{
  "globalConfig": {...},
  "entities": {
    "person": {
      "config": {
        "separator": "\t",
        "rowsPerCommit": 50
      },
      ...
    },
    ...
}