Re: [orientdb] Re: ORecordNotFoundException in an Embedded Server

2013-12-27 Thread Cod3r
Hallo Andrey,

 i use plocal in a Equinox OSGi Bundle. 


Here the full stack trace :

Caused by: 
com.orientechnologies.orient.core.exception.ORecordNotFoundException: The 
record with id '#0:1' not found
at 
com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:294)
at 
com.orientechnologies.orient.core.record.impl.ODocument.reload(ODocument.java:374)
at 
com.orientechnologies.orient.core.type.ODocumentWrapper.reload(ODocumentWrapper.java:87)
at 
com.orientechnologies.orient.core.type.ODocumentWrapperNoClass.reload(ODocumentWrapperNoClass.java:69)
at 
com.orientechnologies.orient.core.metadata.schema.OSchemaShared$16.call(OSchemaShared.java:605)
at 
com.orientechnologies.orient.core.storage.OStorageAbstract.callInLock(OStorageAbstract.java:185)
at 
com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.callInLock(OLocalPaginatedStorage.java:1283)
at 
com.orientechnologies.orient.core.metadata.schema.OSchemaShared.load(OSchemaShared.java:600)
at 
com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:114)
at 
com.orientechnologies.orient.core.metadata.OMetadataDefault$1.call(OMetadataDefault.java:110)
at 
com.orientechnologies.common.concur.resource.OSharedContainerImpl.getResource(OSharedContainerImpl.java:53)
... 122 more
Caused by: com.orientechnologies.orient.core.exception.ODatabaseException: 
Error on retrieving record #0:1 (cluster: internal)
at 
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.read(ODatabaseRaw.java:250)
at 
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.executeReadRecord(ODatabaseRecordAbstract.java:706)
at 
com.orientechnologies.orient.core.tx.OTransactionNoTx.loadRecord(OTransactionNoTx.java:63)
at 
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.reload(ODatabaseRecordTx.java:232)
at 
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.reload(ODatabaseRecordTx.java:38)
at 
com.orientechnologies.orient.core.record.ORecordAbstract.reload(ORecordAbstract.java:287)
... 132 more
Caused by: java.lang.NoClassDefFoundError: org/iq80/snappy/Snappy
at 
com.orientechnologies.orient.core.serialization.compression.impl.OSnappyCompression.uncompress(OSnappyCompression.java:39)
at 
com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.readRecord(OPaginatedCluster.java:580)
at 
com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.readRecord(OLocalPaginatedStorage.java:1121)
at 
com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.readRecord(OLocalPaginatedStorage.java:1101)
at 
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.read(ODatabaseRaw.java:244)
... 137 more
Caused by: java.lang.ClassNotFoundException: org.iq80.snappy.Snappy cannot 
be found by com.orientechnologies.orientdb-core_1.6.2
at 
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at 
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

  

-- 

--- 
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 https://groups.google.com/groups/opt_out.


Re: [orientdb] Re: ORecordNotFoundException in an Embedded Server

2013-12-27 Thread Andrey Lomakin
Hi,
Problem is bellow,

On Fri, Dec 27, 2013 at 1:58 PM, Cod3r the3l...@gmail.com wrote:

 Caused by: java.lang.NoClassDefFoundError: org/iq80/snappy/Snappy


Could you use gzip compression instead ?
Just set system property -Dstorage.compressionMethod=gzip .



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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 https://groups.google.com/groups/opt_out.


Re: [orientdb] Add alias for class name

2013-12-27 Thread Andrey Lomakin
I see )).
Could you create issue for it ? And we fix it.


On Fri, Dec 27, 2013 at 1:21 PM, Lebnik lebnik...@gmail.com wrote:

 Hi, no problem. Now I develop REST-driver for Doctrine2. And I need that,
 because Doctrine2 creates query in format uses aliases, example:

 SELECT t0.@rid AS rid1, t0.objectId AS objectId2, t0.languageId AS
 languageId3, t0.name AS name4, t0.info AS info5, t0.position AS position6,t0
 .flagShow AS flagShow7, t0.divisionKindId AS divisionKindId8, 
 t0.divisionTypeId
 AS divisionTypeId9, t0.parentId AS parentId10, t0.dateStart AS dateStart11
 , t0.dateEnd AS dateEnd12, t0.prikazIdStart AS prikazIdStart13, t0.prikazIdEnd
 AS prikazIdEnd14 FROM Orgunit t0 WHERE t0.objectId = '1' AND t0.languageId
 = '1' LIMIT 1



 пятница, 27 декабря 2013 г., 12:52:25 UTC+4 пользователь Andrey Lomakin
 написал:

 Hi
 I think it is possible , but could you explain why do you need this ?


 On Fri, Dec 27, 2013 at 10:43 AM, Lebnik lebn...@gmail.com wrote:

 Can you add alias for class name?

 My problem example:

 orientdb {GratefulDeadConcerts} SELECT objectId AS objectId2 FROM
 Orgunit AS t0


 Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException
 : Error on parsing command at position #42: Invalid keyword 'AS'
 Command: select objectId AS objectId2 FROM Orgunit AS t0
 --^


  --

 ---
 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-databa...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.




 --
 Best regards,
 Andrey Lomakin.

 Orient Technologies
 the Company behind OrientDB

   --

 ---
 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 https://groups.google.com/groups/opt_out.




-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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 https://groups.google.com/groups/opt_out.


Re: [orientdb] does oriented scale for this

2013-12-27 Thread Luca Garulli
Hi Alan,
what are your usage patterns once the database is filled? I mean is it
mostly read/traverse on graph?

Lvc@


On 20 December 2013 07:01, Alan Miller alan.mill...@gmail.com wrote:

 I'm just getting started with OrientDB and trying to determine if  how
 OrientDB scales for my use case, so any suggestions would be greatly
 appreciated.

 Here's some numbers to frame what I'd be trying to model in the graph.

   - I will have approximately 35 billion vertices.
   - Each vertex will have 4 properties (2 longs, an int, and 1 string).
   - I will only need 2 edge types (a 1:1 and a 1:many relationship).
   - I actually don't need a single graph for all 35 billion nodes, I could
 get away
 with 3000 separate graphs (approx 11 million nodes per graph).
 since my application would always be querying 1 of the 3000 areas of
 the graph.

 Sorry I can't divulge more on what I'm modeling.

 As a test, I generated a small graph (1 of my 3000) and ended up with
 with 2 million vertices and 2 million edges which was 1.1GB on disk.
 As a ballpark figure I estimated my complete data footprint to be approx.
 20TB.

 Any ideas, general suggestions on architecting such a (large?) distributed
 graph?

 Alan

 --

 ---
 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 https://groups.google.com/groups/opt_out.


-- 

--- 
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 https://groups.google.com/groups/opt_out.


Re: [orientdb] Re: odb-graphed-1.3 : string field operator subString not working

2013-12-27 Thread Luca Garulli
Hi,
I've you tried that sql against a OrientDB 1.6.2+ ?

Lvc@



On 20 December 2013 16:04, chiranjeeb ghosh chiranjeeb.gh...@gmail.comwrote:

 Is there any scope for replace or remove string field operator

 \CG

 --

 ---
 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 https://groups.google.com/groups/opt_out.


-- 

--- 
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 https://groups.google.com/groups/opt_out.


Re: [orientdb] Can someone explain the following Graph Properties please?

2013-12-27 Thread Riccardo Tasso
Hi, if I remember well.


2013/12/27 Dante j.singh.lo...@gmail.com

 *alter database custom useClassForEdgeLabel=false*

 If true, edges labels are modeled as subclasses of E (the top edge class).
In this way you can query for example:
SELECT * FROM Friend
instead of:
SELECT * FROM E WHERE label = Friend

It's a matter of efficiency. I guess that if useClassForEdgeLabel = true,
you can't use lightweight edges.



 *alter database custom useClassForVertexLabel=false*

 The same thing as for edges.

If your query always require to discriminate vertices / edges by their
label, using classes for label it's a good idea.


 *alter database custom useVertexFieldsForEdgeLabels=false*

  If this is true edges are lightweight, and their label is attached to
the in/out field for the respective vertices.
Consider docA -- friendOf -- docB: you will find a field out_friendOf in
docA and a field in_friendOf in docB. In this case the isn't any document
representing the edge, just those two fields.

It would be nice having confirm from Luca or his team.

Cheers,
   Riccardo

-- 

--- 
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 https://groups.google.com/groups/opt_out.


[orientdb] performance implications of subclasses

2013-12-27 Thread Jonathan Rosen
If I create subclasses, does this impact the query performance of the 
master class?

For example, if I have Sporting Goods, then subclasses tennis rackets, golf 
clubs, etc, when i select from sportinggoods, does this impact the 
overall query performance of querying all the subclasses as well? This 
would be opposed to keeping all of the different sporting goods in the 
sporting good class together.

-- 

--- 
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 https://groups.google.com/groups/opt_out.


[orientdb] bulk copy from one class to another

2013-12-27 Thread Jonathan Rosen
how do i bulk copy records from one class to another?

-- 

--- 
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 https://groups.google.com/groups/opt_out.