Re: [Neo4j] Graph database index | query across indices

2011-08-10 Thread Rick Bullotta
or of course you could just put it all in one index.

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Mattias Persson
Sent: Wednesday, August 10, 2011 3:31 PM
To: Neo4j user discussions
Subject: Re: [Neo4j] Graph database index | query across indices

Compound query between two indices isn't possible, but you could just query
both and intersect the node set with the end or start node set from the
relationships.

2011/7/27 sambodhi sagi 

> Hi !
>
> I am facing some problem with indexing. My graph looks like this:
>
>
>
>
> Say, I want to query products for a particular category (say 'Phone,Mobiles
> and telecoms') AND having text 'attractive' in 'details' field. I created
> two indices: one for Relationship 'RelProductIndex' and one for product
> 'ProductIndex'. Algo for what I exactly want to achieve :
>
> typeHits = relProdctIndex.query( "type:Product", phoneAndTelecomCatNode,
> null );
> for each typeHits {
>  productsInCatList.add(typeHits.getEndNode());
> }
>
> productsTextSearchHits = productIndex.query("details", "attractive");
>
> resultantProducts =  common set between productsInCatList and
> productsTextSearchHits
>
> My query is something like this
>
> QUERY-1 AND QUERY-2
>
> QUERY-1 : EndNodes (say end node is a product) of a relationship of type
> 'Product' (this query is for RelProductIndex)
> QUERY-2 : products which has text 'mobile' (this query is for
> ProductsIndex)
>
> So basically what it requires is *compound query across two indices*.
> Normally we donot do compound queries across indices but am not sure how to
> handle this.* One solution* I can think of is to add 'details' property to
> the relationship Product also. In this case I can use only relationship
> index:
>
> typeHits = relProdctIndex.query( "type:Product AND details:attractive",
> phoneAndTelecomCatNode, null );
>
> Problem I see with this approach is, I would end up indexing same field(or
> key) in two different indices (Product node and Product relationship). This
> might hit the performance.* Can there be a better approach to handle this?*
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
___
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


Re: [Neo4j] Graph database index | query across indices

2011-08-10 Thread Mattias Persson
Compound query between two indices isn't possible, but you could just query
both and intersect the node set with the end or start node set from the
relationships.

2011/7/27 sambodhi sagi 

> Hi !
>
> I am facing some problem with indexing. My graph looks like this:
>
>
>
>
> Say, I want to query products for a particular category (say 'Phone,Mobiles
> and telecoms') AND having text 'attractive' in 'details' field. I created
> two indices: one for Relationship 'RelProductIndex' and one for product
> 'ProductIndex'. Algo for what I exactly want to achieve :
>
> typeHits = relProdctIndex.query( "type:Product", phoneAndTelecomCatNode,
> null );
> for each typeHits {
>  productsInCatList.add(typeHits.getEndNode());
> }
>
> productsTextSearchHits = productIndex.query("details", "attractive");
>
> resultantProducts =  common set between productsInCatList and
> productsTextSearchHits
>
> My query is something like this
>
> QUERY-1 AND QUERY-2
>
> QUERY-1 : EndNodes (say end node is a product) of a relationship of type
> 'Product' (this query is for RelProductIndex)
> QUERY-2 : products which has text 'mobile' (this query is for
> ProductsIndex)
>
> So basically what it requires is *compound query across two indices*.
> Normally we donot do compound queries across indices but am not sure how to
> handle this.* One solution* I can think of is to add 'details' property to
> the relationship Product also. In this case I can use only relationship
> index:
>
> typeHits = relProdctIndex.query( "type:Product AND details:attractive",
> phoneAndTelecomCatNode, null );
>
> Problem I see with this approach is, I would end up indexing same field(or
> key) in two different indices (Product node and Product relationship). This
> might hit the performance.* Can there be a better approach to handle this?*
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] nested transactions "feature" ?

2011-08-10 Thread Mattias Persson
To answer 1) it was initially designed that way because there are typically
multiple failure scenarios, points where you'd like to abort/rollback your
transaction. And quite often you've only got one point where you say that a
transaction is successful. So going for the most natural way of saying that
a transaction should be rolled back... that being throwing an exception,
you'd have to remember to call tx.failure() for all failure points instead
of calling tx.success() for that one success point. That's why it is like
that.

2011/7/27 John cyuczieekc 

> thanks for that, the github help was most helpful
> Meanwhile I realized why calling failure() on the child transaction flags
> the root as failed, mainly because the child transaction cannot be reused
> and thus we cannot know if it was retried or not, this being the difference
> between child transactions that failed and child transactions that failed
> but were retried and the retry was successful; this explains `point 2)` and
> thus I agree with the current implementation... I am trying to emulate
> nested transactions with this possibility of reusing a failed child
> transaction such that the parent/root one doesn't need to be flagged as
> failed , but doing it with bdb not neo4j...
>
> However `point 1)` still remains unaddressed (though I didn't update from
> github yet to see if it was fixed, or I simply don't understand it right)
>
>
> On Sun, Jul 24, 2011 at 4:10 PM, Peter Neubauer <
> peter.neuba...@neotechnology.com> wrote:
>
> > Thanks John for the details!
> >
> > As for the GIThub workflow:
> >
> > http://www.eqqon.com/index.php/Collaborative_Github_Workflow
> >
> > and http://help.github.com/
> >
> > are good starting points!
> >
> > Cheers,
> >
> > /peter neubauer
> >
> > GTalk:  neubauer.peter
> > Skype   peter.neubauer
> > Phone   +46 704 106975
> > LinkedIn   http://www.linkedin.com/in/neubauer
> > Twitter  http://twitter.com/peterneubauer
> >
> > http://www.neo4j.org   - Your high performance graph
> database.
> > http://startupbootcamp.org/- Öresund - Innovation happens HERE.
> > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
> >
> >
> >
> > On Sun, Jul 24, 2011 at 3:54 PM, John cyuczieekc 
> > 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 clearly ? or something
> > > related to code instead? but if code, to do what?
> > >
> > > I understand that they are using the topmost transaction now, *1)* but
> > what
> > > I would potentially expect from the nested transaction (semantics) is
> to
> > > either default to fail(?) or have it stated in the docs that it
> defaults
> > to
> > > success even if success() isn't invoked (when finish() is reached),
> which
> > is
> > > opposite than the parent root transaction which defaults to fail if
> > > success() isn't invoked.
> > >  *2)* But also another issue with this, is that if the nested
> transaction
> > > called fail() - and this may explain why it doesn't default to fail() -
> > then
> > > the parent transaction's state is fail() and can never be changed to
> > > success() again. I might want to potentially be using a nested
> > transaction
> > > which could fail and even throw exception(which I would handle and
> > possibly
> > > redo that nested transaction from the beginning) but I wouldn't want
> the
> > > parent transaction to fail because of that, especially since I managed
> to
> > > handle the failed nested transaction by eventually creating a new one
> > which
> > > success-ed. In other words, if any nested fails, the entire tree chain
> of
> > > transactions must be aborted (that's how it is now).
> > >
> > >  Would definitely be a great idea to state these in the (java)docs.
> > Thanks!
> > >
> > > About the fork and pull request, I'd have to learn what they do and how
> > to
> > > use them, ... in general I get the idea of what you're saying, I could
> > code
> > > some modifs and you could check them out and if agreed upon you could
> add
> > > them to neo4j - or something, that's what I understand from that, but
> > > nothing about the details yet, must read...
> > >
> > > On Sun, Jul 24, 2011 at 3:25 PM, Peter Neubauer <
> > > peter.neuba...@neotechnology.com> wrote:
> > >
> > >> Hi there,
> > >> yes, nested transactions are really using the most topmost transaction
> > >> for control, so your assessment if the commit semantics is right (I
> > >> think). Talked to Tobias about this, and maybe we could state this
> > >> more clearly in the docs. Got any good working we could change to?
> > >> Feel free to fork and send a pull request!
> > >>
> > >> Cheers,
> > >>
> > >> /peter neubauer
> > >>
> > >> GTalk:  neubauer.peter
> > >> Skype   peter.neubauer
> > >> Phone   +46 704 106975
> > >> LinkedIn   http://www.linkedin.com/in/neubauer
> >

Re: [Neo4j] Traverse Order By

2011-08-10 Thread Michael Hunger
Peter perhaps you could update the docs of ServerPlugin to reflect that and 
perhaps show an example from one of the two plugins ?

Cheers

Michael

Am 10.08.2011 um 16:02 schrieb Peter Neubauer:

> Also,
> That is true officially, but un practice you can return any valid
> representation. Look at the Cypher plugin dir return types other than nodes
> etc.
> 
> Also, you can use an unmanaged extension for full control over both url and
> return format.
> 
> /peter
> 
> Sent from my phone.
> On Aug 10, 2011 2:16 PM, "Igor Dovgiy"  wrote:
>> If you can cope with some limitations of Neo4j official plugin system (the
>> biggest thing for me is a bit limited choice of responce options: it can
> be
>> either collection of Nodes, or Relationships, or Pathes data, packed with
>> JSON), may I suggest using it instead. )
>> 
>> In this case your DB works in server mode, and you can happily bombard it
>> with many queries from many clients' instances via standard REST API,
>> expanded with your plugin.
>> 
>> And yes, we're using this kind of architecture, and kinda like it. )
>> 
>> --
>> -- iD
>> 
>> On 10 August 2011 13:10, sometime  wrote:
>> 
>>> I wrote this plugin. Everything works as it should (on local).
>>> I put this plugin (as web-application) on a server that is running neo4j.
>>> In
>>> order to receive the data - I'll do a GET-request to that
> web-applications.
>>> In web applications to initialize neo4j I use
>>> 
>>> GraphDatabaseService graphDb = new EmbeddedGraphDatabase
>>> ("/path_to_neo4j/data/graph.db");
>>> 
>>> When i do GET-request - I get an error
>>> 
>>> Unable to lock store [/path_to_neo4j/graph.db/neostore], this is usually
> a
>>> result of some other Neo4j kernel running using the same store.
>>> 
>>> I understand that the application needs to lock the entire database to
> make
>>> the traverse a request for it. But the base operates in real time and the
>>> application should not block the base.
>>> Maybe somehow I can make request to the application by URL? Or some way I
>>> can make request to traverse the base without locking?
>>> 
>>> --
>>> View this message in context:
>>> 
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242058.html
>>> Sent from the Neo4j Community Discussions mailing list archive at
>>> Nabble.com.
>>> ___
>>> 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
> ___
> 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


Re: [Neo4j] Traverse Order By

2011-08-10 Thread Peter Neubauer
Also,
That is true officially, but un practice you can return any valid
representation. Look at the Cypher plugin dir return types other than nodes
etc.

Also, you can use an unmanaged extension for full control over both url and
return format.

/peter

Sent from my phone.
On Aug 10, 2011 2:16 PM, "Igor Dovgiy"  wrote:
> If you can cope with some limitations of Neo4j official plugin system (the
> biggest thing for me is a bit limited choice of responce options: it can
be
> either collection of Nodes, or Relationships, or Pathes data, packed with
> JSON), may I suggest using it instead. )
>
> In this case your DB works in server mode, and you can happily bombard it
> with many queries from many clients' instances via standard REST API,
> expanded with your plugin.
>
> And yes, we're using this kind of architecture, and kinda like it. )
>
> --
> -- iD
>
> On 10 August 2011 13:10, sometime  wrote:
>
>> I wrote this plugin. Everything works as it should (on local).
>> I put this plugin (as web-application) on a server that is running neo4j.
>> In
>> order to receive the data - I'll do a GET-request to that
web-applications.
>> In web applications to initialize neo4j I use
>>
>> GraphDatabaseService graphDb = new EmbeddedGraphDatabase
>> ("/path_to_neo4j/data/graph.db");
>>
>> When i do GET-request - I get an error
>>
>> Unable to lock store [/path_to_neo4j/graph.db/neostore], this is usually
a
>> result of some other Neo4j kernel running using the same store.
>>
>> I understand that the application needs to lock the entire database to
make
>> the traverse a request for it. But the base operates in real time and the
>> application should not block the base.
>> Maybe somehow I can make request to the application by URL? Or some way I
>> can make request to traverse the base without locking?
>>
>> --
>> View this message in context:
>>
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242058.html
>> Sent from the Neo4j Community Discussions mailing list archive at
>> Nabble.com.
>> ___
>> 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
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] length of property names

2011-08-10 Thread Niels Hoogeveen

Thanks Mattias
> Date: Wed, 10 Aug 2011 15:25:24 +0200
> From: matt...@neotechnology.com
> To: user@lists.neo4j.org
> Subject: Re: [Neo4j] length of property names
> 
> No, none whatsoever (if you don't count the potentially slightly longer
> for-loop in String#equals which maps from String to internal ID (integer)
> used in Neo4j).
> 
> 2011/8/10 Niels Hoogeveen 
> 
> >
> > I find myself using some pretty long property names, like
> > "org.neo4j.collections.graphdb.node_id" and wonder if this has an impact on
> > performance.
> > Niels
> >
> > From: pd_aficion...@hotmail.com
> > To: user@lists.neo4j.org
> > Subject: length of property names
> > Date: Mon, 8 Aug 2011 15:44:20 +0200
> >
> >
> >
> >
> >
> >
> >
> >
> > Quick question: what is the performance impact of the length of a property
> > name?
> > Niels
> > ___
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> 
> 
> 
> -- 
> Mattias Persson, [matt...@neotechnology.com]
> Hacker, Neo Technology
> www.neotechnology.com
> ___
> 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


[Neo4j] Optimal Seating plan problem

2011-08-10 Thread David Gildea
Hi All, 

I have an interesting problem I am trying to solve and would like some 
direction on how I could solve it using Neo4j.

I work in a large building where the teams of developers are all over the 
places and we would like to keep teams together. So I would like to solve 
2 problems hopefully at the same time. Assuming a have a Neo4j database of 
all employees, the reporting relationships and who the work with and also 
the seating location as a property I would like to calculate
The optimal seating plan that would have all team co-located and beside 
their manager and 
Doing that with the least amount of moves for the computer department that 
actually need to the physical computers and phones etc.

Is this that kind of problem that Neo4j could help solve, I think yes 
based on a basic knowledge of graph databases, but perhaps someone could 
give me some guidance on the suitability of Neo4j and a possible solution.

Thanks

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


Re: [Neo4j] length of property names

2011-08-10 Thread Mattias Persson
No, none whatsoever (if you don't count the potentially slightly longer
for-loop in String#equals which maps from String to internal ID (integer)
used in Neo4j).

2011/8/10 Niels Hoogeveen 

>
> I find myself using some pretty long property names, like
> "org.neo4j.collections.graphdb.node_id" and wonder if this has an impact on
> performance.
> Niels
>
> From: pd_aficion...@hotmail.com
> To: user@lists.neo4j.org
> Subject: length of property names
> Date: Mon, 8 Aug 2011 15:44:20 +0200
>
>
>
>
>
>
>
>
> Quick question: what is the performance impact of the length of a property
> name?
> Niels
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Traverse Order By

2011-08-10 Thread Michael Hunger
Yes you are able to do that:

* if you are running in a neo4j-server you have to access the database via the 
GraphDatabaseService instance that is provided from the server (because the 
server _owns_ it)
   * that's why inside a neo4j-rest server you have to get access to that 
instance, and that's why you have to participate in the server infrastructure 
by providing a ServerPlugin or Unmanaged Extension

* if you are running standalone you _own_ the single GraphDatabaseService 
instance
* EmbeddedReadOnlyDatabase only shows a snapshot

Michael

Am 10.08.2011 um 15:06 schrieb sometime:

> I do not understand.
> I have data in the database is always changing (added, removed), and because
> of that my web-application needs to return different data.
> I will be able to receive relevant information from the database Neo4?
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242487.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> ___
> 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


Re: [Neo4j] length of property names

2011-08-10 Thread Niels Hoogeveen

I find myself using some pretty long property names, like 
"org.neo4j.collections.graphdb.node_id" and wonder if this has an impact on 
performance.
Niels

From: pd_aficion...@hotmail.com
To: user@lists.neo4j.org
Subject: length of property names
Date: Mon, 8 Aug 2011 15:44:20 +0200








Quick question: what is the performance impact of the length of a property 
name? 
Niels   
  
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Traverse Order By

2011-08-10 Thread sometime
I do not understand.
I have data in the database is always changing (added, removed), and because
of that my web-application needs to return different data.
I will be able to receive relevant information from the database Neo4?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242487.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Traverse Order By

2011-08-10 Thread Michael Hunger
Not really, as this gives you only a snapshot from the time of the creation, no 
updates.

Was discussed several times on the mailing list.

Cheers

Michael

Am 10.08.2011 um 14:45 schrieb sometime:

> I found the solution.
> Initialization should be done like this:
> 
> GraphDatabaseService graphDb = new
> EmbeddedReadOnlyGraphDatabase("/home/sometime/neo4j/data/graph.db");
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242431.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> ___
> 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


Re: [Neo4j] Traverse Order By

2011-08-10 Thread sometime
I found the solution.
Initialization should be done like this:

GraphDatabaseService graphDb = new
EmbeddedReadOnlyGraphDatabase("/home/sometime/neo4j/data/graph.db");

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242431.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Traverse Order By

2011-08-10 Thread Michael Hunger
The probleme here is that there is already a running database instance (that 
serves the rest-request and everything else).

If you put your code into a ServerPlugin or UnmanagedExtension you can in both 
cases get an instance of
that GraphDatabaseService passed into your method that you then just use.

Here are some examples:
http://docs.neo4j.org/chunked/snapshot/server-plugins.html
http://docs.neo4j.org/chunked/snapshot/server-unmanaged-extensions.html

Cheers

Michael

Am 10.08.2011 um 14:16 schrieb Igor Dovgiy:

> If you can cope with some limitations of Neo4j official plugin system (the
> biggest thing for me is a bit limited choice of responce options: it can be
> either collection of Nodes, or Relationships, or Pathes data, packed with
> JSON), may I suggest using it instead. )
> 
> In this case your DB works in server mode, and you can happily bombard it
> with many queries from many clients' instances via standard REST API,
> expanded with your plugin.
> 
> And yes, we're using this kind of architecture, and kinda like it. )
> 
> -- 
> -- iD
> 
> On 10 August 2011 13:10, sometime  wrote:
> 
>> I wrote this plugin. Everything works as it should (on local).
>> I put this plugin (as web-application) on a server that is running neo4j.
>> In
>> order to receive the data - I'll do a GET-request to that web-applications.
>> In web applications to initialize neo4j I use
>> 
>> GraphDatabaseService graphDb = new EmbeddedGraphDatabase
>> ("/path_to_neo4j/data/graph.db");
>> 
>> When i do GET-request - I get an error
>> 
>> Unable to lock store [/path_to_neo4j/graph.db/neostore], this is usually a
>> result of some other Neo4j kernel running using the same store.
>> 
>> I understand that the application needs to lock the entire database to make
>> the traverse a request for it. But the base operates in real time and the
>> application should not block the base.
>> Maybe somehow I can make request to the application by URL? Or some way I
>> can make request to traverse the base without locking?
>> 
>> --
>> View this message in context:
>> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242058.html
>> Sent from the Neo4j Community Discussions mailing list archive at
>> Nabble.com.
>> ___
>> 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

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


Re: [Neo4j] Traverse Order By

2011-08-10 Thread Igor Dovgiy
If you can cope with some limitations of Neo4j official plugin system (the
biggest thing for me is a bit limited choice of responce options: it can be
either collection of Nodes, or Relationships, or Pathes data, packed with
JSON), may I suggest using it instead. )

In this case your DB works in server mode, and you can happily bombard it
with many queries from many clients' instances via standard REST API,
expanded with your plugin.

And yes, we're using this kind of architecture, and kinda like it. )

-- 
-- iD

On 10 August 2011 13:10, sometime  wrote:

> I wrote this plugin. Everything works as it should (on local).
> I put this plugin (as web-application) on a server that is running neo4j.
> In
> order to receive the data - I'll do a GET-request to that web-applications.
> In web applications to initialize neo4j I use
>
> GraphDatabaseService graphDb = new EmbeddedGraphDatabase
> ("/path_to_neo4j/data/graph.db");
>
> When i do GET-request - I get an error
>
> Unable to lock store [/path_to_neo4j/graph.db/neostore], this is usually a
> result of some other Neo4j kernel running using the same store.
>
> I understand that the application needs to lock the entire database to make
> the traverse a request for it. But the base operates in real time and the
> application should not block the base.
> Maybe somehow I can make request to the application by URL? Or some way I
> can make request to traverse the base without locking?
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242058.html
> Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> ___
> 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


Re: [Neo4j] Traverse Order By

2011-08-10 Thread sometime
I wrote this plugin. Everything works as it should (on local).
I put this plugin (as web-application) on a server that is running neo4j. In
order to receive the data - I'll do a GET-request to that web-applications.
In web applications to initialize neo4j I use

GraphDatabaseService graphDb = new EmbeddedGraphDatabase
("/path_to_neo4j/data/graph.db");

When i do GET-request - I get an error

Unable to lock store [/path_to_neo4j/graph.db/neostore], this is usually a
result of some other Neo4j kernel running using the same store.

I understand that the application needs to lock the entire database to make
the traverse a request for it. But the base operates in real time and the
application should not block the base.
Maybe somehow I can make request to the application by URL? Or some way I
can make request to traverse the base without locking?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Traverse-Order-By-tp3209366p3242058.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4J SQLIMporter question

2011-08-10 Thread Peter Neubauer
Donovan,
The project is on GIThub, https://github.com/peterneubauer/sql-import
and I am right now porting it to Neo4j 1.4. However, I have limited
bandwidth, I suspect it will take me some evenings to get it working
properly again. Is that ok?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Aug 9, 2011 at 9:54 PM, dhsieh  wrote:
> Yes, something similar
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Re-Neo4j-Neo4J-SQLIMporter-question-tp2508296p3240150.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> ___
> 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


Re: [Neo4j] Neo4j Disk Space Usage

2011-08-10 Thread ahmad.bakr
Michael,

Thanks for this clarification, however i got a question, i mentioned before
that each node has a property holds a JSON representation of hash table, the
length of this JSON string is can reach 1000 chars and sometimes it's jumps
to 4000 chars (based on recent statistics i just got yesterday), so i
thought about another way of serialization, so i have to search for a while
and i got libraries such as http://msgpack.org/ it looks promising and could
fit to out situation.

So what you think ? could this help me to reduce the size of the stored
string ? or you recommend any other library?

Thanks 

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Neo4j-Disk-Space-Usage-tp3235564p3241761.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Exceptions in Neo4j Server

2011-08-10 Thread Dario Rexin
Hi,

I´d love to provide you more information, but i run the server in production
and just randomly get these errors.


Cheers,
Dario


Am 09.08.11 17:18 schrieb "Jim Webber" unter :

> Hi Dario,
> 
> It's hard to know if it's expected behaviour unless you share a bit more
> context.
> 
> What were you doing (in JUnit tests or curl commands) to produce these?
> 
> Jim
> 
> On 9 Aug 2011, at 14:35, Dario Rexin wrote:
> 
>> Hi,
>> 
>> I just attached a hoptoad appender to my logger in the Neo4j Server and am
>> getting some internal neo exceptions besides the ones I’m getting from my
>> unmanaged extensions. I would like to know, why they happen and if it’s a
>> known behaviour. Here are the exceptions:
>> 
>> 
>> java.net.SocketTimeoutException
>> 
>> Read timed out
>> 
>> -2SocketInputStream.java → socketRead0
>> 129 SocketInputStream.java → read
>> 382 ByteArrayBuffer.java → readFrom
>> 107 StreamEndPoint.java → fill
>> 198 SocketConnector.java → fill
>> 290 HttpParser.java → parseNext
>> 212 HttpParser.java → parseAvailable
>> 404 HttpConnection.java → handle
>> 228 SocketConnector.java → run
>> 582 QueuedThreadPool.java → run
>> 
>> 
>> java.net.SocketException
>> 
>> Socket closed
>> 
>> 162 SocketInputStream.java →?read
>> 382 ByteArrayBuffer.java →?readFrom
>> 107 StreamEndPoint.java →?fill
>> 198 SocketConnector.java →?fill
>> 290 HttpParser.java →?parseNext
>> 212 HttpParser.java →?parseAvailable
>> 404 HttpConnection.java →?handle
>> 228 SocketConnector.java →?run
>> 582 QueuedThreadPool.java →?run
>> 
>> 
>> 
>> Cheers,
>> 
>> Dario
>> ___
>> 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

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


Re: [Neo4j] Any experience sharing on running Neo4j in Cloudbees

2011-08-10 Thread noppanit
I've never used Cloudbees, but I'm using Amazon EC2 micro instance. The 
performance of neo4j is actually quit good and reliable on a small or 
not-so-powerful machine. I have about 10 nodes.


Sent from my BlackBerry® wireless device

-Original Message-
From: "Brendan cheng-2 [via Neo4j Community Discussions]" 

Date: Tue, 9 Aug 2011 23:21:12 
To: noppanit
Subject: [Neo4j] Any experience sharing on running Neo4j in Cloudbees




Hi,
Do you have any experience in running Neo4j server or Neo4j HA on CLoudBees?I'm 
evaluating this solution and would like to hear your valuable experience or 
tips.
Thanks,
Brendan   
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


___
If you reply to this email, your message will be added to the discussion below:
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Any-experience-sharing-on-running-Neo4j-in-Cloudbees-tp3241488p3241488.html
To start a new topic under Neo4j Community Discussions, email 
ml-node+438527-1202596511-399...@n3.nabble.com
To unsubscribe from Neo4j Community Discussions, visit 
http://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=438527&code=bm9wcGFuaXQuY0BnbWFpbC5jb218NDM4NTI3fDExOTIzNzAyNjk=


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Any-experience-sharing-on-running-Neo4j-in-Cloudbees-tp3241488p3241589.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user