Skip to content

Instantly share code, notes, and snippets.

View ajason08's full-sized avatar

Jason E. Angel ajason08

  • Ciudad de México, México
View GitHub Profile
@ajason08
ajason08 / sentimix-sent.ipynb
Created May 14, 2020 13:00
sentimix(sent).ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ajason08
ajason08 / Neo4j_memory_management
Last active November 21, 2018 14:54
Neo4j memory management
First understand the concepts
https://neo4j.com/developer/guide-performance-tuning/
https://neo4j.com/docs/operations-manual/current/performance/memory-configuration/#heap-sizing
https://neo4j.com/docs/operations-manual/current/performance/#memory-tuning
run $NEO4J_HOME/conf/neo4j.conf
Heap: is for queries and transactions
chache: is for retrieve easier from hard disk (I think)
Decide how much ram mem you want to give for
OS operations: maybe 8g in my case. servers(1-3GB fully neo4j dedicated)
@ajason08
ajason08 / neo4j_nb
Last active November 20, 2018 10:25
Neo4J notebook
// get node
MATCH (b:label1 { name: "bn:00706957n"}) return b
// get rel
match (n)-[r:rel {name:"0"}]-(p) return count (r)
// create toy graph
---PLAN
1 > 2 >3 > 4