I understand and agree with you. In my case, i could use unidirectional.

Thanks Michael!
I'll have fun with neo4j now!

Best,
Diego

On 14/07/2011, at 12:30, Michael Hunger wrote:

> #1 good question that depends on your use case, i would probably switch 
> exchange the relationship, as this makes it much clearer in the domain model 
> and is faster to traverse too. The change operation itself is more expensive 
> though, but that happens just once (or never).
> 
> #2 as relationships between nodes in neo4j can be traversed in either 
> direction, you don't have to create bidirectional relationships per se, only 
> if your domain modeling makes it necessary / obvious that there are 2 
> different relationships (from me to you and from you to me) then it makes 
> sense.
> 
> Cheers
> 
> Michael
> 
> Am 14.07.2011 um 16:59 schrieb Diego Alvarez Nogueira:
> 
>> Very Nice! thanks Michael!
>> 
>> About #3 question:
>> 1- What's the best option? should i change de relationship name(knows to 
>> friend) or create a property "accepted"?
>> 2- I need to create a mutual relationship between friends?
>> 
>> thanks for you help
>> 
>> Best,
>> Diego
>> 
>> On 14/07/2011, at 11:23, Michael Hunger wrote:
>> 
>>> Hi Diego,
>>> 
>>> what is your current runtime, deployment environment?
>>> 
>>> #1 You can also use Neo4j.rb with the embedded database for direct access 
>>> without HTTP roundtrips if that suits your needs.
>>> 
>>> You can have either two copies of your neo4j servers running on different 
>>> ports, or you can modify the startup script to take a "store-location" 
>>> parameter (instead of pulling it out of the neo4j-server.properties file).
>>> 
>>> #2 I wrote a server addon that you can deploy to your dev-server to clean 
>>> the db with a single rest-request:
>>> https://github.com/jexp/neo4j-clean-remote-db-addon
>>> 
>>> We're also currently working on a way to deploy server-side ruby code (e.g. 
>>> sinatra or rails apps) into a running neo4j server. So that you can use 
>>> neo4j.rb there for direct access and expose your domain specific REST 
>>> endpoints to your "frontend"-webapp (which just does REST requests to your 
>>> specific endpoints, talking your domain protocol and not nodes + 
>>> relationships).
>>> 
>>> If you're interested in that just ping me.
>>> 
>>> #3 You could create preliminary relationships between people of the type 
>>> "knows", which on acceptance is replaced by a relationship with the type 
>>> "friend". 
>>> This could be also be done with a boolean property ("accepted")on the 
>>> relationship.
>>> 
>>> #4 yes  likes are relationships between users and things/users. For tags it 
>>> depends what you want to do with those and how dynamic those should be. You 
>>> can create tag nodes and link them to the things that have been tagged, 
>>> which makes it easy to traverse them for retrieval or recommendations (of 
>>> users or things to know). If it is just a simple categorization, you might 
>>> just index the tags + id's of tagged things.
>>> 
>>> #5 good question probably redis.
>>> 
>>> Cheers
>>> 
>>> Michael
>>> 
>>> 
>>> Am 14.07.2011 um 15:56 schrieb Diego Alvarez Nogueira:
>>> 
>>>> Hi,
>>>> I'm new in NoSql, specifically graphs databases.
>>>> Today, i have a social network using ruby on rails and mysql, but i need 
>>>> to scale and improve the performance of them.
>>>> So, I have studied a lot during this month about NoSql and i'm really 
>>>> excited to use it. 
>>>> 
>>>> I've thought in migrate my application to:
>>>> Ruby on rails: Using neography gem
>>>> MongoDB: To store users, groups, comments, posts, internal messages;
>>>> Neo4j: To store all the relationships, like, friendships, participations, 
>>>> likes, reputations, recommendations and tags.
>>>> Redis: Cache
>>>> 
>>>> I have some doubts, anyone can help me?
>>>> 
>>>> 1- How can i work with neo4j in development and test environment(unit 
>>>> tests)? Do i have to have two neo4j-server folders and start separetely?
>>>> 2- How can i clean all database each test?
>>>> 3- What's the best way to work with friendships that depends of acceptance?
>>>> 4- Neo4j is the best database to store tags and likes?
>>>> 5- What's the best database to store statistics and feeds?
>>>> 
>>>> Thanks!
>>>> 
>>>> Best,
>>>> Diego Nogueira
>>>> 
>>>> 
>>>> --
>>>> Atenciosamente,
>>>> 
>>>> Diego Alvarez Nogueira
>>>> Blog: http://diegonogueira.com.br | http://papoinformal.com
>>>> Skype: nogueiradiego
>>>> Twitter: @nogueiradiego
>>>> 
>>>> _______________________________________________
>>>> Neo4j mailing list
>>>> User@lists.neo4j.org
>>>> https://lists.neo4j.org/mailman/listinfo/user
>>> 
>>> _______________________________________________
>>> Neo4j mailing list
>>> User@lists.neo4j.org
>>> https://lists.neo4j.org/mailman/listinfo/user
>> 
>> 
>> 
>> --
>> Atenciosamente,
>> 
>> Diego Alvarez Nogueira
>> Blog: http://diegonogueira.com.br | http://papoinformal.com
>> Skype: nogueiradiego
>> Twitter: @nogueiradiego
>> 
>> _______________________________________________
>> Neo4j mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
> 
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user



--
Atenciosamente,

Diego Alvarez Nogueira
Blog: http://diegonogueira.com.br | http://papoinformal.com
Skype: nogueiradiego
Twitter: @nogueiradiego

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to