Re: [orientdb] Does OrientDB has "collections"?

2014-03-25 Thread Kevin K. Han
So, is there a way to put a cap on the maximum number of documents within a class where the oldest will automatically be deleted upon the newest one being saved, just like MongoDB's capped collections? -- --- You received this message because you are subscribed to the Google Groups "OrientDB

[orientdb] database inconsistency

2014-03-25 Thread Jonathan Rosen
I put unique indexes in place for specific edge types, so that there could only be one kind of each index. However, it appears that for some reason, the edge sets for a specific set of vertices have been duplicated, which violates the rules of the indexes. If I try to create another duplicate e

Re: [orientdb] Remove embeddedset item by reference?

2014-03-25 Thread Jonathan Rosen
Luca- I'm confused. Are you saying that "update #5:12 remove 0" is the current syntax, or the suggested syntax? update #5:12 remove 0 will not work, because you have to target the correct collection. For example, a single object could have an embeddedset called "people" and one called "things"

Re: [orientdb] Re: Hackaton!

2014-03-25 Thread odbuser
Netbeans 7.4 or 8 works fine as well. On Tuesday, March 25, 2014 5:58:23 PM UTC-4, Ameer Tamboli wrote: > > I tried IntelliJ Idea Community Edition as suggested by Andrey. I can > import the OrientDB Projects/source code directly from GitHub with few > clicks. It's working now. > > Thank you.

[orientdb] Re: How do I read an embeddedset from an ODocument (in Scala)??

2014-03-25 Thread Arve Knudsen
So I found out eventually that I need to put ODocument instances in embeddedsets. I wish this were documented! On Sun, Mar 23, 2014 at 10:11 PM, Arve Knudsen wrote: > After declaring the embeddedset property explicitly in the database schema > ('create property Version.dependencies embeddedset D

Re: [orientdb] Re: Setting up development environment for OrientDB source code

2014-03-25 Thread Ameer Tamboli
Hi Andrey, I tried IntelliJ Idea Community Edition as per your suggestion. I could import the OrientDB Projects/source code directly from GitHub with few clicks. It's working now. I had tried this with Eclipse and STS, but IntelliJ Idea is much better. Thanks Stefan also for suggestion. Thanks, A

Re: [orientdb] Re: Hackaton!

2014-03-25 Thread Ameer Tamboli
I tried IntelliJ Idea Community Edition as suggested by Andrey. I can import the OrientDB Projects/source code directly from GitHub with few clicks. It's working now. Thank you. On Wed, Mar 26, 2014 at 2:51 AM, Ameer Tamboli wrote: > Hi Luca, > > Which IDE (and version) do you use? How do you i

Re: [orientdb] Re: Hackaton!

2014-03-25 Thread Ameer Tamboli
Hi Luca, Which IDE (and version) do you use? How do you import the projects from repository into your workspace. I tried using Eclipse Kepler and Spring Tool Suite, but I have to checkout the code locally first and then import the existing Maven project by locating pom.xml file. Is there any simpl

Re: [orientdb] Does OrientDB has "collections"?

2014-03-25 Thread Riccardo Tasso
Yes, they are called classes. Cheers, Riccardo Il 25/mar/2014 18:06 "Kevin K. Han" ha scritto: > Does OrientDB has the concept of "collections" just like in MongoDB? If > not, how do I organize and group documents? > > -- > > --- > You received this message because you are subscribed to the Goog

[orientdb] Re: Does OrientDB has "collections"?

2014-03-25 Thread Thomas Kennedy
Kevin, Orient has Classes which can be either a vertex or an edge if you want to use graph approach or you can just create a class which is the same a document collection. These classes are like documents in Mongo and can be schemaless. The studio is great to quickly create your data models.

[orientdb] How to results fields from every nodes in a path with SQL?

2014-03-25 Thread László Rékasi
Hi, I have the following datastructure (every entity has its own class): vertexes : vA, vB, vC, vD, vE there is eAB between vA and vB with one to many relation eBC between vB and vC with one to many relation eDC between vD and vC with one to many relation from D to C (so vC is a for resolving man

Re: [orientdb] How to find paths between 2 vertices

2014-03-25 Thread Andrey Yesyev
In case someone's interested, found an answer for my question here https://groups.google.com/forum/#!msg/aureliusgraphs/d3jvgJeArOU/lMoObkk-If0J -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receivin

[orientdb] Delete all edges from a Vertex sintax

2014-03-25 Thread Denis Wilson Souza Rosa
Hi all! I need to delete all edges from a specific vertex pointing to others an I really would not like to select each one and execute the default delete query sintax (aka DELETE EDGE FROM myFixedVertex TO myOtherVertex ), so there is any way to so once? I mean something like: DELETE E

Re: [orientdb] Re: Released OrientDB 1.7-rc2: new Query Timeline in Studio and 62 bugs fixed

2014-03-25 Thread Luca Garulli
Hi Fabrizio, 1) no in particular 2) a couple of weeks, but we should recheck it with last arrived issues Lvc@ On 25 March 2014 17:33, Fabrizio Fortino wrote: > Cool! > > Thanks for the good work. > > Two questions: > > 1) Should I get any performance improvement on ORDER BY queries against > n

Re: [orientdb] Re: Released OrientDB 1.7-rc2: new Query Timeline in Studio and 62 bugs fixed

2014-03-25 Thread Luca Garulli
Hi, 1.7-rc2 is the last RC, the next one will be 1.7 and it's planned in a couple of weeks (but we should re-check the pending issues). 1.7-rc2 is designed to be retro-compatible with previous release, so you should only drop the new jars in the classpath and OrientDB should be able to open the da

Re: [orientdb] Re: Groovy querying

2014-03-25 Thread Andrey Yesyev
This works fine! Would be great to post it somewhere in wiki. I've spent a whole day trying to figure out what's wrong On Tuesday, March 25, 2014 12:53:43 PM UTC-4, Andrey Lomakin wrote: > > Hi > What is result of > g.v("#21:7").as("person").both("RELATED").loop("person"){it.id.toString() > !

[orientdb] Speed/performance on queries sorted by date/timestamp

2014-03-25 Thread Kevin K. Han
I have read all the claims about speed/performance of OrientDB. Specifically, I need to make queries to the DB to retrieve records (or "documents") and they must return sorted by date or timestamp. How does OrientDB perform when queries need to be sorted (ie. with the "ORDER BY") by such? Can o

[orientdb] Does OrientDB has "collections"?

2014-03-25 Thread Kevin K. Han
Does OrientDB has the concept of "collections" just like in MongoDB? If not, how do I organize and group documents? -- --- 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, send an emai

Re: [orientdb] Re: Hackaton!

2014-03-25 Thread Luca Garulli
Thanks to everybody. The next hackathon (but hack-a-ton sounds even cooler) will be on April 1st. I'd say a perfect date ;-) *The draft rules are (please contribute to improve it):* 1. Committers will support contributors and new users on Hackaton 2. A new Google Hangout will be created, so

[orientdb] Re: Released OrientDB 1.7-rc2: new Query Timeline in Studio and 62 bugs fixed

2014-03-25 Thread odbuser
Is the 1.7-rc2 release safe to use for users that were using 1.6.x? In other words is this the version you'd expect everyone to use if they can upgrade from previous releases? Will there be an rc3 or 1.7? The reason I ask is that I'm usually unclear which version I should use (for production)

Re: [orientdb] Re: Groovy querying

2014-03-25 Thread Andrey Lomakin
Hi What is result of g.v("#21:7").as("person").both("RELATED").loop("person"){it.id.toString() != "#16:10" && it.loops < 4}.has('@class','Name').path() ? On Tue, Mar 25, 2014 at 6:26 PM, Andrey Yesyev wrote: > Okay, now I'm pretty sure there is a bug here. > > I changed my queries, instead of c

[orientdb] Re: Released OrientDB 1.7-rc2: new Query Timeline in Studio and 62 bugs fixed

2014-03-25 Thread Fabrizio Fortino
Cool! Thanks for the good work. Two questions: 1) Should I get any performance improvement on ORDER BY queries against normal fields (not indexed)? 2) Do you have an estimation date for release 1.7? Thanks, Fabrizio On Tuesday, March 25, 2014 4:07:20 PM UTC, Lvc@ wrote: > > Orient Technologie

[orientdb] Re: Groovy querying

2014-03-25 Thread Andrey Yesyev
Okay, now I'm pretty sure there is a bug here. I changed my queries, instead of checking 'id' value, I'm checking property '@class', it works this way. g.v("#21:7").as("person").both("RELATED").loop("person"){it.object.id != "#16:10" && it.loops < 4}.filter{it.getProperty('@class')=='Name'}.pat

[orientdb] Released OrientDB 1.7-rc2: new Query Timeline in Studio and 62 bugs fixed

2014-03-25 Thread Luca Garulli
Orient Technologies has just released the second and last Release Candidate for OrientDB v1.7. To download OrientDB 1.7-rc2 goto: http://www.orientechnologies.com/download/ *So what's new?* This release is more focused on bug fixing. We fixed a total of 62 bugs

Re: [orientdb] Warnings and errors when using OrientGraph to create vertex and edge types

2014-03-25 Thread odbuser
pre-1.7rc2 (and maybe 1.7rc1 I'm not sure) OrientGraphBase graphNoTx = new OrientGraphNoTx(url); OrientGraphBase graphTx = new OrientGraph(url); post-1.7rc2 OrientGraphFactory factory = new OrientGraphFactory(url, user, password) OrientGraphBase graphNoTx = factory.getNoTx(); OrientGraphBase graph

Re: [orientdb] Warnings and errors when using OrientGraph to create vertex and edge types

2014-03-25 Thread luxcodex
Hi, I have the same problem, (orientdb-community-1.7-rc1) What if I need to create new Classes (Edge) dynamically? I can't use external scripts, classes are created dynamically based on query results... /Lux Il giorno lunedì 19 agosto 2013 13:51:24 UTC+2, Lvc@ ha scritto: > > You could create a

[orientdb] Re: Hackaton!

2014-03-25 Thread odbuser
I like this idea. I'd like to participate. PS is it hack-a-ton or hackathon? Either works :0) -- --- 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, send an email to orient-databas

[orientdb] Release Schedule

2014-03-25 Thread odbuser
Is there a release schedule? I'd like to move to 1.7rc2 but the actual release seems to keep moving without notice - not that I'm entitled to it... Also, what is the plan in terms of the next releases? Will there be a 1.7rc3 or just 1.7? And when is 2.0 expected? I'm just concerned b/c in the

[orientdb] Groovy querying

2014-03-25 Thread Andrey Yesyev
Hi there, Trying to find all paths between 2 vertices using Gremlin/Groovy This query returns many paths g.v("#21:7").as("person").both("RELATED").loop("person"){it.object.id != "#16:10" && it.loops < 4}.path so, I'm trying to filter out unwanted using filter or has g.v("#21:7").as("person").b

Re: [orientdb] Small issues on Studio

2014-03-25 Thread Andrey Lomakin
Hi Fabrizio, Could you create issue in bug tracker for this bug ? On Tue, Mar 25, 2014 at 4:46 PM, Fabrizio Fortino < fabrizio.fort...@gmail.com> wrote: > Hi guys, > > I just noticed the following small issues on latest version of Studio: > > 1. Running a query with order by on numeric fields St

[orientdb] Small issues on Studio

2014-03-25 Thread Fabrizio Fortino
Hi guys, I just noticed the following small issues on latest version of Studio: 1. Running a query with order by on numeric fields Studio shows the records in wrong order. It is not a server problem since the same query executed with Content Type CSV returns the correct result. 2. Text field in

Re: [orientdb] Strange problem: java.lang.NullPointerException [ONetworkProtocolHttpDb]

2014-03-25 Thread MrFT
I added to ./config/orientdb-server-config.xml and restarted ./bin/server.sh but I don't see a full stacktrace. Where can I find enable that? Op dinsdag 25 maart 2014 14:27:39 UTC+1 schreef Lvc@: > > Can you send us the full stack trace please? > > Lvc@ > > > > On 25 March 2014 13:15, MrFT >

Re: [orientdb] Some questions (confused)

2014-03-25 Thread Luca Garulli
On 25 March 2014 12:20, MrFT wrote: > Hello, > > This query, that I use to check if an edge already exists before creating > a new one, is very slow: > > select in.key, out.vskoNumber from controls where out.vskoNumber = '2476' > AND in.key = 'a2a3fd48-a3a4-11e3-ace8-005056872b95' > > Could this

Re: [orientdb] Which is better performing ?

2014-03-25 Thread Luca Garulli
Hi, the first case should be faster. Please consider also this: doc = db.newInstance("Class Name"); doc.field("firstName", "Test1 Name", "lastName", "Test2 Name" ,"isEnabled", true); Lvc@ On 25 March 2014 12:37, Gaurav Dhiman wrote: > Which out of below cases of inserting / updating documen

Re: [orientdb] Strange problem: java.lang.NullPointerException [ONetworkProtocolHttpDb]

2014-03-25 Thread Luca Garulli
Can you send us the full stack trace please? Lvc@ On 25 March 2014 13:15, MrFT wrote: > Sorry, > > I guess it's not fixed yet. > I had another problem (some message about something being locked by > another process, so failed to unlock). > That has been solved by the snapshot version. > > But

Re: [orientdb] How to find paths between 2 vertices

2014-03-25 Thread Andrey Yesyev
I've got one questions. I found this article http://gremlindocs.com/#recipes/shortest-path There is an approach described how to do that more efficiently, using store/except pattern gremlin> s = [root] as Set ==>v[0] gremlin> target = '99'; c = 0; root.both().except(s).store(s).sideEffect{c ++}.

Re: [orientdb] How to find paths between 2 vertices

2014-03-25 Thread Andrey Yesyev
Thanks for your comments, Andrey. On 25 March 2014 01:45, Andrey Lomakin wrote: > HI Andrey. > So you have following options: > 1. we have shortestPath function to find short path. > 2. You can use traverse, it start from link which you provided and go > through all links are present in doucume

Re: [orientdb] Strange problem: java.lang.NullPointerException [ONetworkProtocolHttpDb]

2014-03-25 Thread MrFT
Sorry, I guess it's not fixed yet. I had another problem (some message about something being locked by another process, so failed to unlock). That has been solved by the snapshot version. But I still have the NullPointerException. How can I best send the database to you for testing? Op dinsd

[orientdb] Which is better performing ?

2014-03-25 Thread Gaurav Dhiman
Which out of below cases of inserting / updating documents is better performing (less time and resource consuming), considering 15 to 20 fields in document. *Case 1:* *==* doc = db.newInstance("Class Name"); doc.field("firstName", "Test1 Name"); doc.field("lastName", "Test2 Name"); doc.field

[orientdb] Some questions (confused)

2014-03-25 Thread MrFT
Hello, This query, that I use to check if an edge already exists before creating a new one, is very slow: select in.key, out.vskoNumber from controls where out.vskoNumber = '2476' AND in.key = 'a2a3fd48-a3a4-11e3-ace8-005056872b95' Could this be speeded up? If so how? By enabling indexing on t

Re: [orientdb] Strange problem: java.lang.NullPointerException [ONetworkProtocolHttpDb]

2014-03-25 Thread Luca Garulli
Ok, good news. Lvc@ On 25 March 2014 11:59, MrFT wrote: > > So far, everything seems to be working ok with the latest snapshot. > > If I experience similar problems later on, I will let you know asap. > > > > > Op dinsdag 25 maart 2014 11:04:51 UTC+1 schreef Lvc@: >> >> Hi, >> we're closing 1.

Re: [orientdb] Strange problem: java.lang.NullPointerException [ONetworkProtocolHttpDb]

2014-03-25 Thread MrFT
So far, everything seems to be working ok with the latest snapshot. If I experience similar problems later on, I will let you know asap. Op dinsdag 25 maart 2014 11:04:51 UTC+1 schreef Lvc@: > > Hi, > we're closing 1.7rc2 i the next 2 hours. If the error persists, could you > send me your da

Re: [orientdb] Strange problem: java.lang.NullPointerException [ONetworkProtocolHttpDb]

2014-03-25 Thread Luca Garulli
Hi, we're closing 1.7rc2 i the next 2 hours. If the error persists, could you send me your database to reproduce the problem? We could include it in 1.7rc2. Lvc@ On 25 March 2014 10:43, MrFT wrote: > > Hello, > > > I am using orientdb-community-1.7-rc1 > > I will try to find that snapshot vers

Re: [orientdb] Strange problem: java.lang.NullPointerException [ONetworkProtocolHttpDb]

2014-03-25 Thread MrFT
Hello, I am using orientdb-community-1.7-rc1 I will try to find that snapshot version, and see what happens there, and report back. Op dinsdag 25 maart 2014 09:30:10 UTC+1 schreef Lvc@: > > Hi, > first question: what release are you using? Have you already tried with > last 1.7rc2-SNAPSH

Re: [orientdb] Remove embeddedset item by reference?

2014-03-25 Thread Luca Garulli
Hi, You're right, we missed this simple syntax to remove item from Lists: update #5:12 remove 0 <- there 0 is the position. Please could you open a new issue for that? Lvc@ On 24 March 2014 22:33, Jonathan Rosen wrote: > let's say i have an embedded set field "people" in record #5:12: > >

Re: [orientdb] Strange problem: java.lang.NullPointerException [ONetworkProtocolHttpDb]

2014-03-25 Thread Luca Garulli
Hi, first question: what release are you using? Have you already tried with last 1.7rc2-SNAPSHOT? Lvc@ On 25 March 2014 00:41, MrFT wrote: > Hello, > > I get: > > 2014-03-25 00:14:41:182 SEVE Internal server error: > java.lang.NullPointerException [ONetworkProtocolHttpDb] > > When creating a

Re: [orientdb] Re: Setting up development environment for OrientDB source code

2014-03-25 Thread Andrey Lomakin
HI, You can use community edition of IntelliJ it is completely free and has all what you need for OrientDB development. On Mon, Mar 24, 2014 at 9:29 PM, wrote: > > idea from Jetbrains is great if you don't mind paying a bit :) > > > On Monday, 24 March 2014 18:43:51 UTC, Ameer Tamboli wrote: >>