ArangoDB Shell Configuration

    If the file .arangosh.rc is present in the home directory, arangosh will executethe contents of this file inside the global scope.

    This will make a function named timed available in arangosh in the global scope.

    1. timed(function () {
    2. db.test.save({ value: i });
    3. });

    Please keep in mind that, if present, the .arangosh.rc file needs to contain validJavaScript code. If you want any variables in the global scope to survive you need toomit the var keyword for them. Otherwise the variables will only be visible insidethe script itself, but not outside.