[orientdb] Caching for REST API

2015-08-06 Thread Omega Silva
Team, When a server side function is accessed via the ReST API, 1. Can the OrientDB server provide me request level caching? 2. Will records accessed via the functions be cached in Disk Cache? Appreciate your response. Thanks -- --- You received this message because you are subscribed to t

Re: [orientdb] Disable Cache on OrientDB Server

2015-07-13 Thread Omega Silva
y replica of disk structures (cluster pages). In > your case this cache level is providing the optimization after the first > query execution > > Thanks > > Luigi > > > 2015-07-08 5:27 GMT+02:00 Omega Silva >: > >> Hi All, >> >> I'm tuning

[orientdb] Disable Cache on OrientDB Server

2015-07-07 Thread Omega Silva
Hi All, I'm tuning performance of a query using a remote connection to a OrientDB instance. I'm using the OrientDB studio to run the queries. I tried to disable cache on the server by the following means (and all combinations of them); 1. Using java option -Dcache.local.enabled=false 2. Defin

[orientdb] Re: Linking Records in a Transaction Does not Work

2015-06-11 Thread Omega Silva
Hi Giulia, Thanks for the response. This works. However, by the frequent db.commit() s I lose the atomicity of the transaction, hence the ability to rollback. That's the only worry. On Thursday, June 11, 2015 at 2:52:30 PM UTC+5:30, Giulia Brignoli wrote: > > Hi Omega, > > Try this function:

Re: [orientdb] Linking Records in a Transaction Does not Work

2015-06-10 Thread Omega Silva
Omega, >>> >>> Are you using a remote or a plocal connection? >>> >>> thanks >>> >>> Luigi >>> >>> 2015-05-22 6:26 GMT+02:00 Omega Silva : >>> >>>> Hi All, >>>> >>>> *Scenario:* &g

Re: [orientdb] Linking Records in a Transaction Does not Work

2015-05-22 Thread Omega Silva
Hi Luigi, Thanks for the response. I'm using a remote connection. On Friday, May 22, 2015 at 1:14:33 PM UTC+5:30, Luigi Dell'Aquila wrote: > > Hi Omega, > > Are you using a remote or a plocal connection? > > thanks > > Luigi > > 2015-05-22 6

[orientdb] Linking Records in a Transaction Does not Work

2015-05-21 Thread Omega Silva
Hi All, *Scenario:* I have two classes. Schema given below; CLASS B { PROPERTY name STRING } CLASS A { PROPERTY name STRING PROPERTY bLinkList LINKLIST B } I want to insert a record to Class B, insert a record to Class A and link new record of class B to the new record of class A.

[orientdb] Re: JavaScript API Documentation

2015-05-20 Thread Omega Silva
classes essentially becomes the docs for the JavaScript API. Not too sure whether this is the absolute truth, but it works for me :) On Thursday, March 26, 2015 at 7:29:37 PM UTC+5:30, Omega Silva wrote: > > Hi all, > > Is there any documentation available for JavaScript API? If so can som

Re: [orientdb] Insert Document without using SQL via JavaScript API

2015-05-19 Thread Omega Silva
uot;, "John"); > newEmployee.save(); > > Luigi > > > > > > 2015-05-15 5:01 GMT+02:00 Omega Silva >: > >> Hi Luigi, >> >> Thanks for the response. I'm executing this inside OrientDB (OFunction). >> >> On Thursday, May 7, 2015 at 2:43

[orientdb] Re: How do you define a server-side function that returns a tree structured JSON object?

2015-05-14 Thread Omega Silva
Hi Arne, I'm no expert, but as per my experience, the results from OrientDB will contain metadata such as @type, @class etc. How I solved the problem was to pass through the OrientDB results via a JavaScript function, create a JavaScript object as per the schema I want and return the stringifi

[orientdb] Index usage in an inner query (LET query)

2015-05-14 Thread Omega Silva
Hi, I have an observation with reference to using inner queries (i.e. LET keyword) and would like to understand why this happens. Given the details below; *Scenario :* I have two groups of Users who share a common Id. I need find the users who are common. In other words, simulate an inner join

Re: [orientdb] Insert Document without using SQL via JavaScript API

2015-05-14 Thread Omega Silva
rientDB (eg. an OFunction)? > > > > 2015-05-07 5:59 GMT+02:00 Omega Silva >: > >> Hi all, >> >> The Java API facilitates creating documents in the following style; >> >> ODocument newEmployee = new ODocument("Employee"); >> newEmployee.f

[orientdb] Using SELECT WHERE IN ()

2015-05-07 Thread Omega Silva
Hi All, I'm working with a document db where I have two classes (say A and B) which are not linked but have an attribute which is common (say externalId) I'm trying to filter out the entries in A, which are also present in B (basically do an inner join). I'm using the IN filter. Following is my

[orientdb] Insert Document without using SQL via JavaScript API

2015-05-06 Thread Omega Silva
Hi all, The Java API facilitates creating documents in the following style; ODocument newEmployee = new ODocument("Employee"); newEmployee.field("name", "John"); newEmployee.save(); Does the JavaScript API have something similar? Cheers. Omega -- --- You received this message because you ar

[orientdb] Java Document API - How to Identify System Classes

2015-04-02 Thread Omega Silva
Hi All, I'm writing a OrientDB schema compare tool and need to read the schema. When I get a list of classes, I need to distinguish the system classes (i.e. OUser, OFunctions etc.) vs the ones that I created. Is there a straight forward way of getting this info from the API? Thanks. -- ---

[orientdb] Re: How to execute batch scripts using OrientDB Console - OrientDB 2.0.3

2015-04-02 Thread Omega Silva
plocal > > > CREATE CLASS Application extends V > > CREATE CLASS Asset extends Application > create property Asset.addresses embeddedlist > > when you want to execute it from dos do this > > console schema.sql > > On Monday, March 2, 2015 at 1:59:40 AM UTC-6, Om

[orientdb] JavaScript API Documentation

2015-03-26 Thread Omega Silva
Hi all, Is there any documentation available for JavaScript API? If so can someone be kind enough to provide me a URL pls? Thanks Omega -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails

[orientdb] How to execute batch scripts using OrientDB Console - OrientDB 2.0.3

2015-03-02 Thread Omega Silva
Team, I'm trying to create a DB schema using a batch script. I've tried executing the batch script as mentioned in the documentation (http://www.orientechnologies.com/docs/2.0/orientdb.wiki/Tutorial-Run-the-console.html) but this doesn't work. My batch script: connect remote:localhost/Test r