From 5899177f5793c7f6aaa18a3f9eefbb43cbec55cd Mon Sep 17 00:00:00 2001 From: oldmikeyang Date: Sun, 24 Dec 2017 05:03:04 +0800 Subject: [PATCH] change the order of message table and remove the time to live (#132) --- writer/cassandra/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writer/cassandra/init.go b/writer/cassandra/init.go index 1d26c176..5b2629f9 100644 --- a/writer/cassandra/init.go +++ b/writer/cassandra/init.go @@ -25,7 +25,7 @@ var tables []string = []string{ ut double, l text, PRIMARY KEY ((channel), id) - ) WITH default_time_to_live = 86400`, + ) WITH CLUSTERING ORDER BY (id DESC)`, } // Connect establishes connection to the Cassandra cluster.