[orientdb] unsubscribe

2023-10-15 Thread W. Craig Trader
unsubscribe -- --- 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-database+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: [orientdb] OrientDB - Using the value of a type in another record

2016-07-19 Thread W. Craig Trader
Paul ... You should check out OrientDb Hooks (http://orientdb.com/docs/2.1/Hook.html) which function like triggers in traditional databases. - Craig - On Jul 11, 2016 18:10, "Paul I Bloom" wrote: > After I create a record, I would like to use the value from one of the >

Re: [orientdb] Gremlin server support in OrientDB V 2.1.5

2015-11-22 Thread W. Craig Trader
The version of Gremlin that ships with OrientDB is 2.6.0; you're trying to use features from Gremlin 3, which is not supported with OrientDB. - Craig - On Nov 20, 2015 08:28, "subhash padala" wrote: > > > Am trying to render the graph from OrientDB through the Gremlin

Re: [orientdb] Re: Why a proprietary storage engine?

2015-10-26 Thread W. Craig Trader
> > > *About the Authors*Ian Robinson is the co-author of REST in Practice > (O'Reilly Media, 2010). Ian is an engineer at Neo Technology, working on a > distributed version of the Neo4j database. Prior to joining the engineering > team, Ian served as Neo's Director of Customer Success, managing

Re: [orientdb] Open Cypher

2015-10-25 Thread W. Craig Trader
For now. Leads disappear if you stop and rest on your laurels. - Craig - On Oct 25, 2015 07:51, "scott molinari" wrote: > Thanks Craig. So, we could say, Tinkerpop has a good bit more of a head > start than Open Cypher? > > Scott > > -- > > --- > You received this

Re: [orientdb] Open Cypher

2015-10-23 Thread W. Craig Trader
As the saying goes, the wonderful thing about standards is that there are so many to choose from. Having a standardized query language has been very good for relational databases, because it means that (1) developers can (theoretically) retarget their applications to a newer/better RDBMS with

Re: [orientdb] Are the number of classes limited in a database?

2015-10-18 Thread W. Craig Trader
Seems reasonable. I'm trying to picture how having 30K+ classes is a serious limit. I've seen ontologies that had a couple thousand classes, but those were usually through kitchen-sink-level of including other data schemas, with most of those classes unpopulated by data. I'm pretty sure I could

Re: [orientdb] Massive Insert of Edges

2015-10-16 Thread W. Craig Trader
Simon ... AFAIK, you either use LW edges or HW edges -- there is no in-between; You choose when you create the database before you create your classes. Admittedly, I haven't played with trying to create a graph with both LW and HW edges. Orient Studio will work with either style of edges. The

Re: [orientdb] ODB download links on orientdb.com

2015-10-16 Thread W. Craig Trader
I use the following shell script to download the binary and source for each release: #! /bin/bash release=${1} storage=${HOME}/Software/orientdb binary="http://orientdb.com/download.php; source="https://github.com/orientechnologies/orientdb/archive; # Community release wget -O

Re: [orientdb] Massive Insert of Edges

2015-10-16 Thread W. Craig Trader
Simon ... Are you using light-weight edges, or heavy-weight edges for your application? OrientDB represents LW edges as properties of the nodes they link, whereas HW edges are represented as unique objects and the nodes link to the the edges, which maintain the links to the opposite nodes. An

Re: [orientdb] Re: OrientDB graph: How to use Java API to create a new Record?

2015-10-14 Thread W. Craig Trader
That's a good answer, why did you delete it from StackOverflow, where the question was originally asked? - Craig - On Oct 14, 2015 04:58, wrote: > Hi, try this code > > OrientGraphFactory ogf = new OrientGraphFactory( >

Re: [orientdb] Re: [announcement] Moving to StackOverflow!

2015-10-13 Thread W. Craig Trader
Something to keep in mind about StackOverflow is that there are certain types of questions that will get closed immediately: questions that require value comparisons between various products; SO is only for technical questions with measurable answers (How do I do X?), not conversations. What ever

Re: [orientdb] Are Gremlin statements converted to OSQL?

2015-09-23 Thread W. Craig Trader
Valery ... Gremlin is a Domain Specific Language (DSL) written in Groovy, which compiles to bytecode on the JVM, just like Java, but it is not compiled to Java. - Craig - On Fri, Sep 18, 2015 at 3:49 PM, Valery T wrote: > Does Gremlin connector for OrientDb convert

Re: [orientdb] SQL x Java performance

2015-09-14 Thread W. Craig Trader
The SQL API is written on top of the Java document API. The Graph API is also written on top of the Java document API. Thus, in general, using the document API should be faster, if you're using it optimally, but that may involve a lot more coding. Depending on what you're doing, it may be easier

Re: [orientdb] Re: Difference between graph shutdown and graph drop?

2015-07-02 Thread W. Craig Trader
Nandan ... Graph.shutdown() effectively closes a connection (the OrientGraph object) -- use it early and often, but only when you're done with the connection. Graph.drop() will remove the database from memory, disk, etcetera -- only use with caution! In my unit tests, I create an in-memory

[orientdb] Apparently OrientDB 2.0.11 released(?)

2015-06-23 Thread W. Craig Trader
http://orientdb.com/download/ https://github.com/orientechnologies/orientdb/issues?q=milestone%3A2.0.11+is%3Aclosed Why no announcement here, release notes, etcetera? - Craig - -- --- You received this message because you are subscribed to the Google Groups OrientDB group. To unsubscribe

Re: [orientdb] Is there any one who is using Jersey and OrientDb?

2015-06-22 Thread W. Craig Trader
Chaitanya ... We have a custom OrientGraphDatabase object that we inject with Spring. The OrientGraphDatabase owns the OrientGraphFactory and returns transactional or non-transactional graphs for other components. - Craig - On Sat, Jun 20, 2015 at 1:26 PM, Chaitanya chaitanya9...@gmail.com

Re: [orientdb] Is there any one who is using Jersey and OrientDb?

2015-06-22 Thread W. Craig Trader
I believe we've got a shutdown hook hanging off the entire application that cleans up, but don't quote me. On Mon, Jun 22, 2015 at 12:52 PM, Enrico Risa enrico.r...@gmail.com wrote: Then you don't want to close it manually? 2015-06-22 18:46 GMT+02:00 W. Craig Trader craig.tra...@gmail.com

Re: [orientdb] Lightweight Edge Inheritance

2015-06-17 Thread W. Craig Trader
of lightweight edges, Orient should iterate over all vertices, but for each one it could consider only the out_A field, which is smaller. What do you think about it? Cheers, Riccardo 2015-06-17 13:22 GMT+02:00 W. Craig Trader craig.tra...@gmail.com: To expand on this a little, all

Re: [orientdb] strategy for updating edges for a vertex (orphan handling etc.) via Java API

2015-06-17 Thread W. Craig Trader
Martin ... The application that I'm building has a web front-end and a bunch of backend processes that generate updates to the graph. Each update is represented as a JSON document that defines the operations that will take place (upsert, detach, delete), the nodes / edges that will be affected,

Re: [orientdb] Lightweight Edge Inheritance

2015-06-17 Thread W. Craig Trader
To expand on this a little, all edges are represented as hybrid entities. In Riccardo's example, if you examine the properties of the nodes he created, they will look like this: select * from V where name = 'a' ++--+++-- #

Re: [orientdb] OrientDB v2.1 and changes in Multi-Threading

2015-06-10 Thread W. Craig Trader
Luca ... How does this interact with the Graph API? We've already experienced interesting ... quirks ... from converting our code from 1.7 to 2.0. (Specifically, accessing graph objects after their associated graph is closed.) - Craig - On Jun 10, 2015 04:36, Luca Garulli l.garu...@orientdb.com

Re: [orientdb] A Cool Roadmap

2015-06-09 Thread W. Craig Trader
As the person who asked the question that Luca so graciously answered, I will note that: 1. I was asking about specific releases, and 2. OrientDB is currently openly testing 2.1rc3, in the same way that they used candidate releases for 2.0, and as I would expect them to do in the future. You can

Re: [orientdb] Re: What is the difference between plocal and remote ?!!!

2015-06-08 Thread W. Craig Trader
Well, any language that doesn't run on the Java VM. So Groovy, jRuby, Scala, Clojure would all be fine candidates to use plocal. - Craig - On Mon, Jun 8, 2015 at 2:01 PM, scott molinari scottamolin...@googlemail.com wrote: So, I would be correct in saying, if my application is written in any

Re: [orientdb] How fast should OrientGraph.query() be?

2015-06-02 Thread W. Craig Trader
in tinkerpop) into SQL+ queries in order to leverage the claims of orient's speed. If i'm wrong in this, let me know On Mon, Jun 1, 2015 at 11:33 PM, W. Craig Trader craig.tra...@gmail.com wrote: Nick ... Much like you told the SQL engine to use an index (select * from

Re: [orientdb] How fast should OrientGraph.query() be?

2015-06-02 Thread W. Craig Trader
Nick ... Much like you told the SQL engine to use an index (select * from INDEX:V.testProperty ...), you need to explicitly use indexes from the graph API, as follows: *Java:* OrientVertex result = g.getVertices( V.testProperty, cbc6b219-9df3-44c5-90b2-ab7a6bd9bf7e ).iterator().next();

[orientdb] OrientGraph behavior change 1.7 - 2.0

2015-05-27 Thread W. Craig Trader
In OrientDB 1.7, it was possible to write code like this: OrientGraph g = factory.getTx() def vertex = g.getVertices( ... ) g.shutdown() def record = vertex.getRecord() def json = record.toJSON( fetchPlan ) This would get a JSON representation of the vertex (and other data, depending on the

Re: [orientdb] whether exists a corresponding API in OrientDB can judge two vertexs are connected by a edge?

2015-05-23 Thread W. Craig Trader
For a concrete example that does this, see http://github.com/wcraigtrader/ogp, which I built to measure the performance of edge lookups. - Craig - -- --- You received this message because you are subscribed to the Google Groups OrientDB group. To unsubscribe from this group and stop

Re: [orientdb] Any 2.0.8 and 2.0.9 changelog ?

2015-05-19 Thread W. Craig Trader
You want to check the GitHub issues: Milestone 2.0.8: https://github.com/orientechnologies/orientdb/issues?q=milestone%3A2.0.8 Milestone 2.0.9: https://github.com/orientechnologies/orientdb/issues?q=milestone%3A2.0.9 On Tue, May 19, 2015 at 8:28 AM, NY nysa...@gmail.com wrote: Can't find

Re: [orientdb] Unable to connect to database from Java when orientdb is running

2015-05-16 Thread W. Craig Trader
Hi! The plocal: connector assumes single-connection control of the database. If you're using the OrientDB server, then you want to use the remote: connector. - Craig - On Fri, May 15, 2015 at 11:02 AM, Kalatheeswaran TM tmkra...@gmail.com wrote: Hi, I am unable to connect to database from

Re: [orientdb] How to use unique index on a vertex

2015-05-14 Thread W. Craig Trader
Congratulations, you have found a 'quirk' AKA 'bug'. You're creating indexes correctly, but Orient isn't actually using them, courtesy of the bug. In short, graph.addVertex() is creating the node, since it has no properties. If you had set the individual properties one at a time, the

Re: [orientdb] How to use unique index on a vertex

2015-05-13 Thread W. Craig Trader
Instead of this: person.createIndex(nameIdx, OClass.INDEX_TYPE.UNIQUE, name); Try using this: final Parameter?, ? UNIQUE_INDEX = new ParameterString, String(type, UNIQUE_HASH_INDEX); graph.createKeyIndex(name, Vertex.class, new ParameterString, String(class, Person), UNIQUE_INDEX); Which

Re: [orientdb] Removing/Deleting an Edge in Java

2015-05-13 Thread W. Craig Trader
Have a look at the code examples attached to this issue ( https://github.com/orientechnologies/orientdb/issues/4105). The example code shows ways to locate an edge, in order to update its properties, but once you've located it, you can delete it as well. The simple (no indexes) implementation is

Re: [orientdb] getting records by index with Java API

2015-04-27 Thread W. Craig Trader
From a quick inspection of the source code https://github.com/orientechnologies/orientdb/blob/master/graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientBaseGraph.java, it would appear that that method is intended for use with single-part keys only. The only method that appears to

Re: [orientdb] Re: A taste of OrientDB 2.1

2015-04-27 Thread W. Craig Trader
Try it again with 'SKIP 0 LIMIT 10' after the 'ORDER BY orderNbr DESC' clause. - Craig - On Mon, Apr 27, 2015 at 3:14 PM, Thomas Müller oberinspec...@googlemail.com wrote: ORDER BY does not work anymore in OrientDB 2.1RC1... so it's not implemented yet and not a bug to open a ticket?

Re: [orientdb] Pure in-memory setup without any disk usage

2015-04-16 Thread W. Craig Trader
The disk cache that messge refers to is the amount of memory available to cache data that would normally be stored on disk, not the amount of disk being used to cache data that would otherwise be in RAM. An in-memory database uses no disk space (unless your OS pages your process to disk, in which

Re: [orientdb] Migrating to OrientDB 2.0.X, ODatabaseRecordTx is now what?

2015-04-15 Thread W. Craig Trader
Emanuel ... Thanks for the response. We're using ODatabaseListener, implementing the onBeforeTxCommit(), onAfterTxCommit(), and onClose() methods. - Craig - On Wed, Apr 1, 2015 at 7:35 AM, Emanuel emanuele.tagliafe...@gmail.com wrote: It shoudl be ODatabaseDocumentTx, by the way which

Re: [orientdb] OMultiCollectionIterator.hasNext() takes long time in cpu profile using JMC 5.4

2015-04-02 Thread W. Craig Trader
Do you have any code samples for creating (1) composite indexes using the Java API, and (2) indexes on edges using the Java API? On Thu, Nov 6, 2014 at 9:08 AM, Luca Garulli l.garu...@gmail.com wrote: Hi Adithyan, The idea of supporting a countEdges() in OrientVertex is good. Could you create

Re: [orientdb] running a gremlin query in groovy using groovyc , code examples

2015-03-28 Thread W. Craig Trader
What you're missing is (1) initializing Gremlin, and (2) collecting results. To initialize Gremlin, your code needs to execute the following once (and preferably only once): import com.tinkerpop.gremlin.groovy.Gremlin Gremlin.load() Once you've done that, you can run your query. Right now

Re: [orientdb] Hooks on vertices and edges

2015-03-27 Thread W. Craig Trader
David ... In the short term, please share with the group. - Craig - On Fri, Mar 27, 2015 at 10:44 AM, David Carr dcarr...@gmail.com wrote: Followup questions: 1. I'm using orientdb server version 2.0.5 so classes V and E are already there by default as soon as I create the database. Can

Re: [orientdb] OrientDB and Gremlin : Commit not working for arrays

2015-03-25 Thread W. Craig Trader
Ivan ... The problem that you're having is one that I had as well. The problem is that when you call getProperty() on an embedded set or embedded list, you're getting back a Java collection object (either a HashSet or ArrayList), but it is not monitored by Orient in any way. You're making