To display the nodes with the most properties defined, run the following Cypher Statement:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jexp.adoc; | |
import org.asciidoctor.Asciidoctor; | |
import org.asciidoctor.ast.ContentPart; | |
import org.asciidoctor.ast.DocumentHeader; | |
import org.asciidoctor.ast.StructuredDocument; | |
import java.io.File; | |
import java.util.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// On https://analytics.twitter.com/user/<name>/home | |
// run this in developer console | |
// essentially: | |
$(".home-group-row").map(function(x) { var group=$(this); return group.find(".home-group-header").text()+","+ ['tweets','tweetviews','profile-views','mentions','followers'].map(function(tag) { return group.find(".metric-"+tag).text(); }).join(","); }).toArray().join("\n") | |
// prettied up: | |
var metrics = ['tweets','profile-views','mentions','followers','tweetviews']; | |
"month\t" + metrics.join("\t") + "\n" + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unusable on spinning disk, these results are from an SSD. | |
1M x create node+rel in 38s, 26k r/s | |
1M x create 2 nodes, 2 relationships, 2 properties in 47s, 21k r/s -> 80k records / s | |
1M x create 2 nodes with labels, 2 rels, 0 properties in 140s, 7k r/s | |
100k x create 100 rel + node -> 10M in 20s, 5k r/s | |
1M lookups by id in 22s, 43k r/s | |
1M lookup by id compiled runtime in 21s, 47k r/s | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
var createTable = function() { $("neo-table > table.table.data:not(datatable)").addClass("datatable").DataTable(); }; | |
if ($("#style-datatable").length == 0) { | |
$("body").append($('<link id="style-datatable" rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">')); | |
$.getScript('//cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js',createTable); | |
} else { | |
createTable(); | |
} | |
})(); |
Please note there is now a dedicated project for this: https://github.com/jexp/spoon-neo4j/
Adds these features to Neo4j Browser
-
DataTable (search, sort, paginage)
-
Zoom for graphs and query plans (Hold Alt- and drag / pan)
-
Charts (Currently Line-Charts)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files\Neo4j Community\jre\bin\java" -cp "C:\Program Files\Neo4j Community\bin\neo4j-desktop-3.0.2.jar" \ | |
org.neo4j.tooling.ImportTool %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// running spark on a large single machine | |
// 6 workers, with 12G RAM each -> 72G total and 8G for the driver -> 80G RAM in total | |
// the machine has 6 physical CPUs | |
// the jar contains just AnormCypher.org + Dependencies | |
neo@neo:/tmp/spark$ bin/spark-shell --jars ../neo4j/target/scala-2.10/Neo4j-Spark-Demo-assembly-1.0.jar --driver-memory 8G --executor-memory 12G --master local[6] | |
Welcome to | |
____ __ | |
/ __/__ ___ _____/ /__ | |
_\ \/ _ \/ _ `/ __/ '_/ |
OlderNewer