Re: [Neo4j] how many relationships?

2011-07-22 Thread John cyuczieekc
How would I go about getting all relationships in the entire database ? (with neo4j embedded) I see there is an db.getAllNodes() for nodes is there something similar for relationships? On Wed, Jul 20, 2011 at 7:13 PM, cyuczi eekc cyuczie...@gmail.com wrote: Is there a way to get the number of

Re: [Neo4j] how many relationships?

2011-07-22 Thread John cyuczieekc
: db.getAllNodes()) for (Relationship rel : node.getRelationships(Direction.OUTGOING)) { // your code here } Michael Am 22.07.2011 um 23:40 schrieb John cyuczieekc: How would I go about getting all relationships in the entire database ? (with neo4j embedded) I see

Re: [Neo4j] how many relationships?

2011-07-22 Thread John cyuczieekc
Hey Jim, I am sort of glad to hear that, maybe in the future I could see a method like getAllRelationships(), or not, np :) Yes, using Michael's code works, but ... total relations count=100,011 timedelta=3,075,897,991 ns it kind of takes 3 seconds (when not cached) to count 100k relationships

[Neo4j] shortestPath slower than it could be

2011-07-22 Thread John cyuczieekc
Hey guys, me bugging you again :) (This whole thing is kind of based on the lack of being able to get the number of relationships a node has) If I have two nodes, and the first one has 1 million outgoing relationships of the type X to 1 million unique/different nodes, and the second node has 10

Re: [Neo4j] shortestPath slower than it could be

2011-07-23 Thread John cyuczieekc
/accessibility) are the future, and I aim for immediate accessibility and customizability ;) Am 23.07.2011 um 04:42 schrieb John cyuczieekc: Hey guys, me bugging you again :) (This whole thing is kind of based on the lack of being able to get the number of relationships a node has) If I have

Re: [Neo4j] how many relationships?

2011-07-23 Thread John cyuczieekc
implementation would be probably faster. If timing is that critical for you, you can have a look in EmbeddedGraphDbImpl.getAllNodes() and implement a similar solution for relationships. Cheers Michael Am 23.07.2011 um 04:20 schrieb John cyuczieekc: Hey Jim, I am sort of glad to hear

Re: [Neo4j] shortestPath slower than it could be

2011-07-23 Thread John cyuczieekc
, using aspectj to hook on each call as to be able to catch each `throw`; making sure throws in finally don't overwrite throws in try; transactional memory attempt... - this kind of silly non-sensical details Am 23.07.2011 um 14:29 schrieb John cyuczieekc: Hail :) Beware, lot of noise follows (ie

Re: [Neo4j] shortestPath slower than it could be

2011-07-24 Thread John cyuczieekc
with the implementation, but in principal it should make no difference. I'll look at it when I get the time (I wrote that implementation). 2011/7/23 John cyuczieekc cyuczie...@gmail.com Hey guys, me bugging you again :) (This whole thing is kind of based on the lack of being able to get

Re: [Neo4j] nested transactions feature ?

2011-07-24 Thread John cyuczieekc
Hey Peter, Got any good working we could change to? I'm not sure I understand what you mean, do you mean that if I have any good text to add to the javadoc so it's stated more clearly ? or something related to code instead? but if code, to do what? I understand that they are using the topmost

Re: [Neo4j] shortestPath slower than it could be

2011-07-24 Thread John cyuczieekc
) for OUTGOING and two -- one (two,one) for INCOMING should yield the same timing. 2011/7/24 John cyuczieekc cyuczie...@gmail.com Thanks Mattias. The way I understand what you said is, that swapping `one` and `two` in *finder.findSinglePath( one, two );* should yield the same

Re: [Neo4j] shortestPath slower than it could be

2011-07-24 Thread John cyuczieekc
and two -- one (two,one) for INCOMING should yield the same timing. 2011/7/24 John cyuczieekc cyuczie...@gmail.com Thanks Mattias. The way I understand what you said is, that swapping `one` and `two` in *finder.findSinglePath( one, two );* should yield the same timing

Re: [Neo4j] shortestPath slower than it could be

2011-07-24 Thread John cyuczieekc
*whistle* :- On Sun, Jul 24, 2011 at 5:28 PM, John cyuczieekc cyuczie...@gmail.comwrote: updated to latest from github, Stops the algo as soon as possible in findSinglePath graphdb contains: one--three one--{ a million other random nodes } one--two { 10 random nodes } -- two (added

Re: [Neo4j] shortestPath slower than it could be

2011-07-24 Thread John cyuczieekc
database Environment shutting down complete 2,891 ms hopefully this is clearer than before :) code is in this commit: https://github.com/13th-floor/neo4john/commit/ec2079a9c2edf8e03922e4576c3271b3ac6119fd G'day On Sun, Jul 24, 2011 at 5:36 PM, John cyuczieekc cyuczie...@gmail.comwrote: ok fully

Re: [Neo4j] nested transactions feature ?

2011-07-27 Thread John cyuczieekc
coolest Bring-a-Thing party. On Sun, Jul 24, 2011 at 3:54 PM, John cyuczieekc cyuczie...@gmail.com wrote: Hey Peter, Got any good working we could change to? I'm not sure I understand what you mean, do you mean that if I have any good text to add to the javadoc so it's stated more

Re: [Neo4j] Pagination in Embedded

2011-07-27 Thread John cyuczieekc
Looks like John H. means, how do you get all results for page N and only for page N ? without the overhead of getting thru all other results; so far, as I understand it (also from what Jim said), you'll have to parse all the results for all pages prior to page N, to get to page N, but not the

Re: [Neo4j] Events this Week

2011-07-27 Thread John cyuczieekc
Hey Allison, Just checking, those meet-ups are not accessible via internet (ie. live streamed or something) right? Otherwise, looking forward for the webinar, thanks! On Wed, Jul 27, 2011 at 8:28 PM, Allison Sparrow allison.spar...@neotechnology.com wrote: Hi all, Just a reminder on three

Re: [Neo4j] HyperRelationship example

2011-07-27 Thread John cyuczieekc
Hey Niels, I like xD this seems like a lot of work and professionally done; ie. something I could not have done (I don't have that kind of experience and focus). Gratz on that, I really appreciate seeing this. I cloned the repo from git, manually, with eclipse (not using maven - don't know how

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
I don't know what you mean by this: I don't know how nicely BDB plays with Neo4J transactions. I have some small experience with bdb java edition that is, but I'm not sure what would their transaction have to do with neo4j transactions... if you meant if you could make a wrapper such that you

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
:35 PM, John cyuczieekc wrote: I don't know what you mean by this: I don't know how nicely BDB plays with Neo4J transactions. I have some small experience with bdb java edition that is, but I'm not sure what would their transaction have to do with neo4j transactions... if you meant if you

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
a relationship index? See: http://components.neo4j.org/neo4j/1.4/apidocs/org/neo4j/graphdb/index/ReadableRelationshipIndex.html /anders On 07/28/2011 01:35 PM, John cyuczieekc wrote: I don't know what you mean by this: I don't know how nicely BDB plays with Neo4J transactions. I have

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
nice, no errors now, thanks! I've been postponing checking stuff like SortedTree or anything until the errors were gone... I guess I could try SortedTree, but it's based on Nodes, and that would add an extra unnecessary layer maybe? still good to know I have this option and the RelationshipIndex

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
/value would typically be storing the relationship type. We should bring this up again next week, when Mattias who wrote the indexing stuff is back from vacation! /anders On 07/28/2011 03:05 PM, John cyuczieekc wrote: with relationshipindex seems to be working as fast, though I am not sure

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
Hey Niels, what is acquireLock() doing in SortedTree ? is removeProperty causing neo4j to acquire a lock on the Node? or its properties? also does that property need to exist? seems like not interesting :) On Wed, Jul 27, 2011 at 8:48 PM, Niels Hoogeveen pd_aficion...@hotmail.comwrote: I

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
understand why bdb would be better then) On Thu, Jul 28, 2011 at 3:45 PM, John cyuczieekc cyuczie...@gmail.comwrote: Roger that. don't read the following it's irrelevant(don't even know why I sent it): Btw, seems to me that (since the underlaying index storage is BTree - just guessing from

Re: [Neo4j] Events this Week

2011-07-28 Thread John cyuczieekc
btw, just making sure, the Webinar is in 3 hours from now right? (otherwise I miscalculated) On Wed, Jul 27, 2011 at 8:28 PM, Allison Sparrow allison.spar...@neotechnology.com wrote: Hi all, Just a reminder on three events we have to close off the week: *TONIGHT at 18:00 PDT* Vancouver

Re: [Neo4j] Events this Week

2011-07-28 Thread John cyuczieekc
I chose not to attend the webinar due to the fact that it requires java and runs *unrestricted* So for anyone else: Enjoy! the webinar is supposedly still going at this time (35mins into it) On Thu, Jul 28, 2011 at 4:04 PM, John cyuczieekc cyuczie...@gmail.comwrote: btw, just making sure

Re: [Neo4j] bdb-index

2011-07-28 Thread John cyuczieekc
Hi xD I'm not clear what you need to store here, if I understand correctly you could store in 2 primary bdb databases the nodeID (ie. long) of each node in a relationship ie. key-value dbForward: A-B A-C X-D X-B dbBackward: B-A B-X C-A D-X A,B,C,D,X are all nodeIDs ie. longs this way you could

Re: [Neo4j] Composable traversals

2011-07-28 Thread John cyuczieekc
Hey Niels, As they are composable, is java going to keep track of things, like if recursive, in stack ? or in array/variables ? or the graph could keep track of what's beep parsed so far, in-graph ? (I mean, this question applies for non-composable too; personally i like the idea of in-graph

Re: [Neo4j] bdb-index

2011-07-28 Thread John cyuczieekc
I forked and fixed, the tests are all working now: https://github.com/13th-floor/bdb-index Let me know if you want me to do a pull request, ... sadly I applied formatting on RawBDBSpeed and the diff doesn't look pretty if you're trying to see what changed John. On Thu, Jul 28, 2011 at 7:36 PM,

Re: [Neo4j] bdb-index

2011-07-29 Thread John cyuczieekc
) but when allowing 1-to-many, must use two primary databases; ok, I stand corrected ;) sorry John. On Fri, Jul 29, 2011 at 6:53 AM, John cyuczieekc cyuczie...@gmail.comwrote: small obvious correction btw, it's not 2 primary databases, it's 1 primary and 1 secondary ;) my bad On Fri, Jul 29, 2011

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
When running the mvn install, both tests are ran after another. Since I didn't use mvn (xD) I ran the tests manually one by one, but what you say makes sense, it's likely the tests fail when ran one after the other, I'll see what happens with an @Suite since there are only 2 junit tests, with

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
those got concatenated for some reason, I'll repost them here so I can see them Relatationship: To associated Node: RelId - NodeId From associated Node: NodeId - RelId RelationshipType: To associated Node: RelationhipType.name - NodeId From associated Node: NodeId - RelationshipType.name;

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
(ignore these, skip to the bold part: ie. search BOLD) Thanks Niels, I just tried what you said, with maven 3.0.3 it seemed to do some downloading work for a while then eventually got this: [ERROR] Failed to execute goal on project neo4j-berkeleydb-je-index: Could not resolve dependencies for

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
() some state is carried from the previous tests, even if this is just the database not being deleted I'll check some more, ofc On Sat, Jul 30, 2011 at 7:57 PM, John cyuczieekc cyuczie...@gmail.comwrote: (ignore these, skip to the bold part: ie. search BOLD) Thanks Niels, I just tried what you

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
im part of; for now I will try to fix this by first understanding it... let me know if anything else Peace off :) John On Sat, Jul 30, 2011 at 8:22 PM, John cyuczieekc cyuczie...@gmail.comwrote: from my experience this kind of behaviour would happen mostly due to using some static fields which

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
) Caused by: com.sleepycat.je.EnvironmentFailureException: (JE 4.1.10) Problem creating output files in: E:\wrkspc\bdb-index-fork\target\var\neo4j-db\index\bdb\Node\ On Sat, Jul 30, 2011 at 8:22 PM, John cyuczieekc cyuczie...@gmail.comwrote: from my experience this kind of behaviour would happen

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
shutdown and reopen of graphdb will fail since bdb wasn't itself shutdown and reopened but was left still open. Maybe closing the indexes is left to the user then? it's fine with me, just so long as I know disorganized John :) On Sat, Jul 30, 2011 at 9:06 PM, John cyuczieekc cyuczie

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
I asked before. And that logical.log.1 seems to be a part of XA Transactions and I must find a way to see that it's closed or something On Sat, Jul 30, 2011 at 10:15 PM, John cyuczieekc cyuczie...@gmail.comwrote: in TestBerkeley.java So far I've found that, bdb environment(and relevant

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
) and their bdb environment; so I do just that. Therefore I answer some parts I asked before. And that logical.log.1 seems to be a part of XA Transactions and I must find a way to see that it's closed or something On Sat, Jul 30, 2011 at 10:15 PM, John cyuczieekc cyuczie...@gmail.com wrote

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
that it's closed or something On Sat, Jul 30, 2011 at 10:15 PM, John cyuczieekc cyuczie...@gmail.com wrote: in TestBerkeley.java So far I've found that, bdb environment(and relevant databases) is(are) only closed when index.delete() is called and that can only be called when the current

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
On Sat, Jul 30, 2011 at 11:23 PM, John cyuczieekc cyuczie...@gmail.comwrote: I did a quick check of what you said org.neo4j.index.bdbje.BerkeleyDbCommand.writeToFile(LogBuffer) char[] indexName = indexId.indexName.toCharArray(); buffer.putInt( indexName.length ); buffer.put( indexName

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
(EmbeddedBatchInserter[target/var/batch]) Sat Jul 30 23:31:42 CEST 2011: Thread[main,5,main] Clean shutdown on BatchInserter(EmbeddedBatchInserter[target/var/batch]) On Sat, Jul 30, 2011 at 11:26 PM, John cyuczieekc cyuczie...@gmail.comwrote: On Sat, Jul 30, 2011 at 11:23 PM, John cyuczieekc cyuczie

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
( + this + ), true ); } we'd need a msgLog.close(storeDir) and storeDir is the same param given to the constructor of BatchInserterImpl maybe someone from neo4j could do that? meanwhile I will ignore the failure to delete that file On Sat, Jul 30, 2011 at 11:34 PM, John cyuczieekc cyuczie

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
] - But it should work, I say; maybe let me know if it doesn't On Sat, Jul 30, 2011 at 11:41 PM, John cyuczieekc cyuczie...@gmail.comwrote: org.neo4j.kernel.impl.batchinsert.BatchInserterImpl keeps StringLogger msgLog still open even after shutdown() public void shutdown

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
just that. Therefore I answer some parts I asked before. And that logical.log.1 seems to be a part of XA Transactions and I must find a way to see that it's closed or something On Sat, Jul 30, 2011 at 10:15 PM, John cyuczieekc cyuczie...@gmail.com wrote

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
if it doesn't On Sat, Jul 30, 2011 at 11:41 PM, John cyuczieekc cyuczie...@gmail.com wrote: org.neo4j.kernel.impl.batchinsert.BatchInserterImpl keeps StringLogger msgLog still open even after shutdown() public void shutdown() { graphDbService.clearCaches

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
] - But it should work, I say; maybe let me know if it doesn't On Sat, Jul 30, 2011 at 11:41 PM, John cyuczieekc cyuczie...@gmail.com wrote: org.neo4j.kernel.impl.batchinsert.BatchInserterImpl keeps StringLogger msgLog still open even after shutdown() public void

Re: [Neo4j] bdb-index

2011-07-30 Thread John cyuczieekc
at 11:41 PM, John cyuczieekc cyuczie...@gmail.com wrote: org.neo4j.kernel.impl.batchinsert.BatchInserterImpl keeps StringLogger msgLog still open even after shutdown() public void shutdown() { graphDbService.clearCaches

Re: [Neo4j] bdb-index

2011-07-31 Thread John cyuczieekc
Looking over these On Sat, Jul 30, 2011 at 1:42 PM, John cyuczieekc cyuczie...@gmail.comwrote: those got concatenated for some reason, I'll repost them here so I can see them Relatationship: To associated Node: RelId - NodeId From associated Node: NodeId - RelId RelationshipType

[Neo4j] Brainstorming on my project: neo4john

2011-07-31 Thread John cyuczieekc
Hey guys, I've been thinking that I would like to have a topic (like this current one) where I would be allowed to post anything related to brainstorming on my project which is currently a mix of neo4j and berkeleydb java edition. That is, I would like to start from scratch and explain and

Re: [Neo4j] Brainstorming on my project: neo4john

2011-07-31 Thread John cyuczieekc
Hey Niels, thanks for the concise reply. On Sun, Jul 31, 2011 at 5:10 PM, Niels Hoogeveen pd_aficion...@hotmail.comwrote: Hi John, I think when approaching a project there are two distinct issues at play, one is the tooling level, another is the actual solution you are trying to create for

Re: [Neo4j] neo4j maven config

2011-08-02 Thread John cyuczieekc
is it gone? something got updated meanwhile ? wicked O_o On Tue, Aug 2, 2011 at 7:49 AM, John cyuczieekc cyuczie...@gmail.comwrote: ok I finally fixed them all, no errors anymore the most important error was: Project configuration is not up-to-date with pom.xml. Run project configuration

Re: [Neo4j] neo4j maven config

2011-08-02 Thread John cyuczieekc
/artifactId version22/version /parent pretty much wherever I look it's parent-central, tho I didn't look everywhere/on each project am I in the twilight-zone again? On Tue, Aug 2, 2011 at 2:07 PM, John cyuczieekc cyuczie...@gmail.comwrote: Something's odd now, last time I exited eclipse

Re: [Neo4j] neo4j maven config

2011-08-02 Thread John cyuczieekc
I even installed scala plugin for eclipse, and switched from embedded mevan 3.0.3 to external.. neo4j-cypher still has errors I failed and I'm giving up... everything good byez fml On Tue, Aug 2, 2011 at 2:31 PM, John cyuczieekc cyuczie...@gmail.comwrote: mvn test [INFO] Scanning for projects