[orientdb] Re: BUILD FAILED ON WINDOWS 7

2014-05-11 Thread Stefano Falcioni
news? Il giorno martedì 6 maggio 2014 10:46:50 UTC+2, Stefano Falcioni ha scritto: > > Hi, > i'm trying to build last develop branch with java jdk1.6.0_45 but i > receive the following error: > compile: > [javac] Compiling 253 source files to > C:\dev\research\orientdb-develop\orientdb-devel

Re: [orientdb] How to create porperty of type collection?

2014-05-11 Thread Artem Orobets
Hi Montrazul, What version of OrientDB do you use? is that reproducible on current snapshot? Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-05-11 10:31 GMT+03:00 Montrazul : > But if you do so, how do you add new values to your collection? > > Without the i

Re: [orientdb] Re: Transactions in a distributed environment lead to a corrupt database

2014-05-11 Thread Artem Orobets
Hi Daniel, Yes it is a RidBag content, but for some reason it is recognized as a string. Could you provide a steps how to reproduce it? Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-05-09 19:06 GMT+03:00 Daniel : > Hey Luca, > > After we did the 'upgrade

Re: [orientdb] Re: current thread database instance

2014-05-11 Thread Artem Orobets
Hi Ted, There is no guarantee that acquire will set thread local instance, so call ODatabaseRecordThreadLocal.INSTANCE.set(dbA); after acquiring. Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-05-12 1:21 GMT+03:00 Ted Smith : > What I am trying to do is,

Re: [orientdb] current thread database instance

2014-05-11 Thread Ted Smith
You can check Cassandra doc describe here. http://www.datastax.com/documentation/developer/java-driver/2.0/java-driver/quick_start/qsSimpleClientAddSession_t.html It might be possible to put the threadlocal/pooling within an orientdb session object so user level api only needs to get the single

[orientdb] Re: current thread database instance

2014-05-11 Thread Ted Smith
What I am trying to do is, in the same thread first call one method MethodA(){ dbA = GLobalPool.acquire() } then call (in the same thread) methodB(){ dbB=ODatabaseRecordThreadLocal.INSTANCE.get() Would dbB be the same instance as dbA? On Saturday, May 10, 2014 9:29:59 PM UTC-4, Ted Smith

Re: [orientdb] current thread database instance

2014-05-11 Thread Luca Garulli
Hi Ted, you could get the current instance with: ODatabaseRecordThreadLocal.INSTANCE.get() About Cassandra, can you post some links to understand its feature? Lvc@ Lvc@ On 11 May 2014 17:55, Ted Smith wrote: > Hi: > > My scenario is > first, I aquire instance via pool, then I call a sequ

Re: [orientdb] current thread database instance

2014-05-11 Thread Ted Smith
Hi: My scenario is first, I aquire instance via pool, then I call a sequence of methods that is to be part of the same transaction in the same thread . I do not want to require each method to have an argument to get the acquired instance. I want to get the same instance within the method via TL.

Re: [orientdb] current thread database instance

2014-05-11 Thread Luca Garulli
Hi, you can get the TL instance, or just acquire another one. Starting from 1.7-SNAPSHOT the pool is reentrant, so when you acquire a connection that has already been acquired by the same Thread, then the same instance is returned. Lvc@ Lvc@ On 11 May 2014 03:29, Ted Smith wrote: > Hi: > If

Re: [orientdb] Re: SQL Batch HTTP API

2014-05-11 Thread Luca Garulli
Hi, I fixed this bug on current "develop" branch. Lvc@ Lvc@ On 11 May 2014 09:58, Thomas Kennedy wrote: > Thanks Eric. > > I downloaded the latest snapshot from may 8th. Unfortunately its still not > working for me. > > Have you used this feature? > > > On Sunday, 11 May 2014 08:39:34 UTC+1

Re: [orientdb] [JAVA] How to speed things up?

2014-05-11 Thread Montrazul
How can you answer on deleted posts?:D Found that method in another post. Thank you. Am Sonntag, 11. Mai 2014 14:12:51 UTC+2 schrieb Lvc@: > > Hi, > try using outVertex.getRecord().reload(); > > Lvc@ > > > > Lvc@ > > > On 11 May 2014 11:37, Montrazul >wrote: > >> I have another problem :( >> >> 2

Re: [orientdb] [JAVA] How to speed things up?

2014-05-11 Thread Luca Garulli
Hi, try using outVertex.getRecord().reload(); Lvc@ Lvc@ On 11 May 2014 11:37, Montrazul wrote: > I have another problem :( > > 2014-05-11 11:25:41 INFO FreebaseFileImporter:95 - Found property: > m_0104jp => type_object_type => location.dated_location > 2014-05-11 11:25:41 INFO GraphDAOOr

Re: [orientdb] [JAVA] How to speed things up?

2014-05-11 Thread Montrazul
I have another problem :( 2014-05-11 11:25:41 INFO FreebaseFileImporter:95 - Found property: m_0104jp => type_object_type => location.dated_location 2014-05-11 11:25:41 INFO GraphDAOOrientDB:206 - Set property: m_0104jp, key:type_object_type, value:location.dated_location 2014-05-11 11:25:41 I

[orientdb] Re: SQL Batch HTTP API

2014-05-11 Thread Thomas Kennedy
Thanks Eric. I downloaded the latest snapshot from may 8th. Unfortunately its still not working for me. Have you used this feature? On Sunday, 11 May 2014 08:39:34 UTC+1, Erik Peterson wrote: > > You may try a later snapshot, see... > > https://oss.sonatype.org/content/repositories/snapshots/co

[orientdb] Re: SQL Batch HTTP API

2014-05-11 Thread Erik Peterson
You may try a later snapshot, see... https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/1.7-SNAPSHOT/ Erik On Sunday, May 11, 2014 1:22:31 AM UTC-6, Thomas Kennedy wrote: > > OrientDB console v.1.7-rc2 (build UNKNOWN@r${buildNumber}; 2014-03-25 > 15:5

Re: [orientdb] How to create porperty of type collection?

2014-05-11 Thread Montrazul
But if you do so, how do you add new values to your collection? Without the index i did it like that: public void setProperty(Vertex vertex, String key, String value) { Set keys = vertex.getPropertyKeys(); List values = null; if(keys.contains(key)) { values = (List)vertex.getProperty(key);

[orientdb] Re: SQL Batch HTTP API

2014-05-11 Thread Thomas Kennedy
OrientDB console v.1.7-rc2 (build UNKNOWN@r${buildNumber}; 2014-03-25 15:54:54 On Sunday, 11 May 2014 08:20:56 UTC+1, Thomas Kennedy wrote: > > Hi, > > > I am executing the following using HTTP interface > > { > "transaction": true, > "operations": [ > { > "type": "scr

Re: [orientdb] SQL Batch HTTP API

2014-05-11 Thread Thomas Kennedy
OrientDB console v.1.7-rc2 (build UNKNOWN@r${buildNumber}; 2014-03-25 15:54:54 On Sun, May 11, 2014 at 8:20 AM, Thomas Kennedy wrote: > Hi, > > > I am executing the following using HTTP interface > > { > "transaction": true, > "operations": [ > { > "type": "script", >

[orientdb] SQL Batch HTTP API

2014-05-11 Thread Thomas Kennedy
Hi, I am executing the following using HTTP interface { "transaction": true, "operations": [ { "type": "script", "language": "sql", "script": "select * from ouser;" } ] } and get back the following error message? Has anybody been