Onur, add a property to each node to hold the surragate key from your  
RDBMS...

Dan

On 14 Aug 2009, at 15:30, Onur AKTAS <onur.ak...@live.com> wrote:

>
> Thank you for your response. I'm trying to understand the main  
> concept, please correct me if I am wrong.
>
> For example, there are many users of an application and each  
> represented as "Node".  And each User has a "UserId" in RDBMS. I  
> have checked "Node" class and saw that there is a method called as "  
> getId() " but I could not see "setId()" for mapping the User in the  
> RDBMS to neo4j.
>
> Sample data: (UserId / Friends Ids)
> 1 - [2, 4]
> 2 - [1, 3]
> 3 - [10]
> 4 - [1, 3, 5]
> 5 - [3]
>
> And I need to query " What are the all shortest paths from 1 to 10  
> for max length 4 "
> And results should be,
>
> 1 -> 2 -> 3 -> 10
> 1 -> 4 -> 3 -> 10
> * 1 -> 4 -> 5 -> 3 -> 10 (It will not be shown because it exceeds  
> the length 4).
>
> You mean that it can be handled with neo4j, but how can I map each  
> User in RDBMS, to Nodes by their original Ids?
>
> Thanks.
>
>
>
>> From: neubauer.pe...@gmail.com
>> Date: Wed, 5 Aug 2009 11:16:15 +0200
>> To: user@lists.neo4j.org
>> Subject: Re: [Neo] neo4j Beginner Question
>>
>> Hi Onur
>>
>> 2009/8/4 Onur AKTAS <onur.ak...@live.com>:
>>> Calculating,"friends of friends", 3rd degree contacts or 4th  
>>> degree etc. is not a good idea with RDBMS. In short words, neo4j  
>>> fits perfectly for these kinds of jobs?
>> yes, that is the kind of problems Neo4j and Graph Databases are  
>> trying
>> to solve in general. Semi-structured data, havy use of relational
>> information between information entities and complex analysis of high
>> depth fast are some of the common use cases for using a graph
>> database.
>>
>>> Do we have a chance to scale neo4j by adding nodes, does it  
>>> support distributed processing? Also, can we delete any node in  
>>> the graph when we need to delete user or we must create the entire  
>>> graph again when we need any updates? Do graph objects have id's  
>>> that helps us to find the node quickly?
>>
>> Neo4j atm does not support distributed processing or partitioning the
>> graph. There is high-availability and online-backup being worked on
>> which feels more acute since Neo4j on a single instance scales over 1
>> Billion primitives, which should be enough for most immediate
>> scenarios.
>> But there are of course ways to achieve a custom partitioning using
>> targeted techniques - but that depends on your use case ...
>>
>> HTH
>>
>> /peter
>> _______________________________________________
>> Neo mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>
> _________________________________________________________________
> Anılarınızı istediğiniz herkesle çevrimiçi paylaşın.
> http://www.microsoft.com/turkiye/windows/windowslive/products/photos-share.aspx?tab=1
> _______________________________________________
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to