I prefer to use timestamp as one of the columns in Cassandra (which I decided to use as the Clustering Key). which is the right way to save a column as a timestamp in Kassandra?
( ie ) Is it good to use milliseconds (Example: 1513078338560) as shown below?
INSERT INTO testdata (nodeIp, totalCapacity, physicalUsage, readIOPS, readBW, writeIOPS, writeBW, writeLatency, flashMode, timestamp) VALUES('172.30.56.60',1, 1,1,1,1,1,1,'yes',1513078338560);
or use the date (now ());
INSERT INTO testdata (nodeIp, totalCapacity, physicalUsage, readIOPS, readBW, writeIOPS, writeBW, writeLatency, flashMode, timestamp) VALUES('172.30.56.60',1, 1,1,1,1,1,1,'yes',dateof(now()));
which is a faster and recommended way to use timestamp based queries in Cassandra?
NOTE: I know that it is stored in milliseconds, I used 'SELECT timestamp, blobAsBigint(timestampAsBlob(timestamp)) FROM'
Thanks Harry