Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、列のタイムスタンプでエントリを並べ替えるにはどうすればよいですか?
def self.get_users @@db.execute("SELECT * FROM users") end
値のタイムスタンプを意味していますか、それとも列キーはある種のタイムスタンプですか?
CQL はソートをサポートしていません。ディスクに格納されている順序でデータを返します。列ファミリーで comparison_type を指定して、列をどのように並べ替えるかを Cassandra に伝えます。この場合、[timestamp, column name] の複合列キーを使用することを検討してください。