public void checkFastProperty(boolean fastProperty) {
makeKey("uid",String.class);
makeKey("name", String.class);
makeKey("age", String.class);
finishSchema();
clopen(option(GraphDatabaseConfiguration.PROPERTY_PREFETCHING), fastProperty);
metricsPrefix = "checkFastProperty"+fastProperty;
TitanTransaction tx = graph.buildTransaction().groupName(metricsPrefix).start();
TitanVertex v = tx.addVertex("uid", "v1", "age", 25, "name", "john");
tx.commit();
verifyStoreMetrics(EDGESTORE_NAME);
verifyStoreMetrics(INDEXSTORE_NAME);
verifyStoreMetrics(METRICS_STOREMANAGER_NAME, ImmutableMap.of(M_MUTATE, 1l));
tx = graph.buildTransaction().groupName(metricsPrefix).start();
v = getV(tx, v);
assertEquals("v1",v.property("uid").value());
assertEquals("25",v.property("age").value());
assertEquals("john",v.property("name").value());
tx.commit();
if (fastProperty)
verifyStoreMetrics(EDGESTORE_NAME, ImmutableMap.of(M_GET_SLICE, 2l));
else
verifyStoreMetrics(EDGESTORE_NAME, ImmutableMap.of(M_GET_SLICE, 4l));
verifyStoreMetrics(INDEXSTORE_NAME);
verifyStoreMetrics(METRICS_STOREMANAGER_NAME, ImmutableMap.of(M_MUTATE, 1l));
}