Re: [Neo4j] how to get the User who has been B Followed who has Followed Back.

2011-09-21 Thread Andres Taylor
Hi there, Answers inline. On Wed, Sep 21, 2011 at 4:49 AM, iamyuanlong yuanlong1...@gmail.com wrote: hi Peter, This can get the result.But if I want to contain B's Friends too.Should I use this? http://neo4j-community-discussions.438527.n3.nabble.com/file/n3354221/follow%26friend.jpg

Re: [Neo4j] Creating a graph database with BatchInserter and getting the node degree of every node

2011-09-21 Thread st3ven
Unfortunately the SSD is not an option, because I would need a SSD with around 150GB as my database is 140GB big. Yesterday I already tried to configure Neo4j to use more memory for mapping, but it seems that Neo4j does't allocate the whole memory I configured. I noticed that my system just uses

Re: [Neo4j] Creating a graph database with BatchInserter and getting the node degree of every node

2011-09-21 Thread st3ven
Hi Linan, I just tried it with the outgoing relationships, but unfortunately that didn't speed things up. The size of my db is around 140GB and so it is not possible for me to dumb the full directory into a ramfs. My files on the hard disk have the following size: neostore.nodestore.db = 31MB

Re: [Neo4j] Querying multivalued properties

2011-09-21 Thread Peter Neubauer
Alexandre, this I think is a Lucene question, maybe something like http://lucene.472066.n3.nabble.com/Searching-a-group-of-associated-multi-value-fileds-td2789957.html could help? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn  

Re: [Neo4j] Design help for G+ like app

2011-09-21 Thread Peter Neubauer
Antoine, the design sounds good from the initial in-the-head look. The only thing I see is the modeling of groups. I would imagine something like http://yuml.me/diagram/scruffy/class/[user1]-circle%3E[friendsU1],[user2]-partOf%3E[friendsU1],[user1]-circle%3E[jobU1],[user2]-partOf%3E[jobU1] where

Re: [Neo4j] Creating a graph database with BatchInserter and getting the node degree of every node

2011-09-21 Thread Linan Wang
Hi stephan, I mis-calculated the size of relationshipstore.db. i thought it was around 8G instead of 85G. the only option left i think is to build index. something like this: idx = db.index().forNode(knows); idx.add(thisguy, knows, thatguy.getId()); idx.add(thatguy, known_by, thisguy.getId()); the

Re: [Neo4j] List all indexed key/values for an entity

2011-09-21 Thread Peter Neubauer
Josh, very reasonable request. Could you please put that into an issue? I suspect this is in line with better auto indexing support, I am not sure how much of it there already is, so let's keep track of it in the issue. Thanks! /peter neubauer GTalk:      neubauer.peter Skype      

Re: [Neo4j] REST API Base URI

2011-09-21 Thread Peter Neubauer
Nuo, right now the server is discovering its own IP upon startup. However, it sounds reasonable to return configurable base URL. I am just wondering if that really is enough to support a LB scenario? Do you need more stuff there? Cheers, /peter neubauer GTalk:      neubauer.peter Skype      

Re: [Neo4j] Creating a graph database with BatchInserter and getting the node degree of every node

2011-09-21 Thread Johan Svensson
Hi Stephan, You could try lower the heap size to -Xmx2G and cache_type=weak with 10G memory mapped for relationships. The machine only has 16G RAM and will not be able to process such a large dataset at in-memory speeds. Another option is to calculate degree at insertion time and store it as a

Re: [Neo4j] List all indexed key/values for an entity

2011-09-21 Thread jadell
Done. http://github.com/neo4j/community/issues/26 Thanks! -- Josh -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/List-all-indexed-key-values-for-an-entity-tp3348997p3355537.html Sent from the Neo4j Community Discussions mailing list archive at

Re: [Neo4j] Design help for G+ like app

2011-09-21 Thread Antoine Pouch
Thanks for the reply Peter. So no direct user-to-user relationship, and each user has a group/circle called AllMyFriends. Makes sense. Regarding the timeline index(es), should I make a huge one in Lucene with all of users posts and properties associating them to users and circles or is it better

Re: [Neo4j] Design help for G+ like app

2011-09-21 Thread Rick Bullotta
If you really think your application will grow large, you might want to design your own sharding scheme across multiple servers for the posts, which will represent your largest # of nodes and properties. You can look at some of the QCon presentations from the Twitter team as to how they've

Re: [Neo4j] neo4j-scala improvements

2011-09-21 Thread Christopher Schmidt
Hi all I did... - Split it up to Neo4j Scala, which is mainly the old available neo4j-scala version. A little refactored and enhanced with Case Class to Node properties marshaling and some Traits for graph service provider handling (- https://github.com/FaKod/neo4j-scala) - Neo4j Spatial Scala

[Neo4j] How to backup with neo4j community?

2011-09-21 Thread Rugal
Hi, I'm starting a little side project in a startup which will use neo4j. How can I set the server to backup the data without stopping the neo4j server and without going with the enterprise version? as mush as I'd like to, but really, 2000 usd/month are too much for a bootstrapping startup (I

Re: [Neo4j] How to backup with neo4j community?

2011-09-21 Thread McKinley
This came up recently on the list in August http://neo4j.org/forums/#nabble-td3274919. The last message in the thread has contact info and sounds like there is room for hearing your specific requirements. Cheers, McKinley On Wed, Sep 21, 2011 at 8:03 AM, Rugal ru...@email.it wrote: Hi, I'm

Re: [Neo4j] How to backup with neo4j community?

2011-09-21 Thread Rick Bullotta
If on Linux, you could use DRBD, I suppose. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of McKinley Sent: Wednesday, September 21, 2011 11:21 AM To: Neo4j user discussions Subject: Re: [Neo4j] How to backup with neo4j community?

Re: [Neo4j] REST API Base URI

2011-09-21 Thread Nuo Yan
For my scenario, I currently only use the LB for request authentication, so that not everyone on the network can access the neo4j server. In my use case, I think making the base uri configurable (including the protocol, e.g. https://foobar.com/) is enough. There are a couple other approaches that

[Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-21 Thread st.pa
Hi, I've got a Cypher query with some 10k possible source nodes and some 10k intended target nodes out of some 1M possible target nodes which looks something like the following: START source = (indexSourceNodes,*), target = (indexTargetNodes,propertyTwo:*.txt) MATCH

Re: [Neo4j] REST API Base URI

2011-09-21 Thread Peter Neubauer
Nuo, Thomas Baum has been working on an authentication extension for Neo4j Server, see https://github.com/neo4j/authentication-extension. He could help you set it up and test it - it's used in hosting scenarios and should do what you want in terms of limiting access to certain URIs if that is what

Re: [Neo4j] REST API Base URI

2011-09-21 Thread Peter Neubauer
you can see the usage with an embedded Neo4j Server instance in the test at https://github.com/neo4j/authentication-extension/blob/master/src/test/java/org/neo4j/server/extension/auth/TestAuthentification.java HTH Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer

[Neo4j] neo4jphp and some cypher question

2011-09-21 Thread Filip De Haes
Hi all, I've got a question about a cypher query. $queryText = START n=(1) match a--n WHERE a.Gemeente return a; This query returns the two locations (Gemeente) I have entered as a property of our buildings in the database. Hundred other buildings don't have that property yet. So far so

Re: [Neo4j] REST API Base URI

2011-09-21 Thread Nuo Yan
Limiting access to certain URIs or IPs is great, but ideally at this moment I also need something like a key-based authentication so I can send a private key in the headers from my restclient and neo4j would authenticate and only take authenticated requests. Does the authentication extension

Re: [Neo4j] neo4jphp and some cypher question

2011-09-21 Thread Peter Neubauer
Filip, yes, the where clause right now is filtering on the results of the MATCH clauses results. As such, if the property is not on the node, it will not be found, but you can of course use it is a starting lookup query. However, I think Andres is working towards being able to detect that

Re: [Neo4j] Querying multivalued properties

2011-09-21 Thread Alexandre de Assis Bento Lima
Got it! Thx! Cheers, Alexandre. On Wed, 21 Sep 2011 13:27:07 +, Peter Neubauer wrote Alexandre, this I think is a Lucene question, maybe something like http://lucene.472066.n3.nabble.com/Searching-a-group-of-associated-multi-value- fileds-td2789957.html could help? Cheers, /peter

Re: [Neo4j] neo4jphp and some cypher question

2011-09-21 Thread Michael Hunger
Could you execute the query in the cypher console? Could you also try to pass in the value Antwerpen as a literal to check? START n=(1) match a--n WHERE a.name= 'Antwerpen' RETURN a // try to add the order by after the query suceeded, might be that you have to use a.name? for that ORDER by

Re: [Neo4j] List all indexed key/values for an entity

2011-09-21 Thread Tim McNamara
+1 But the plural of index is indices. On 22/09/2011 1:56 AM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Josh, very reasonable request. Could you please put that into an issue? I suspect this is in line with better auto indexing support, I am not sure how much of it there already

[Neo4j] Error in performance docs - Stack Size

2011-09-21 Thread Romiko Derbynew
Hi Guys, I think there is an error in the performance docs. I am currently tuning the stack size as we use multiple threads, however, I see this in the docs: ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Error in performance docs - Stack Size

2011-09-21 Thread Romiko Derbynew
Sorry, clicked wrong button: http://wiki.neo4j.org/content/Configuration_Settings The stack size is set by specifying the -Xss???m parameter to hotspot, where ??? is the stack size in megabytes. As far as I am aware, according to this document:

Re: [Neo4j] Error in performance docs - Stack Size

2011-09-21 Thread Linan Wang
k/m/g all work. just tried on 1.6. On Thu, Sep 22, 2011 at 2:22 AM, Romiko Derbynew romiko.derby...@readify.net wrote: Sorry, clicked wrong button: http://wiki.neo4j.org/content/Configuration_Settings The stack size is set by specifying the -Xss???m parameter to hotspot, where ??? is the

[Neo4j] Turning Off or Configuring log rotation

2011-09-21 Thread Romiko Derbynew
Hi, I am using Neo4j on a Windows Server, is there any way I can configure log rotation via the configuration files? I would like to turn it off or try a different log rotation size. Since I am on windows, I am not sure how I would do it at runtime. Thanks!

Re: [Neo4j] Error in performance docs - Stack Size

2011-09-21 Thread Romiko Derbynew
AAh, excellent, thank for that, I guess stack sizes should be in the 1024k range though not 1024m on 64 bit machines? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Linan Wang Sent: Thursday, 22 September 2011 11:37 AM To: Neo4j

Re: [Neo4j] List all indexed key/values for an entity

2011-09-21 Thread jadell
OED and Merriam Webster both say it can be either: http://www.merriam-webster.com/dictionary/index I have no technical reasoning one way or the other which it should be called. (A quick search shows that indices is slightly more favored in maths and science, while indexes is the more common

[Neo4j] Unrolled Linked List

2011-09-21 Thread Bryce
Hi all, I have added an in graph representation of an unrolled linked list to the graph collections code, currently just in my githug repo: https://github.com/brycenz/graph-collections See this in particular: