Detail
If our graph database already contains previously loaded data, can we use the bulk loader to load in more data?Answer
As of AGS 1.2.0, the bulk loader can only load data into an empty database. If data already exists in the graph and more data is bulk loaded, the results are undefined. This could result in queries timing out.
An example of an error you could get is:
java.util.concurrent.CompletionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: timeout exceeded waiting for new records
You can run the bulk loader as many times as you would like, but if you want to do it a 2nd time, or an nth time, you would need to clear the partial data loaded in the previous run.
You could clear data by calling
g.V().drop().iterate()
Notes
This is as of AGS 1.2.0 (latest version of AGS in Jan 2024). Please check the Aerospike Graph Service release notes in case we allow the bulk loader to be run multiple times without needing to clear previously loaded data.Please also note that you would need minimum Aerospike server version 6.2.0.7 to use AGS.