Re: [orientdb] OGlobalConfiguration.CACHE_LOCAL_ENABLED

2014-10-20 Thread Andrey Lomakin
Hi, By design instance of document database should be treated as lightweight connection to database storage which adds data unmarshaling features, so it means that open/close should be lightweight operation. But now it is not true, we are going to change it, which means that open/close operation

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread Bojan Vukotić
This is my code (I didn't use actually Book and Author tables, I used my domain specific tables, but here I illustrated problem with these common names to make it easier to understand). This works, but my question is could this be done using just ETL without any coding. Map bookMap =

[orientdb] Newbie question

2014-10-20 Thread Brett Coffin
I just install the Community Edition.VERSION 2.0-M2 Using the Studio I created an Employee (superClass V) with a "name" String property. Then in the Function Management I have: var gdb = orient.getGraph(); for(var i=0; i < num; i++){ var name = prefix + '_' + i; var emp = { '@class': 'E

Re: [orientdb] Re: Another, different error (ClassCastException after running awhile)

2014-10-20 Thread Michael Campbell
This being a year old I can't recall exactly, but if memory serves I just didn't create any indexes with the "create index" statement. I know that sounds silly, but that was basically it. On Sat, Oct 18, 2014 at 6:01 AM, NewUser wrote: > Hi Michael!! > > I am encountering the same problems wh

Re: [orientdb] OGlobalConfiguration.CACHE_LOCAL_ENABLED

2014-10-20 Thread odbuser
At once we fix https://github.com/orientechnologies/orientdb/issues/2901 and https://github.com/orientechnologies/orientdb/issues/2900 and can use document db instance as jdbc connection and this problem will gone. What does this mean? On Monday, October 20, 2014 4:41:19 AM UTC-4, Andrey Lomak

Re: [orientdb] Distributed: Insert/Read

2014-10-20 Thread GoorMoon
Great On Monday, October 20, 2014 9:22:45 PM UTC+3, hihim...@gmail.com wrote: > > nice! that did the trick > > On Saturday, October 18, 2014 3:59:07 AM UTC-5, GoorMoon wrote: >> >> Hi, >> look here >> 2.0-SNAPSHOT >>

Re: [orientdb] conflictStrategy 'content' still throwing version exception - 2.0 SNAPSHOT

2014-10-20 Thread Luca Garulli
Hi, Have you tried the auto-merge strategy instead of content? Content check if the content is the same in case versions are different. In your case, if I've understood correctly, you need a merge. Correct? Lvc@ On 20 October 2014 13:30, wrote: > Hi, > > I have a Class that must be updated mul

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread Luca Garulli
@Bojan, How did you import edges? Can you share the code? It's hard to help without any information. Lvc@ On 20 October 2014 13:31, 'Curtis Mosters' via OrientDB < orient-database@googlegroups.com> wrote: > Is you code secret? I still don't understand the real issue you have, > sorry. > > Am Mo

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread 'Curtis Mosters' via OrientDB
Is you code secret? I still don't understand the real issue you have, sorry. Am Montag, 20. Oktober 2014 15:26:27 UTC+2 schrieb Bojan Vukotić: > > > Well, that's exactly what I need (and what I already did). I thought maybe > that ETL has some API that we could use to make this easier (I used 'pu

[orientdb] conflictStrategy 'content' still throwing version exception - 2.0 SNAPSHOT

2014-10-20 Thread hihimegame
Hi, I have a Class that must be updated multiple times (possibly per second), I'm using 2.0 SNAPSHOT made from develop branch on Oct 20 2014. I've set on Studio, inside DB settings > Configuration conflictStrategy as "content", and on "Structure" on that class I've set it as "content" as well.

Re: [orientdb] Distributed: Insert/Read

2014-10-20 Thread hihimegame
nice! that did the trick On Saturday, October 18, 2014 3:59:07 AM UTC-5, GoorMoon wrote: > > Hi, > look here > 2.0-SNAPSHOT > > > > On Thursday, October 16, 2014 5:27:36 PM UTC+3, hihi

[orientdb] Re: [Q] LazyLoading for relations and field [in JPA]

2014-10-20 Thread Pavel Niedoba
> > Hi > There is @Basic(fetch = FetchType.LAZY) annotation for field, but I have no idea if OrientDb supports it. -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, s

[orientdb] SQL query performance with OR in the WHERE clause

2014-10-20 Thread Kanak Agarwal
Hello My V class contains two properties prop1 and prop2 both of which are indexed using non unique hash index. The queries on prop1 alone (select from V where prop1 = 'xyz') or prop2 alone (select from V where prop1 = 'abc') use the index and perform well. On the other hand, a query that uses O

[orientdb] Re: Asking for help with querying Graph scheme

2014-10-20 Thread tud . entw
I found the right funktion for my problem "intersect()". Its obvious now. I should have known OrientDB guys thougt of this, since it's a common problem. select expand($c) let $a = (select @rid from (select expand(out('eE').@class='BV') from CV where property='exampleString')), $b = (select @ri

Re: [orientdb] OrientGraphFactory with pool: should always shutdown() graphs?

2014-10-20 Thread Andrey Lomakin
Hi, You should do shutdown, otherwise your pool may be eventually exhausted. It is not the case now if you use thread pool but better to not relay on implementation details. On Mon, Oct 20, 2014 at 5:58 PM, Keith Freeman <8fo...@gmail.com> wrote: > Using a factory like this: > OrientGraphFactory

[orientdb] OrientGraphFactory with pool: should always shutdown() graphs?

2014-10-20 Thread Keith Freeman
Using a factory like this: OrientGraphFactory gfactory= new OrientGraphFactory( "remote:localhost/testdb","root","root".setup(1,20); ...I reuse instances from the pool many times using gfactory.getTx(). Should I always call graph.shutdown() when finished with an instance from the pool? If not,

Re: [orientdb] Re: 2M2 and version change when updating edges only

2014-10-20 Thread Andrey Lomakin
Hi Stefan, We use static initialization so we have all chances that this may be issue. On Fri, Oct 17, 2014 at 11:21 PM, wrote: > Hi Andrey, > > I'm only trying this with new databases so they are created with the > same/latest version. > > I will move the global config to a static place, of co

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread Bojan Vukotić
Well, that's exactly what I need (and what I already did). I thought maybe that ETL has some API that we could use to make this easier (I used 'pure' OrientDB API to implement this) On Monday, 20 October 2014 15:15:27 UTC+2, Curtis Mosters wrote: > > I think I don't understand your issue: > >

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread 'Curtis Mosters' via OrientDB
I think I don't understand your issue: First of all you import all Books. So you have all the data in there. Now setting an index on the Book.ID. After that the Authors are imported. They are matched with the ID of the Book. I think in your case the Author matched with a Book is the same like

[orientdb] Re: Where is javadoc for 1.7.9?

2014-10-20 Thread Keith Freeman
You can build it yourself from the source: ant javadoc On Friday, October 17, 2014 9:03:31 PM UTC-6, bdwa...@gmail.com wrote: > > Where can I find the javadoc for 1.7.9 (the current stable version)? > > The only javadoc I can find is at > http://www.orientechnologies.com/javadoc/latest/ >

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread Bojan Vukotić
I took example from here http://www.orientechnologies.com/docs/last/orientdb-etl.wiki/Import-from-DBMS.html When can I find ETL/Java example? On Monday, 20 October 2014 14:43:11 UTC+2, Curtis Mosters wrote: > > Well I think it's way better to create a Java example. Then you understand > what

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread 'Curtis Mosters' via OrientDB
Well I think it's way better to create a Java example. Then you understand what is happening in the background. Otherwhise in my tests the ETL way had the same speed, but these tests are 3-4 month old. I will redo them soon. Did you take the example of ETL from OrientDB? Otherwhise look above fo

Re: [orientdb] (1.6.0) NPE in during transaction commit.

2014-10-20 Thread kishy kumar
Hi Andrey, I am seeing the same issue in orientdb 1.6.3. Has this issue been fixed in this version? Thanks, Kishy On Thursday, October 10, 2013 6:57:08 AM UTC-7, Andrey Lomakin wrote: > > Hi, > It seems sonatype has dependencies cache so you have about 2 days delay > between CI build and snap

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread Bojan Vukotić
I prefer do it with ETL, if it is possible, I would like to avoid programming. If not, Java is also a good solution. So, example how to do it in ETL? And regarding ETL, I was playing with it, it imports vertices nicely, but when I want to import edges (100 000 of them) it is extremely slow :(

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread 'Curtis Mosters' via OrientDB
Well you have several ways. Do you want to do it with JAVA oder the ETL plugin? In any case I think it should be Vertices: Author, Book Edge: WROTE WDYT? Am Montag, 20. Oktober 2014 10:51:03 UTC+2 schrieb Bojan Vukotić: > > Hi guys! > > The whole discussion here is how to create edges from one

Re: [orientdb] Inserting a large file into OrientDB

2014-10-20 Thread Andrey Lomakin
HI, Do you have test ? I need to look how to reproduce this error. On Fri, Oct 17, 2014 at 10:34 PM, NewUser wrote: > Hi! > > I have created a schemaless database in OrientDB in which I am trying to > load a large .nt file, I have not created any manual indexes and I am > trying to see how the

Re: [orientdb] ETL for professional import to OrientDB

2014-10-20 Thread Bojan Vukotić
Hi guys! The whole discussion here is how to create edges from one table to another, but what to do if we have more complex cases where we have connected 2 (or even more) tables? Example, n:n relation: book and authors, book can have one or more authors and author can work on one or more books.

Re: [orientdb] OGlobalConfiguration.CACHE_LOCAL_ENABLED

2014-10-20 Thread Andrey Lomakin
Hi, It is very cheap. At once we fix https://github.com/orientechnologies/orientdb/issues/2901 and https://github.com/orientechnologies/orientdb/issues/2900 and can use document db instance as jdbc connection and this problem will gone. On Sun, Oct 19, 2014 at 7:07 AM, odbuser wrote: > I worked

Re: [orientdb] Re: Repairing security structures ?

2014-10-20 Thread Andrey Lomakin
Hi Stefan, It is fixed in 2.0-SNAPSHOT could you try ? On Sat, Oct 18, 2014 at 11:42 PM, wrote: > > btw. this is 2.M2 and embedded server becomes unresponsive. > > Currently I have no option to repair this and the database becomes > unusable/corrupt. > > Regards, > -Stefan > > On Friday, Octob