Re: [Neo] Counting nodes

2009-09-18 Thread Andreas Kollegger
For my use cases at least, total node counts are needed so often that I'd love the optimized version. What's the relationship between number of documents and nodes? Would that be all indexed nodes regardless of the key? On Sep 18, 2009, at 3:46 AM, Mattias Persson wrote: > Looking at the Lucene j

Re: [Neo] [Commits] r3108 - components/index-util/trunk/src/main/java/org/neo4j/util/index

2009-09-18 Thread Mattias Persson
2009/9/18 : > Author: mattias > Date: 2009-09-18 13:14:47 +0200 (Fri, 18 Sep 2009) > New Revision: 3108 > > Modified: >   > components/index-util/trunk/src/main/java/org/neo4j/util/index/LuceneDataSource.java >   > components/index-util/trunk/src/main/java/org/neo4j/util/index/LuceneTransaction.

Re: [Neo] Counting nodes

2009-09-18 Thread Mattias Persson
Looking at the Lucene javadocs I can see that you can ask an index (IndexReader) the number of documents there are in it and it'd be simple to expose a size() method in the IndexService interface or perhaps on the LuceneIndexService class... Would that be something worth/good to implement? 2009/9