Hi folks,
I am using the Java driver and was wondering
how I could overwrite a document regardless of whether it exists or not.
In ElasticSearch, when I index a document, it gets replaced if it
exists, else it simply gets indexed. In ArangoDB using Java driver,
either I can create a document or I can replace it. So, I'll have to try
to create a document, if if fails, issue a replace on it. Is there a
better way? I searched for it and found UPSERT AQL command. Is using AQL
in java driver recommended or using the native createDocument interface
better for performance while bulk indexing?
Thanks,
GK