Skip to content

Instantly share code, notes, and snippets.

@Nathan-Nesbitt
Nathan-Nesbitt / External.html
Last active May 7, 2020 16:59
External Scripts Example
<!DOCTYPE html>
<html lang="en">
<body>
<script src="External.js"></script>
</body>
</html>

Working with Cassandra

Handling multiple tables

Since Cassandra is NoSQL we cannot assume consistancy accross tables (we may have the same value in n tables). Therefore, we need to use batch statements which are precreated queries that run accross multiple tables. An example of a batch statement is:

BEGIN BATCH
 INSERT INTO userpage_posts (username, datestamp) VALUES ('user1', '2020-01-01');
@Nathan-Nesbitt
Nathan-Nesbitt / Cassandra_HowTo_WSL.md
Created January 29, 2020 23:02
Cassandra Setup on WSL

Cassandra Setup

What is this?

Originally the idea was to implement a blogging website using Cassandra, but the requirements changed so we changed to MySQL. I didn't want to loose my notes, and I thought it would be useful to share.

Installing Apache Cassandra

To try something new, this was created using the NOSQL database: Apache Cassandra. The following steps will outline how to install the requirements and package for Apache Cassandra. There were a lot of traps, so I hope someone enjoys the walkthrough.

@Nathan-Nesbitt
Nathan-Nesbitt / gist:ba242c6fccc09375609206d6691714c8
Created April 29, 2016 03:15
Verifying that +nathan_nesbitt is my blockchain ID. https://onename.com/nathan_nesbitt
Verifying that +nathan_nesbitt is my blockchain ID. https://onename.com/nathan_nesbitt