Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Do
-
3.0.2-incubating
-
None
-
None
Description
One of the most commonly written functions used is good ol' "getOrCreate" where you want to get a Vertex if it exists or create it with supplied properties if it does not. We currently have a "helper" function for this on ElementHelper
but perhaps it is time to treat this issue as a first class citizen as part of the Graph API. I think that some vendors might actually be able to optimize this function as well.
Another aspect of "getOrCreate" is "upsert" as well as options to ensure uniqueness. All of these things we've at some point or another built variations of outside of TinkerPop for applications, data loading, etc.