Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed the dataset size exercise, it's terrible

  • Loading branch information...
commit d1eccf176e7e9612a994a63afb6b695a8db2ef2a 1 parent 65c53fb
@jimwebber authored
Showing with 0 additions and 29 deletions.
  1. +0 −29 src/koan/java/org/neo4j/tutorial/Koan08a.java
View
29 src/koan/java/org/neo4j/tutorial/Koan08a.java
@@ -77,35 +77,6 @@ public void shouldCountTheNumberOfEpisodes()
assertEquals(246l, result.javaColumnAs("count(episodes)").next());
}
- @Test
- public void shouldSizeTheDoctorWhoDataset()
- {
- // The Java APIs make it quite easy to brute force count nodes and relationships
- // But as of Neo4j 1.7, Cypher can do it too...
-
- ExecutionEngine engine = new ExecutionEngine(universe.getDatabase());
- String cqlNodes = null;
- String cqlRels = null;
- long items = 0;
-
- // YOUR CODE GOES HERE
- // SNIPPET_START
-
- cqlNodes = "start nodes=node(*) "//, r=relationship(*) "
- + "return count(nodes)";
-
- cqlRels = "start rels=relationship(*) "
- + "return count(rels)";
-
- // SNIPPET_END
- ExecutionResult nodesResult = engine.execute(cqlNodes);
- items += ((Long)nodesResult .javaColumnAs("count(nodes)").next()).longValue();
-
- ExecutionResult relsResult = engine.execute(cqlRels);
- items += ((Long)relsResult.javaColumnAs("count(rels)").next()).longValue();
-
- assertEquals(3354, items);
- }
@Test
public void shouldFindAllTheEpisodesInWhichTheCybermenAppeared() throws Exception
Please sign in to comment.
Something went wrong with that request. Please try again.