progress on mapping data, finding clusters, probably inefficient

This commit is contained in:
nitowa
2022-08-23 15:12:52 -04:00
parent 883c81b786
commit 5b9ec0da6a
27 changed files with 431 additions and 50 deletions
+5
View File
@@ -0,0 +1,5 @@
CREATE TABLE clusters(
address TEXT,
parent TEXT,
PRIMARY KEY (address)
);
+1
View File
@@ -0,0 +1 @@
DROP TABLE clusters;
+9
View File
@@ -0,0 +1,9 @@
CREATE TABLE transactions(
tx_id INT,
address TEXT,
value INT,
tx_hash TEXT,
block_id INT,
timestamp TIMESTAMP,
PRIMARY KEY (tx_id, address)
) WITH CLUSTERING ORDER BY (address DESC);
+1
View File
@@ -0,0 +1 @@
DROP TABLE transactions;