Hi !

I just run into a problem I don't understand at all.
The scenario is actually quite simple, basically it consists of a simple
node retrieving through a relationship:

1. - There is a node (Protein self-interactions node) which is linked to the
reference node by means of one
      relationship (Protein self-interactions relationship). This is the
piece of code for the node creation/linkage

     public static ProteinSelfInteractionsRel proteinSelfInteractionsRel =
new ProteinSelfInteractionsRel(null);
    ...

proteinSelfInteractionsProperties.put(ProteinSelfInteractionsNode.NODE_TYPE_PROPERTY,
ProteinSelfInteractionsNode.NODE_TYPE);
    long proteinSelfInteractionsNodeId =
inserter.createNode(proteinSelfInteractionsProperties);
    inserter.createRelationship(inserter.getReferenceNode(),
proteinSelfInteractionsNodeId,
    proteinSelfInteractionsRel, null);

You can check the real code for this file
here<https://github.com/pablopareja/Bio4j/blob/master/src/com/era7/bioinfo/bio4j/programs/InitBio4jDB.java>.
(line 157)

2.-  Later on when I try to get the id of that node:

      Iterable<Relationship> iterable =
manager.getReferenceNode().getRelationships(new
ProteinSelfInteractionsRel(null),Direction.OUTGOING);
      logger.log(Level.INFO,"getting node....");
      long proteinSelfInteractionsNodeId =
iterable.iterator().next().getEndNode().getId();
      logger.log(Level.INFO,"done!");

      (You can also check the code for this here
<https://github.com/pablopareja/Bio4j/blob/master/src/com/era7/bioinfo/bio4j/programs/ImportProteinInteractions.java>(line
117)

      It just gets stuck forever after "getting node...."

There's no exception thrown and the program just seems to freeze forever
(I've already been waiting for more than 1h with no success)

Do you have any ideas of what could be going on??

I really have no clue of what could I be doing wrong...
In case it may be useful, the size of the DB at this point is around
46.000.000 nodes and 380.000.000 relationships (only a dozen or so
coming/going to
the reference node)

Thanks in advance,


Pablo

-- 
Pablo Pareja Tobes
LinkedIn    http://www.linkedin.com/in/pabloparejatobes
Twitter       http://www.twitter.com/pablopareja

http://about.me/pablopareja
http://www.ohnosequences.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to