Github user spmallette commented on the pull request:
https://github.com/apache/incubator-tinkerpop/pull/107#issuecomment-148099414
Here's the pattern used in `Attachable`:
https://github.com/apache/incubator-tinkerpop/blob/master/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/Attachable.java#L333-L335
basically, you can query the graph for the cardinality of the property:
```java
graph.features().vertex().getCardinality(k)
```
I have no idea what that check will do to the speed of your load, but
perhaps we worry about optimizing later (unless you see an easy way to avoid
lots of repeated checks to this method that we get stuck with in `Attachable`).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---