📜 ⬆️ ⬇️

How to quickly install and start experimenting with Cassandra. Part 2

This is a continuation of the article "How to quickly install and start experimenting with Cassandra" , published in Habré

What you can not do in Cassandra, but would like to:

Rails


For Rails, there is a cassandra_object analogue to active_record. It is interesting in that it builds the index itself for some fields, but you will have to manually edit the configuration file. I talked to the developers, there are plans to do this automatically.

Tests


There is still such advice, if you are thinking of using Cassandra, test absolutely everything, even the simplest queries.
After each test will have to clean up the database, it can be done like this:

 class ActiveSupport :: TestCase
   def teardown
     CassandraObject :: Base.connection.clear_keyspace!
   end
 end


By the way, this command does not guarantee complete cleaning of all records, but it is usually suitable for tests.
')
More well-known gem'om (cassandra, cassandra_object) no. Maybe my work will be useful to you:

Source: https://habr.com/ru/post/89465/


All Articles