Hi there,
The Webadmin is flowing the jmx value for the number of ids in use, which is
higher than the actual number if you have deleted things. Exact numbers
would require more aggressive reuse of ids, which is in the roadmap. Your
traversal numbers are right. Could you please raise an issue to have better
explanation in Webadmin on this?
On Oct 22, 2011 10:27 AM, "sometime" <[email protected]> wrote:

> WebAdmin shows me the following information:
> 1204697 nodes
> 6113395 relationships
> 3 relationship types
>
> I run this code:
>
> GraphDatabaseService graphDb = new
> EmbeddedGraphDatabase("/neo4j-enterprise-1.4.1/data/graph.db");
>
> int nodes = 0;
> int relationships = 0;
> List<String> types = new ArrayList<String>();
> for(Node n: graphDb.getAllNodes())
> {
>        nodes++;
>
>        for (Relationship r : n.getRelationships(Direction.OUTGOING))
>        {
>                relationships++;
>                String typeName = r.getType().name();
>                if (!types.contains(typeName)) types.add(typeName);
>        }
> }
>
> System.out.println(nodes);
> System.out.println(relationships);
> for(String t : types) System.out.println(t);
>
> graphDb.shutdown();
>
>
> and result:
> 1204646 nodes
> 5467850 relationships
> KNOWS, MEMBEROF types (only 2 types, not 3)
>
> Why incorrect data? I am very important to show the correct data webadmin!
>
> What should I do to show the correct date webadmin?
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/WebAdmin-incorrect-data-tp3443183p3443183.html
> Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to