[orientdb] Re: Java API - get the last out_edge of a certain type

2014-03-06 Thread stefan
bump On Wednesday, 5 March 2014 11:10:07 UTC, ste...@activitystream.com wrote: Hi, I need to get the most recently added edge for a certain edge type. I there a better alternative for this to get to the last (most recent) IN edge: Edge mostRecentEdge = null; for (Edge next :

[orientdb] Re: Sharding in OrientDB

2014-03-06 Thread stefan
Hi, I believe this is planned for version 2 but I'm no authority on anything here :). Regards, -Stefan On Wednesday, 5 March 2014 11:42:24 UTC, hussain k wrote: Hello, Do we have Sharding feature available for the graph version of orientdb? If yes then can someone provide with the

Re: [orientdb] Why OUser / ORole are not subclasses of ORestricted ??

2014-03-06 Thread Andrey Lomakin
Hi Gaurav, You are right. We have this in the pool of our tasks to complete and I think it even will be good to have in final 1.7 version. Could you kindly create issue in bug tracker to make this possible ? On Wed, Mar 5, 2014 at 3:45 PM, Gaurav Dhiman gau...@techzulla.com wrote: Hi, As

Re: [orientdb] [1.7-rc1] Duplicate Edges

2014-03-06 Thread Andrey Lomakin
Hi, You can create unique index for edges, if you would like to be sure that you have only one relation for 2 vertexes you should disable lightweight edges and create composite index for in and out fields of edge class. So every time you will have duplication exception will be thrown and

Re: [orientdb] Java bindings and 1.7-rc1

2014-03-06 Thread Andrey Lomakin
Hi, I think you use blueprints-orientdb jar it is not needed any more. Use only orientdb-graphdb artifact. On Wed, Mar 5, 2014 at 5:46 PM, Giuseppe Profiti profgiuse...@gmail.comwrote: Hello, I'm trying to access a local instance of OrientDB (1.7-rc1) using Tinkerpop in Java (imported using

Re: [orientdb] Java bindings and working instance

2014-03-06 Thread Andrey Lomakin
Hi, I answered you in other thread. On Tue, Mar 4, 2014 at 8:44 PM, Giuseppe Profiti profgiuse...@gmail.comwrote: Hello, I was testing the java bindings (com.tinkerpop.blueprints) against the 1.6.1 version. Since I read something about problems with the local/plocal databases, I

Re: [orientdb] Inserts not showing up

2014-03-06 Thread Andrey Lomakin
Hi, You can not work with embedded database in server mode, if you use stuidio you should use remote connection to running server instance. On Thu, Mar 6, 2014 at 1:44 AM, Bruno René Santos brunor...@gmail.comwrote: Hi, I used the code below to populate a DB. The problem is that everything

Re: [orientdb] Inserts not showing up

2014-03-06 Thread Bruno René Santos
How can i setup a remote connection? I tried remote:localhost/moviedb but I got an error Quinta-feira, 6 de Março de 2014 10:46:38 UTC, Andrey Lomakin escreveu: Hi, You can not work with embedded database in server mode, if you use stuidio you should use remote connection to running server

Re: [orientdb] Inserts not showing up

2014-03-06 Thread Andrey Lomakin
Hi, Which one ? On Thu, Mar 6, 2014 at 12:54 PM, Bruno René Santos brunor...@gmail.comwrote: How can i setup a remote connection? I tried remote:localhost/moviedb but I got an error Quinta-feira, 6 de Março de 2014 10:46:38 UTC, Andrey Lomakin escreveu: Hi, You can not work with embedded

Re: [orientdb] 1.7-rc2 Memory Issue -- Unexpected loss of data

2014-03-06 Thread Andrey Lomakin
Hi, OK lets start with following could you use noTx db version and disable wal by using setting storage.useWAL=flase and repeat test ? On Wed, Mar 5, 2014 at 4:41 PM, Shishya prabha...@gmail.com wrote: I am doing read, then insert or update as per the processing logic. read i cluster and

Re: [orientdb] UNION function

2014-03-06 Thread Shishya
Hi, Is union there in v1.7rc2SS. I m getting this error No function for name union, available names are : [asdate,ifnull,both,last,count ,distinct ,substring, avg,right,dijkstra,encode,append,coalesce,eval,ine,label,format,asdatetime,include,difference,asdecimal,decode,sysdate,intersect,inv,

Re: [orientdb] Why OUser / ORole are not subclasses of ORestricted ??

2014-03-06 Thread Gaurav Dhiman
Thanks Andrey for confirming. Created an issue in bug tracker, here is the link - https://github.com/orientechnologies/orientdb/issues/2095 Regards, Gaurav On Thursday, March 6, 2014 4:08:00 PM UTC+5:30, Andrey Lomakin wrote: Hi Gaurav, You are right. We have this in the pool of our tasks

Re: [orientdb] UNION function

2014-03-06 Thread Andrey Lomakin
What is your query ? Guys, could you provide full information, like: 1. detailed use case 2. thrown exception if any. 3. test case or sample db if needed or possible. Otherwise we spend time on discovering details instead of problem solving :-) . On Thu, Mar 6, 2014 at 1:10 PM, Shishya

[orientdb] [BUG] - Exception while uploading image through Studio

2014-03-06 Thread Gaurav Dhiman
Hi, [BUG Reporting] Environment - I am using rc-1 version on windows 8 Issue - Get exception error message while uploading image using OrientDB Studio. Kindly refer attached screenshot Steps to reproduce: 1. Login to OrientDB Studio using admin 2. Edit a record in studio in some class that have

[orientdb] Re: UNION function

2014-03-06 Thread Damian Bronecki
In 1.7 union is replaced by unionall -- --- 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. For more options, visit

Re: [orientdb] Re: UNION function

2014-03-06 Thread prabhat
Thanks Damian, I tried using unionall but it gives an object. My query is select unionall(id,year),month from #11:111 I get +-++- # |@RID |unionall|month +-++- 0 |#-2:1|[2] |sep +-++- When I try this, I get select

[orientdb] Re: Uploading image / file to OrientDB through REST APIs

2014-03-06 Thread Gaurav Dhiman
Thanks Stefan for your response. Yes I understand that storing images in class attributes is not the best way (referencehttps://github.com/orientechnologies/orientdb/wiki/Binary-Data), but I need at least some way to store images in OrientDB, whatever it is. My app will have images for user

[orientdb] Request to document uploadSingleFIle REST API

2014-03-06 Thread Gaurav Dhiman
@LucaMolino, Can you take out some time to document the usage (with example) of uploadSingleFile HTTP command that is implemented by you. Many people on community will appreciate that as looking at it seems many are struggeling to upload BLOB / images to OrientDB. I am hopeful that you will

Re: [orientdb] Java bindings and 1.7-rc1

2014-03-06 Thread Giuseppe Profiti
Thanks Andrey, adding orientdb-graphdb as dependency did the trick. Best, Giuseppe Il giorno giovedì 6 marzo 2014 11:44:40 UTC+1, Andrey Lomakin ha scritto: Hi, I think you use blueprints-orientdb jar it is not needed any more. Use only orientdb-graphdb artifact. On Wed, Mar 5, 2014 at

[orientdb] The fastest way to query edges

2014-03-06 Thread Andrey Yesyev
Hi there, I need to find an edge between 2 vertices. In my schema there can be only one edge between 2 vertices. I tried this 2 options 1. Using query select from RELATED where in = :target and out = :src RELATED is a class of the edge I'm looking for. 2. Using API vSrc.getEdges(vTarget,

Re: [orientdb] OIndexException: Error during loading of record with id : #14:1

2014-03-06 Thread Andrey Yesyev
I just realize that you responded my deleted post. The problem was in my application. DB works fine. That's why I deleted this post. Thanks though! -Andrey On Thursday, March 6, 2014 8:44:33 AM UTC-5, Andrey Lomakin wrote: Hi Andrey, Are you able to reproduce issue ? On Wed, Mar 5, 2014 at

[orientdb] Re: The fastest way to query edges

2014-03-06 Thread Andrey Yesyev
I'll proceed with my search. Now, I try to use index for edge, here is how I created it OrientEdgeType edgeType = graph.createEdgeType(RelationType.RELATED.name()); edgeType.createProperty(in, OType.LINK); edgeType.createProperty(out, OType.LINK); edgeType.createIndex(relations,

[orientdb] Re: The fastest way to query edges

2014-03-06 Thread Andrey Yesyev
Okay, looks like everything after OR was excessive. Query works in this shape select from index:relations where key = [ :target, :src ] Using index, performance improved 10 times. Not bad. On Thursday, March 6, 2014 10:41:55 AM UTC-5, Andrey Yesyev wrote: I'll proceed with my search. Now,

Re: [orientdb] Re: Transitioning to 1.7-rc1 from 1.6.3

2014-03-06 Thread Andrey Lomakin
Hi Odysseas, Answer from user about this exception. I just realize that you responded my deleted post. The problem was in my application. DB works fine. That's why I deleted this post. Thanks though! -Andrey Looking forward for your test case. On Wed, Mar 5, 2014 at 6:49 PM, Odysseas

Re: [orientdb] TinkerPop is underselling OrientDB

2014-03-06 Thread Luca Garulli
Hi guys, thanks to focus on this topic. I'm open to any cool idea to improve out SQL language. Please can you write a couple of example to Cypher query against OrientDB SQL to understand: 1) what is missed in OrientDB, maybe as Charles said we could implement new functions 2) if we already can use

[orientdb] Moving from MongoDB to OrientDB - Architecture

2014-03-06 Thread Mitul Golakiya
Hello All, I am new to OrientDB and we want to move from MongoDB to OrientDB. Because at this stage we have very complex requirements of joins between tables(means our modules) and also we are facing huge problem of memory consumption. We have a different modules into our system like persons,

[orientdb] Graph DB is corrupted [ 'database.ocf' was not closed correctly last time]

2014-03-06 Thread Devid Wenham
Hi all, We had a seen an odd issue in our recent tests with Orient DB. I am dubious whether this is the correct test case to reproduce or not., We had closed Orient DB console directly as a process of shutting down the server, and restarted the Orient DB server. Then some sort of messages were

Re: [orientdb] dot notation vs traverse ?

2014-03-06 Thread cp2
Andrey -- I get a Null Pointer exception. repro detail after signature below: Thanks, Charles create class continent extends v --Class created successfully. Total classes in database now: 11 create class country extends v --Class created successfully. Total classes in database now: 12

[orientdb] console logs all commands to .orientdb_history

2014-03-06 Thread cp2
Took me a while to find this, so I thought I would post it: The console logs every command to the hidden file current dir */.orientdb_history* where current dir is usually orientdb dir/bin Thanks. -Charles -- --- You received this message because you are subscribed to the Google Groups

[orientdb] Re: The fastest way to query edges

2014-03-06 Thread stefan
Hi, Out of curiosity, why are you creating a in/out property for the edge manually? Regards, -Stefan On Thursday, 6 March 2014 16:23:33 UTC, Andrey Yesyev wrote: Okay, looks like everything after OR was excessive. Query works in this shape select from index:relations where key = [

Re: [orientdb] Re: [SPOILER ALERT!] OrientDB 1.7-rc2: Walk through the graph

2014-03-06 Thread odbuser
It is working fine for me under Java 7u51 and 8b129. Are you sure that you are doing a clean install? Are you sure that it is running the version of Java that you think it is? What OS? I have a local git directory: git pull ant clean installg cd

[orientdb] Retrieving JSON Tree From Graph

2014-03-06 Thread Thomas Kennedy
Hi, I have a tree structure in orient that I want to transform into the JSON format like below. I am using D3.js and would like the data returned in the correct format. Does anybody the correct way to do this in Orient? TIA Tom Orient Tree node1 node2 node3 node4 ... .. JSON

Re: [orientdb] dot notation vs traverse ?

2014-03-06 Thread odbuser
OrientDB 1.7rc2 from a few hours ago: Changing the syntax for traversing the edge works. out().out() is the preferred syntax but it doesn't work. This works: select out_.out_ from continent where name = 'europe' Or better yet: select expand(out_.out_) from continent where name = 'europe' I'd