Skip to content

Instantly share code, notes, and snippets.

@DiscordBlog
Last active December 31, 2023 14:00
Show Gist options
  • Save DiscordBlog/ce8615e96a5002fbaf401678064c0ab8 to your computer and use it in GitHub Desktop.
Save DiscordBlog/ce8615e96a5002fbaf401678064c0ab8 to your computer and use it in GitHub Desktop.
Example CQL Statement
CREATE TABLE messages (
channel_id bigint,
bucket int,
message_id bigint,
author_id bigint,
content text,
PRIMARY KEY ((channel_id, bucket), message_id)
) WITH CLUSTERING ORDER BY (message_id DESC);
@Override-6
Copy link

damn

@vineethNaroju
Copy link

vineethNaroju commented Oct 25, 2023

Sneaking in a cat, meow :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment