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
: 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
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
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
/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
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
, 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
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
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
) 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
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
*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
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
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
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
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
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
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
: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
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
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
/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
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
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
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
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
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
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
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,
)
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
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
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;
(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
()
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
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
)
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
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
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
) 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
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
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
(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
( + 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
] -
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
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
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
] -
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
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
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
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
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
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
/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
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
54 matches
Mail list logo