I want to design a Cassandra schema for my timeline:
I have users and every user has a timeline, each timeline value is an string.
Since every user has a timeline of strings I need to populate each users timeline from the end as quickly as possible.
I estimate that every user will have 10000 timeline objects, and that I will have 10000 users, so I will have 100,000,000 object easily. This means that speed is very important.
This is the code I have used, is it right?
$pool = new ConnectionPool('Keyspace', array('127.0.0.1'));
$cf = new ColumnFamily($pool, 'timeline');
// Insert a few records
$columns = array(microtime() => "event1", microtime() => "event2", microtime() => "event3", microtime() => "event4" );
$cf->insert('usera', $columns);