Skip to content

Commit

Permalink
Merge pull request #1 from akollegger/staging
Browse files Browse the repository at this point in the history
Separate components for cypher queries and Browser Guide
  • Loading branch information
akollegger committed Jun 16, 2021
2 parents 84ad071 + a51467c commit 1b0681f
Show file tree
Hide file tree
Showing 12 changed files with 110 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added guide/images/ldbc-model.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added guide/images/shard-strategy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
110 changes: 100 additions & 10 deletions client/readme.neo4j-browser-guide → guide/readme.neo4j-browser-guide
Original file line number Diff line number Diff line change
@@ -1,11 +1,97 @@
<carousel class="deck container-fluid">
<slide class="row-fluid">LDBC</slide>
<slide class="row-fluid">

<div class="col-sm-6">
<h3>Trillion Graph Demo</h3>

<p>
The Trillion Graph is a demo application based on a social graph with Persons, Forums and content.
The social graph seems simple, yet demonstrates an important strategy for properly scaling a graph:
</p>
<ol>
<li>Recognize the growth patterns within the data</li>
<li>Use appropriate strategies for each pattern</li>
</ol>
<br/>
<p>
The data itself has been generated according to the specifications
of the <a href="http://ldbc.github.io/ldbc_snb_docs/ldbc-snb-specification.pdf">LDBC Social Network Benchmark graph</a>.
This demonstration is not a benchmark, but the benchmark data is perfect for evaluating the impact of the scaling strategies.
</p>

</div>

<div class="col-sm-6">
<img width="400" src="http://devrel-images.s3.amazonaws.com/nodes2021/ldbc-model.png" />
</div>


</slide>

<slide class="row-fluid">

<div class="col-sm-6">
<h3>Scaling Strategies</h3>

<p>
The Persons could grow large, but even 3 Billion users would be more than popular social networks yet
small enough to fit on a single shard. Also, Persons are read often but change less often. This is a
perfect fit for using a replication strategy.
</p>
<p>
The forum content, though, is fresh every day. That drives incredible growth over time.
Each Forum creates a cluster of related content, a great candidate for sharding!
</p>
<br/>
</div>

<div class="col-sm-6">
<img width="400" src="http://devrel-images.s3.amazonaws.com/nodes2021/shard-strategy.png" />
</div>


<a href="http://ldbc.github.io/ldbc_snb_docs/ldbc-snb-specification.pdf">LDBC Benchmark Reference</a>
</slide>

<slide class="row-fluid">

<div class="col-sm-4">
<h3>LDBC Queries</h3>

<p>
The Cypher queries in the following slides are derived from the LDBC specification.
</p>
<p>Requirements before they can be run:
</p>
<ol>
<li>A database named <code>fabric</code> must exist on the current, active DBMS</li>
<li>That database must be selected for use</li>
<li>Parameters must be set which match the generated data (see example on the right)</li>
</ol>
</div>

<div class="col-sm-8">
<figure>
<pre class="pre-scrollable code runnable">:use fabric</pre>
</figure>

<figure>
<pre class="pre-scrollable code runnable">
:param Duration => 10;
:param Date0 => date({year:2021, month:5, day:14});
:param Tag => "Gulshan_Grover";
:param Person => 290112
</pre>
<p>Example parameters for the LDBC queries. These <i>must</i> be adjusted to fit the generated data.</p>
</figure>
</div>


</slide>
<slide class="row-fluid">
<div class="col-sm-3">
<h3>LDBC Complex Query 4</h3>
<p class="lead">Informative text</p>
<h3>Trending Topics</h3>
<p class="lead">LDBC Read Complex Query 4</p>
<p>Given a start Person, find Tags that are attached to Posts that were created by that Person’s friends. Only include Tags that were attached to friends’ Posts created within a given time interval, and that were never attached to friends’ Posts created before this interval.</p>
</div>
<div class="col-sm-9">
<figure>
Expand Down Expand Up @@ -50,8 +136,9 @@

<slide class="row-fluid">
<div class="col-sm-3">
<h3>LDBC Complex Query 6</h3>
<p class="lead">Informative text</p>
<h3>Tag co-occurrence</h3>
<p class="lead">LDBC Read Complex Query 6</p>
<p>Given a start Person and some Tag, find the other Tags that occur together with this Tag on Posts that were created by start Person’s friends and friends of friends (excluding start Person). Return top 10 Tags, and the count of Posts that were created by these Persons, which contain both this Tag and the given Tag.</p>
</div>
<div class="col-sm-9">
<figure>
Expand Down Expand Up @@ -93,9 +180,11 @@

<slide class="row-fluid">
<div class="col-sm-3">
<h3>LDBC Complex Query 7</h3>
<p class="lead">Informative text</p>
<h3>Recent likers</h3>
<p class="lead">LDBC Read Complex Query 7</p>
<p>Given a start Person, find the most recent likes on any of start Person’s Messages. Find Persons that liked any of start Person’s Messages, the Messages they liked most recently, the creation date of that like, and the latency in minutes between creation of Messages and like. </p>
</div>

<div class="col-sm-9">
<figure>
<pre class="pre-scrollable code runnable">WITH fabric.graphIds() AS gids
Expand Down Expand Up @@ -140,8 +229,9 @@

<slide class="row-fluid">
<div class="col-sm-3">
<h3>LDBC Complex Query 9</h3>
<p class="lead">Informative text</p>
<h3>Recent messages by friends or friends of friends</h3>
<p class="lead">LDBC Read Complex Query 9</p>
<p>Given a start Person, find the most recent Messages created by that Person’s friends or friends of friends (excluding start Person). Only consider Messages created before the given maxDate.</p>
</div>
<div class="col-sm-9">
<figure>
Expand Down
10 changes: 10 additions & 0 deletions relate.project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "trillion-graph 2bc08ee3",
"description": "",
"tags": [
"neo4j-desktop-id-project-2bc08ee3-124a-4ed2-a95a-24da53159520"
],
"id": "810b2beb-ed9b-405b-a91d-a1c2a5ec6d4e",
"metadata": {},
"dbmss": []
}

0 comments on commit 1b0681f

Please sign in to comment.