{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "%run '../util/neptune.py'" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "cluster_endpoint=os.environ['NEPTUNE_CLUSTER_ENDPOINT']" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Clear database" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "neptune.clear(edge_batch_size=100000, vertex_batch_size=10000 ,neptune_endpoint=cluster_endpoint)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Load database" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "neptune.bulkLoad(os.environ['VERTEX_FILE_S3_LOCATION'], neptune_endpoint=cluster_endpoint)" ] } ], "metadata": { "kernelspec": { "display_name": "conda_python3", "language": "python", "name": "conda_python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.5" } }, "nbformat": 4, "nbformat_minor": 2 }