Re: [orientdb] Best practices to store a tree

2014-06-26 Thread Andrey Kovalev
Hi. Yes. You are right. Tree is a graph. But could you advise what is the most preferable way to run through the whole tree and collect all nodes (I want to build java object tree from database tree and convert to json)? 1. to recursively go from root node to the last child protected Gr

Re: [orientdb] Error parsing data migrating to orientDB

2014-06-26 Thread Mack Browne
Ok and once I figure out which field is causing this, is there a workaround for it? I can convert formats, but I am unable to change the actual content of the field as it would be a bad experience for the user. Are there special characters that OrientDB cannot handle? Best Regards, Mackenzie

[orientdb] Re: Functions Javascript Copy Object Value

2014-06-26 Thread Thomas Kennedy
Solved by creating a string Object. new String(OrientOBj); On Thursday, 26 June 2014 21:48:12 UTC+1, Thomas Kennedy wrote: > > Hi, > > I am using the graph API in Javascript and was wondering how to split a > string, > > var dStr = r[key].getRecord().field("@Rid"); > > dStr.slice(1,3) > > It

Re: [orientdb] Upgrading to 1.7.3 broke my embedded documents

2014-06-26 Thread Curtis Stanford
This was not fixed in 1.7.4 On Thursday, June 19, 2014 8:50:59 AM UTC-6, Andrey Lomakin wrote: > > Hi, > You can retrieve documents using following code getRecord.field("prop") > > I also I will fix it in 1.7.4 > > > > On Wed, Jun 18, 2014 at 7:28 PM, Curtis Stanford < > cur...@stanfordcomputing.

[orientdb] Functions Javascript Copy Object Value

2014-06-26 Thread Thomas Kennedy
Hi, I am using the graph API in Javascript and was wondering how to split a string, var dStr = r[key].getRecord().field("@Rid"); dStr.slice(1,3) It gives an error Cannot find function slice in object #17:6 Any tips on how to best copy the value out of the orient object so I can edit? R

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

2014-06-26 Thread Montrazul
But i guess that would be much slower because i have to select the vertices over and over again to add additional data to the vertex. Without an index the selection of the vertex would be much slower or am i wrong? Am Donnerstag, 26. Juni 2014 15:13:08 UTC+2 schrieb Odysseas: > > The approach w

Re: [orientdb] Lucene Index Query Behavior Change

2014-06-26 Thread Enrico Risa
Hi Brian, yes it is not intendend. Lucene index shouldn't be used with = operator. I will fix this preventing usage of Lucene index in exact match so it will works as expected. Enrico 2014-06-26 16:26 GMT+02:00 Brian O'Keefe : > Hi all, > > I'm experimenting with the new Lucene Index functio

Re: [orientdb] Re: Support for CascadeType.NONE ?

2014-06-26 Thread adaher
Yes I'm using the Object API. What I want is for my operations, like save for example, not to necessarily cascade to all underlying objects Le jeudi 26 juin 2014 05:11:54 UTC-4, Artem Orobets a écrit : > > Hi, > > Do you use Object API? > What behavior are you trying to archive? > > Best regards,

[orientdb] Lucene Index Query Behavior Change

2014-06-26 Thread Brian O'Keefe
Hi all, I'm experimenting with the new Lucene Index functionality to index a "full name" field. It seems to work great if using queries such as: SELECT FROM Person WHERE name LUCENE '"Thomas" AND "Jones"' -- contains everyone who is "Thomas Jones", "Jones Thomas", "A. Thomas Jones", etc. -- a

[orientdb] Usage of Embedded Map in SQL and Java

2014-06-26 Thread David W.
Hi there! I'd like to use an embedded Map in my database. Unfortunately, i don't know how the SQL Syntax for insertion in the Map is working. I use the following Model: class Page attribute info:String attribute translations:EmbeddedMap of PageInfo class PageInfo attribute langCode:String

[orientdb] Re: corrupted database! lost classes!! ....but clusters still there!!!!

2014-06-26 Thread David W.
Hi there, I just had the same problem yesterday with 1.7.4 - my classes disappeared, but the clusters still exist. I'd also be glad for a solution. Best wishes, David -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from th

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

2014-06-26 Thread Odysseas
The approach we have taken in our application to speed up the massive import, is to drop the indexes before the import, load the data and recreate the indexes after the data has been inserted. You may want to try this and see if it works for you. Odysseas On Thursday, June 26, 2014 7:16:03 AM

Re: [orientdb] OrientDB Backup causes daily Outages of approx. 15 minutes

2014-06-26 Thread Carlo Pradissitto
Exactly! I think you cannot do a safe database export without locking datafiles, especially using a low level tool such as a file system snapshot, which is totally unaware on what's going on on upper levels ...am I missing something? bye C Il giorno venerdì 4 aprile 2014 17:31:34 UTC+2, Lvc@ ha

[orientdb] Re: Embedded Mode: Can I open multiple OObjectDatabaseTx instances in a single VM?

2014-06-26 Thread M B
We've done this quite heavily where we have 2 databases and access is spread across many threads and are constantly switching between access of either database, nearly always with multiple concurrent threads. Use the database pooling classes if you can, but you don't have to. Works fine as lon

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

2014-06-26 Thread Montrazul
Im using: com.orientechnologies orientdb-graphdb 1.7-SNAPSHOT com.orientechnologies orientdb-lucene 1.7-SNAPSHOT I attach the code to this message. - I use massive insert - I use plocal mode - I set the oversize of the vertex type to 2 - I run it with

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

2014-06-26 Thread Luca Garulli
Hi, What release are you using? Can you post the code you used to import the database? 100M is not so huge number. Lvc@ On 26 June 2014 11:55, Montrazul wrote: > Hi, it is me again. > > Some Months ago i opened this post because the import of the freebase data > dump > into orientdb was too s

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

2014-06-26 Thread Montrazul
Hi, it is me again. Some Months ago i opened this post because the import of the freebase data dump into orientdb was too slow. After all optimizations it is still slow. Thats because of the index i use. I use three of them, each index has about 500 million keys. The importing process runs fo

Re: [orientdb] New feature request: support for Embeddable JPA tag

2014-06-26 Thread Artem Orobets
Hi, I you would like to post a feature request you can do that here . Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-06-26 12:06 GMT+03:00 Artem Orobets : > Hi, > > There is no analog for Embeddable

Re: [orientdb] Error parsing data migrating to orientDB

2014-06-26 Thread Artem Orobets
Hi Mack, I suppose some field contain some character that is not handled properly. Could you try figure which one? You can do that by removing fields of that user one by one. Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-06-25 20:30 GMT+03:00 Mack Browne :

Re: [orientdb] com.orientechnologies.orient.core.exception.OStorageException: Error during transaction commit.

2014-06-26 Thread sachchidanand singh
Hi Enrico, Yes, I m using remote server, and Orient db version is 1.7.3. If you want to replicate it just see my attached file as a reference, when ever i start from scratch(created new database, all related fields and the Lucene index on "content" field), it will work fine for few time like 50-

Re: [orientdb] Query for 1-2-many relationship

2014-06-26 Thread Artem Orobets
Hi Galina, 2014-06-26 1:44 GMT+03:00 galina manashirova : > Is "bold" section the correct way of storing reference to the Pool class? No. In this way you inserted a projection into the document, the correct will be insert into ID ( idname, Poolname,sessiontype, allocated, timedout, hold, userna

Re: [orientdb] com.orientechnologies.orient.core.exception.OStorageException: Error during transaction commit.

2014-06-26 Thread Enrico Risa
Hi Are you using remote server? Which version of OrientDb? how can i replicate it? 2014-06-25 16:55 GMT+02:00 sachchidanand singh : > hi, > my graph model of my project consist of three custom vertex classes: > Person, Location and Content. Recently i migrated my code to 1.7.3 from > 1.7.rc2,

Re: [orientdb] Database Size Limit

2014-06-26 Thread ravi d suvarna
Thanks Luca for the Response ,but is there any java api to get Current Database Size based on database name. Regards, Ravi On Wednesday, June 25, 2014 2:57:51 PM UTC+5:30, Lvc@ wrote: > > Hi Ravi, > You can't set the database size, you should do in your app. About the > cache yes: look at the d

Re: [orientdb] Re: Distributed mode testing with in the same machine

2014-06-26 Thread Artem Orobets
Hi Moksh, The nodes should use the same multicast port. In the provided config node 1 use 2434, node 2 use 2435. So they just can't find each other. Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-06-25 23:55 GMT+03:00 moksh n : > Used 1.7.4 and with the fol

Re: [orientdb] Re: Support for CascadeType.NONE ?

2014-06-26 Thread Artem Orobets
Hi, Do you use Object API? What behavior are you trying to archive? Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-06-25 16:00 GMT+03:00 adaher : > Anything ? > > Le lundi 23 juin 2014 09:16:18 UTC-4, adaher a écrit : > >> Is there an equivalent to the Casc

Re: [orientdb] New feature request: support for Embeddable JPA tag

2014-06-26 Thread Artem Orobets
Hi, There is no analog for Embeddable classes in OrientDB document model. Documents might be embedded but it is not defined in schema. We can create an embeddable classes in schema. However I don't see much use of it. Empty cluster files don't consume significant amount of resources. Best regard

[orientdb] corrupted database! lost classes!! ....but clusters still there!!!!

2014-06-26 Thread luca
Hello, I'm using v. 1.7.3 Community. while I was creating a new class using OrientDB Studio, suddenly most of the classes have disappeared. Then I restarted the database and reconnected using the console and all I see is: orientdb > list classes CLASSES: -