[orientdb] How to partition data based on data in the document

2014-09-10 Thread M B
Is her a way to partition data between data segments based on data in the document itself? I've found the segment selection strategy on oclass , but it doesn't pass the document. I'd like a way to select the data segment on save without specifying it on each save via db.save(doc,cluster). --

Re: [orientdb] Storage not closed properly when using plocal and tinkerpop orientGraphFactory

2014-09-10 Thread Seamus Minogue
That seems to have done it. Thanks. -Seamus On Wednesday, September 10, 2014 4:39:32 AM UTC-4, Andrey Lomakin wrote: > > Yes, > Actually I think that shutdown hook is not triggering on your application. > > Could you call Orient.instance().shutdown() during application close ? > > On Tue, Sep 9,

Re: [orientdb] java.lang.IllegalMonitorStateException from OrientDB

2014-09-10 Thread Jing Chen
Great!. We use Maven. I think it would be easier for us if your fixes are in the Maven repository. Looking forward to testing it out. Thanks. On Wednesday, September 10, 2014 12:20:34 AM UTC-7, Andrey Lomakin wrote: > > Hm ... I think it merely have bigger probability to happen on this os. > I w

[orientdb] OrientDB Distributed: how it works?

2014-09-10 Thread Luca Garulli
Hi guys, For who missed the Hazelcast's Webinar of yesterday I've published the presentation online: http://www.slideshare.net/lvca/orientdb-and-hazelcast Lvc@ -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group an

[orientdb] Re: Getting back all Persons of a Title

2014-09-10 Thread 'Curtis Mosters' via OrientDB
Well I now want to get all Persons of an Appln's RID. So as example the #11:9 select name,@rid,@class from (select expand(in(WROTE)) from #11:9 LIMIT 20 That is giving me 2 Persons. Well the Application has 2 Persons, so that's fine. But the Problem is that I now want a DISTINCT result. [{"@ty

Re: [orientdb] Create a Composite Unique Constraint (Index) on multiple edges

2014-09-10 Thread Max Matchenko
Hi Luca. Based on your reply I have made an Edge and extended it by two another edges that I need to create Composite Unique Constraint for. *create class Person extends V* *create class Car extends V* *create class ServiceStation extends V* *create class Edge extends E* *create property Edge.o

[orientdb] Using Orient DB for constructing graphs of nodes 2 million.

2014-09-10 Thread Srinivas Durvasula
Hi We have started exploring OrientDB for building very lagre graphs ( cardinality of 1 million atleast) and most of the times we need to use traverse command to cater our customers. Each node also comprises some properties ( 10 to 12 properties) . Would you please help us in addressing the f

[orientdb] Deploying orientdb-graphdb in osgi results in hard reference to rexster-core

2014-09-10 Thread Jamie Kemp
Hi, I am trying to get OrientDB (1.7.8) running successfully inside a OSGi container. There however seems to be a Import-Package definition of 'com.tinkerpop.rexster.config' on orientdb-graphdb which is currently not allowing things to validate. Looking into orientdb-graphdb it appears to make

Re: [orientdb] Connection pool and multithread environment

2014-09-10 Thread Guilherme Moreira
Thanks for the tip. We are using 1.7.8. Em terça-feira, 9 de setembro de 2014 18h04min26s UTC-3, Lvc@ escreveu: > > Hi Guilherme, > I confirm this is the best way. With 2.0-SNAPSHOT we speed up the pool to > be much lighter than 1.7.x. What release are you using? > > Lvc@ > > > On 9 September 201

Re: [orientdb] Migration of databases from 1.6 to 1.7.8

2014-09-10 Thread Luca Garulli
Hi Nitish, Look at the documentation. If you search for "Migration" you'll find this pag: http://www.orientechnologies.com/docs/last/orientdb.wiki/Migration-from-1.6.x-to-1.7.x.html Lvc@ On 10 September 2014 11:30, Nitish Gangal wrote: > Hi Luca, > > Initially, we were using orientDb 1.6 and

Re: [orientdb] Why transactions don't work when remote connection is in use? I can't see the changes in console?

2014-09-10 Thread Tomasz Kułakow
It is possible that I did in this manner before, because now everything works fine on the remote connection. Also transactions works with JPA, but no in SQL as you said. Thank you for your help Tomek -- --- You received this message because you are subscribed to the Google Groups "OrientDB"

[orientdb] Migration of databases from 1.6 to 1.7.8

2014-09-10 Thread Nitish Gangal
Hi Luca, Initially, we were using orientDb 1.6 and we have many databases using 1.6 Now, eventually, we are migrating databases from 1.6 to 1.7.8 As per our study, we understand that, databases can be migrated in two ways: 1. By Copy/pasting the database folders 2. By Import/export command. I am

Re: [orientdb] Index rebuild after server was not shutdown correctly

2014-09-10 Thread 'Curtis Mosters' via OrientDB
Yeah that sounds pretty much okay. But it should actually look if data is actually corrupt. I didn't touch the data and was just reading it. So it might be taken into memory but not changed. From my perspective there was no need for rebuilding an index. But if there actually is, okay, so I now

Re: [orientdb] Embedded server not starting correctly

2014-09-10 Thread Andrey Lomakin
Hi, It depends )) Could you send full sack trace ? On Tue, Sep 2, 2014 at 1:20 AM, wrote: > Hi, > > Can you please help me understand what can be happening when this > exception is thrown: > >- Timeout on acquiring exclusive lock against resource of class: class > > com.orientechnologie

Re: [orientdb] Nested queries in orientDb

2014-09-10 Thread Andrey Lomakin
On Tue, Sep 2, 2014 at 12:14 PM, Reza Roohian wrote: > However, the query is much slower compared to explicitly querying the > indexes. > > What I am trying to achieve is to get all the words that have a followedBy > edge to the Word with value property equal to 'Te > I see give me one day I wil

Re: [orientdb] Massive connecting of vertices via edges taking days

2014-09-10 Thread Andrey Lomakin
I suggest you to always use these settings it will increase performance for your cases if your db is more than 4GB. On Wed, Sep 10, 2014 at 11:17 AM, 'Curtis Mosters' via OrientDB < orient-database@googlegroups.com> wrote: > Thanks, as I said when I need to reimport, I come back here =) > > Am Mi

Re: [orientdb] Storage not closed properly when using plocal and tinkerpop orientGraphFactory

2014-09-10 Thread Andrey Lomakin
Yes, Actually I think that shutdown hook is not triggering on your application. Could you call Orient.instance().shutdown() during application close ? On Tue, Sep 9, 2014 at 10:09 PM, Seamus Minogue wrote: > I am having a problem with closing a plocal orient database properly when > using the t

Re: [orientdb] Why transactions don't work when remote connection is in use? I can't see the changes in console?

2014-09-10 Thread Andrey Lomakin
do you connect to server or local file if you connect to local file you have 2 different istances of dbs so you need to reload data. On Wed, Sep 10, 2014 at 10:48 AM, Tomasz Kułakow wrote: > > Sorry which changes ? >> > > > I have in the console: > orientdb {db}> select from #12:0 > > +-

Re: [orientdb] Index rebuild after server was not shutdown correctly

2014-09-10 Thread Andrey Lomakin
Hi, To speed up data processing data are cached in memory in write and read cache, if you do not flush cache correctly (it is the same as discarding flash storage from windows usb port) it can lead to data corruption. To avoid data corruption we use wal where all operations are logged. So we resto

Re: [orientdb] Massive connecting of vertices via edges taking days

2014-09-10 Thread 'Curtis Mosters' via OrientDB
Thanks, as I said when I need to reimport, I come back here =) Am Mittwoch, 10. September 2014 09:56:37 UTC+2 schrieb Andrey Lomakin: > > > On Wed, Sep 10, 2014 at 10:51 AM, 'Curtis Mosters' via OrientDB < > orient-...@googlegroups.com > wrote: > >> -Dstorage.diskCache.bufferSize=28000 >> > > This

[orientdb] Index rebuild after server was not shutdown correctly

2014-09-10 Thread 'Curtis Mosters' via OrientDB
So from time to time I backup the AWS server. And sometimes forgetting to crrectly shutdown the server. So when the AWS server is up again and starting OrientDB server it needs to rebuild the index. But why? Could someone tell me what I can do against it. I don't know why a rebuild is needed.

[orientdb] Re: SKIP and Limit does not appear to be working

2014-09-10 Thread 'Curtis Mosters' via OrientDB
Sure always open issues with detailed information about orientdb version and other dependencies and of course code. Say what is working for oyu and what does not. Also github is much more visited then this user group here. And much more pretty to look at source code. So for sure post it. =) Am

Re: [orientdb] Massive connecting of vertices via edges taking days

2014-09-10 Thread Andrey Lomakin
On Wed, Sep 10, 2014 at 10:51 AM, 'Curtis Mosters' via OrientDB < orient-database@googlegroups.com> wrote: > -Dstorage.diskCache.bufferSize=28000 > This one -- Best regards, Andrey Lomakin. Orient Technologies the Company behind OrientDB -- --- You received this message because you are su

Re: [orientdb] Massive connecting of vertices via edges taking days

2014-09-10 Thread 'Curtis Mosters' via OrientDB
So for my next test how would the best Setting look like? I have 30 GB RAM and yeah maybe 1-2 GB for the system. So -Xmx28000M or -Dstorage.diskCache.bufferSize=28000 ? Am Mittwoch, 10. September 2014 09:34:26 UTC+2 schrieb Lvc@: > > The total between DiskCache and Heap must not be more than

Re: [orientdb] Why transactions don't work when remote connection is in use? I can't see the changes in console?

2014-09-10 Thread Tomasz Kułakow
> Sorry which changes ? > I have in the console: orientdb {db}> select from #12:0 +-++--- # |@RID |@version|value +-++--- 0 |#12:0|21 |22 +-++--- then with still active console I run the Java program, which change 'val

[orientdb] Re: SKIP and Limit does not appear to be working

2014-09-10 Thread yzhong
It appears like simple query against with post class works just fine with or without the order by. Do u consider this as a bug? Do u reckon I should open an issue in the orientdb github page. On Tuesday, September 9, 2014 12:21:12 PM UTC+10, yzh...@tigs.com.au wrote: > > Firstly I am using the

[orientdb] Re: SKIP and Limit does not appear to be working

2014-09-10 Thread yzhong
It appears like simple query against with post class works just fine On Tuesday, September 9, 2014 12:21:12 PM UTC+10, yzh...@tigs.com.au wrote: > > Firstly I am using the version 1.7.8 downloaded from the > http://orientechnologies.com. > > What is happening is I try to get all the post that a

Re: [orientdb] Massive connecting of vertices via edges taking days

2014-09-10 Thread Luca Garulli
The total between DiskCache and Heap must not be more than physical RAM otherwise you go in Swap and performance drops down. If you have 37G free, then I suggest to give 34G to disk cache and only 3G of heap. Lvca Sent from Mobile device Il 10/Set/2014 09:30 "'Curtis Mosters' via OrientDB" < ori

[orientdb] Re: SKIP and Limit does not appear to be working

2014-09-10 Thread 'Curtis Mosters' via OrientDB
Well I never tested SKIP and LIMIT. Did you test it on simpler requests maybe? To make sure it has no other impact. Am Mittwoch, 10. September 2014 09:23:40 UTC+2 schrieb yzh...@tigs.com.au: > > It's a bit urgent, also I am just wondering how/is it possible to use > Rid-limit in this case, sinc

Re: [orientdb] Massive connecting of vertices via edges taking days

2014-09-10 Thread 'Curtis Mosters' via OrientDB
Will test it with the next import. But I think I have already tested this, too. Am Mittwoch, 10. September 2014 09:06:03 UTC+2 schrieb Andrey Lomakin: > > Hi, > I meant storage.diskCache.bufferSize not -Xmx we do not use heap we use > direct memory to avoid GC pauses. > Could you run with -Dstor

[orientdb] Re: SKIP and Limit does not appear to be working

2014-09-10 Thread yzhong
It's a bit urgent, also I am just wondering how/is it possible to use Rid-limit in this case, since the bigger the @rid the earlier the post is. Thank you. On Tuesday, September 9, 2014 12:21:12 PM UTC+10, yzh...@tigs.com.au wrote: > > Firstly I am using the version 1.7.8 downloaded from the > h

Re: [orientdb] java.lang.IllegalMonitorStateException from OrientDB

2014-09-10 Thread Andrey Lomakin
Hm ... I think it merely have bigger probability to happen on this os. I will push new fix during couple of hours you may wait till build on CI is completed or build from sources using "ant release" command on 1.7.9 branch. On Wed, Sep 10, 2014 at 6:31 AM, Dexter Pratt wrote: > New data points:

Re: [orientdb] Massive connecting of vertices via edges taking days

2014-09-10 Thread Andrey Lomakin
Hi, I meant storage.diskCache.bufferSize not -Xmx we do not use heap we use direct memory to avoid GC pauses. Could you run with -Dstorage.diskCache.bufferSize=37000 ? On Thu, Sep 4, 2014 at 2:10 PM, 'Curtis Mosters' via OrientDB < orient-database@googlegroups.com> wrote: > Here is the whole test