Rest API Bulk Insert

Looking for best strategy to bulk insert records into OrientDB. I have about 2 million records that need inserted but the performance appears to be slow. Any pointers would be much appreciated.

Figured it out: Rest API Post:

    { "transaction" : false,
      "operations" : [
          "type" : "script",
          "language" : "sql",
          "script" : [ "BEGIN;let account = CREATE VERTEX Account SET name = 'Luke';let city =SELECT FROM City WHERE name = 'London';CREATE EDGE Lives FROM $account TO $city;COMMIT RETRY 100" ]

Also you should give a try to passing parameters to the repetitive query and caching it :

Bulk batches did the job for me and went smooth and fast.