Hi all

I am using the orientDB graph database for storing graph from the java 
application using *remote* connection and the graph database is *plocal*.
*Version : 1.7.9*

I am using *Blueprints API* (version : 2.6.0) to make queries and adding 
vertices, edges in the graph. Each vertex in the graph has around 30 key 
value pairs out of which 10 of them are indexed (*SBTREE_MAX_KEY_SIZE : 
30000*)

Below is a snapshot of how the graph instance is created ->

*# properties #*
*blueprints.graph=com.tinkerpop.blueprints.impls.orient.OrientGraph*
*blueprints.orientdb.url=remote:127.0.0.1/graph-database                   
                        (some remote server address)*
*blueprints.orientdb.username=root*
*blueprints.orientdb.password=AA0256B7269C44BD33118*
*#*

*graph = (OrientGraph) GraphFactory.open(properties);                       
                    (com.tinkerpop.blueprints.GraphFactory)*
*graph.createIndex( Key_To_Indexed, Vertex.class);*

Querying is done like

*Iterable<Vertex> vertices = 
graph.query().has(key1,value1)....has(key2,value2).hasNot(key).vertices();*
*Iterable<Edge> edges = vertex.getEdges(Direction.OUT,"EdgeType");*

*#Issue 1*
With these configurations, *is the caching enabled* ?? Or something else 
has to be done ?? Because the query time is very large and I suspect that I 
am doing something wrong.
I just added these two entries in orientdb-server-config.xml ->


*<entry value="true" name="cache.level1.enabled"/><entry value="-1" 
name="cache.level1.size" />*
cache.level1.enabledtruecache.level2.enabledfalsecache.level1.size-1
cache.level2.size0profiler.enabledtruelog.console.levelinfolog.file.level
infosbtree.maxKeySize30000
My requirement is such that I need everything to be in memory most of the 
time.

*#Issue 2*
I also tried switching to memory database, but it seems that there is no 
support for transactional memory graph.
If I just create a memory database on the remote server and point my code 
to use that database instead of the plocal one then the code never comes 
out of the statement *graph.commit().*
I think this issue was already raised here 
https://github.com/orientechnologies/orientdb/issues/1725


Regards
Vaibhav





-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to