I have Titan (with embedded cassandra running on my system).
cd titan-cassandra-0.3.1
bin/titan.sh config/titan-server-rexster.xml config/titan-server-cassandra.properties
I have installed bulbs on my system as follows.
sudo apt-get install python2.7-dev
sudo apt-get install libyaml-dev
sudo pip install
https://github.com/espeed/bulbs/tarball/master
After the above setup I run the following python application to create a very simple graph.
from bulbs.titan import Graph
g = Graph()
switch = g.vertices.create(name="switch")
device = g.vertices.create(name="device")
g.edges.create(switch, "connected to", device)
If I measure the time taken to execute the above python application from linux command using `time` command as
time python graph.py
I get the time taken to create two vertices and the edge connecting to be about 1.620 seconds. This is a bit high. I am looking at ways to bring this down.
My assumptions are as follows.
1. Creation of vertex and creation of edges are blocking operations. I am assuming that these operations will consume quite a bit of CPU. In my case the Titan server as well as the python application is running on the same virtual machine. What would be the impact if any if I were to move this to a separate database server. Can I expect an improvement in the time ?
2. Is there anything else that you could recommend that would improve the execution time for my application.