Closed bornabesic closed 5 years ago
Writing with neomodel is slower right now. Maybe customized queries could help. Stack Overflow
Listing proteins with a custom query (just id
, name
and species_id
fields) takes around 0.25 s.
Getting all proteins and inflating them to their neomodel class takes a little bit more than 1 s.
I guess inflate
function/operations is what takes most of the time.
In order to connect two nodes with RelationshipManager.connect()
, (e.g. protein1.associations.connect(protein2)
), both of them need to be fully inflated (i.e. contain all the information from the database).
Next step:
Use neomodel in build_graph_db.py
and compare the performance to the original implementation.
neomodel
Pros:
Cons:
cypher_queries.py
module needs to be rewritten