Re: [orientdb] Moving from MongoDB to OrientDB - Architecture

2014-03-07 Thread Ameer Tamboli
Hi Mitul, I think you should have something like this: create class Phone extends V; create property Phone.phoneId STRING; create property Phone.phone STRING; create class Email extends V; create property Email.emailId STRING; create property Email.email STRING; create class Address extends V;

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

2014-03-07 Thread Ameer Tamboli
Hi, Would it make sense to use Base64 encoding for images if the size of the image is small? Regards, Ameer On Thu, Mar 6, 2014 at 11:31 PM, Luca Garulli l.garu...@gmail.com wrote: Hi, the upload with HTTP is pretty buggy and we don't want to invest more time on it, because we've a fork to

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

2014-03-07 Thread Andrey Lomakin
Hi, This is already fixed in 1.7-rc2 we will release it in couple of weeks. On Thu, Mar 6, 2014 at 3:23 PM, Devid Wenham devid.wen...@gmail.com wrote: 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

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

2014-03-07 Thread Andrey Lomakin
The idea is that configuration file was not flushed in this version, but it is already fixed. On Fri, Mar 7, 2014 at 12:16 PM, Andrey Lomakin lomakin.and...@gmail.comwrote: Hi, This is already fixed in 1.7-rc2 we will release it in couple of weeks. On Thu, Mar 6, 2014 at 3:23 PM, Devid

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

2014-03-07 Thread Devid Wenham
Thanks for reply, Can you tell me something about configuration file was not flushed in this version ? When does this happen ? If we do not want to upgrade to 1.7, can we have any fix for this ? Devid On Friday, March 7, 2014 3:47:54 PM UTC+5:30, Andrey Lomakin wrote: The idea is that

Re: [orientdb] Moving from MongoDB to OrientDB - Architecture

2014-03-07 Thread Andrey Lomakin
Hi, You do not need to insert them as separate insertions. Just create all objects at once and store root document everything will be stored and links will be updated automatically. Also with what kind of database do you work graph of document ? if you use document database usage of LINKSET is

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

2014-03-07 Thread Gaurav Dhiman
Till the time, this change is not done, what are the available options to restrict access to OUser and ORole classes ? If we define a role with no access (not even read) to OUser and ORole classes and put non-admin users in that role, will those users be able to change their password and other

Re: [orientdb] Re: The fastest way to query edges

2014-03-07 Thread Andrey Yesyev
Here is that topic https://groups.google.com/forum/#!msg/orient-database/BGEZjg8m2RE/3FrCWyamVIoJ On 6 March 2014 18:23, Andrey Yesyev andrey.yes...@gmail.com wrote: Hm, good question. I found a post here, where I saw how the author of that post did, so I just copy/past it. I'll try to do

Re: [orientdb] Moving from MongoDB to OrientDB - Architecture

2014-03-07 Thread Gaurav Dhiman
Andrey, I am not the original author of this thread :-). Well in my case I am using document type DB. It will be good if you can give example in both cases of document and graph DBs. Regards, Gaurav On Fri, Mar 7, 2014 at 7:36 PM, Andrey Lomakin lomakin.and...@gmail.comwrote: It is possible,

Re: [orientdb] Field / attribute level access restriction ?

2014-03-07 Thread Gaurav Dhiman
Thanks Andrey for response. Can this be added in roadmap ? Its not urgent, but good to have feature. Shall I put it in bug tracker as feature request ? Regards, Gaurav On Fri, Mar 7, 2014 at 7:57 PM, Andrey Lomakin lomakin.and...@gmail.comwrote: Hi Gaurav, Only record restrictions can be

[orientdb] Indexes are not updated until explicit commit in remote databases

2014-03-07 Thread Emanuele Milani
Dear all, This same message is posted on both the OrientDB and Gremlin-users groups, as I do not know whether this issue is related to Blueprints or OrientDB. For quite some time I have been using KeyIndexes (as in KeyIndexableGraph) with an embedded (database url starting with (p)local:)

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

2014-03-07 Thread stefan
Hi, I think recent changes in the SQL approach makes this possible but the Java API seems to be a narrow subset. Am I wrong? Regards, -Stefán On Thursday, 6 March 2014 08:39:17 UTC, ste...@activitystream.com wrote: bump On Wednesday, 5 March 2014 11:10:07 UTC, ste...@activitystream.com

[orientdb] Efficient way to store nodes with linkset properties

2014-03-07 Thread Odysseas
I have a question regarding what would be the most efficient way to persist a collection of nodes where each node in the collection has a property that is a LINKSET to other nodes. To make the question more concrete, I'll use a specific example. Let's say that we have a collection of person

Re: [orientdb] Re: dot notation vs traverse ?

2014-03-07 Thread Charles Porter
Based on the comments of odbuser2, this seems to be a bug. I will create an 'issue'. -Charles On Fri, Mar 7, 2014 at 12:38 AM, Damian Bronecki bronecki.dam...@gmail.comwrote: Try to write this query without quotes: select expand(out().out()) from continent where name = 'europe' --

Re: [orientdb] sql delete edge

2014-03-07 Thread odbuser
But it does exist as a property of the in and out Vertices. I think the trouble is that users do not know how to delete an edge using SQL. It would be beneficial to have a way to do this - possibly using the same syntax as non-lightweight Edges: Given the following: create class A extends V

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

2014-03-07 Thread odbuser
I haven't seen this type of behavior in 1.6.3. I routinely kill processes ungracefully. However, I don't suggest that you upgrade to 1.6.3 either as it has some other more subtle issues. I'm not sure what the current stable release is is it 1.6.3-hotfix or 1.6.4? On Friday, March 7,

Re: [orientdb] NoClassDefFoundError Trying to Start orientdb-gremlin

2014-03-07 Thread Jonathan Cook
This problem is really getting to me. My codebase uses both SQL and Gremlin/Groovy and I need to be able to prototype / write my queries interactively. I am on OS X, using OrientDB 1.7rc1, executing orientdb-gremlin command. Please help! :) J5 I'm trying to start the gremlin console and

[orientdb] Re: Not able to embed 1.7-rc2 in a springboot application - JPA provider issue

2014-03-07 Thread TonyB
I'm having this same problem with 1.7-rc1 embedded in a Play 2.2.1 app. It's keeping me from binding Java POJOs from a form post. There is a cross post on Play Framework group as well. On Wednesday, February 12, 2014 12:06:18 AM UTC-8, Laurent Quérel wrote: Hi, I use the embedded version

[orientdb] Re: Not able to embed 1.7-rc2 in a springboot application - JPA provider issue

2014-03-07 Thread TonyB
On further inspection, the POJO i'm binding in Play is using the @Entity jpa annotation. I'm using both Ebean and OrientDB at the same time while I transitioning away from Ebean and to OrientDB, using different beans during the transition. But it seems that Ebean entities are finding Orient's

[orientdb] Index on Abstract Class

2014-03-07 Thread Jérémie Brébec
Hi, I'm testing OrientDB 1.7-rc2-SNAPSHOT and i have a regression in the creation of the database schema. I have extracted the following test : @Test public void testCreateIndexOnAbstractClass_1() { OrientGraphFactory factory = new OrientGraphFactory(memory:test1); OrientBaseGraph graph =

[orientdb] Re: NoClassDefFoundError Trying to Start orientdb-gremlin

2014-03-07 Thread Damian Bronecki
If you are using Maven, then you must add this to your pom.xml: dependency groupIdcom.tinkerpop.gremlin/groupId artifactIdgremlin-*/artifactId version2.4.0/version /dependency Otherwise you must download jar and add it to classpath. Just read instructions from this site:

[orientdb] Re: NoClassDefFoundError Trying to Start orientdb-gremlin

2014-03-07 Thread Damian Bronecki
If you are using Maven, then you must add this to your pom.xml: dependency groupIdcom.tinkerpop.gremlin/groupId artifactIdgremlin-groovy/artifactId version2.4.0/version /dependency Otherwise you must download jar and add it to classpath. Just read instructions from this site: