Guys,
I am sorry for this question but I really don't know what does it mean and couldn't figure it out.
Can anyone tell me what bucket means and represents of what data in this table?
Guys,
I am sorry for this question but I really don't know what does it mean and couldn't figure it out.
Can anyone tell me what bucket means and represents of what data in this table?
It's just a column to break up the partitions to make them smaller in size. It's just an example to illustrate how you can split the partitions into "buckets" to make them more manageable.
In the DS220 course example, it talks about the user having too many interactions with videos in the thousands. To reduce the number of rows in each partition, we add an arbitrary bucket
column to make a composite partition key so we can manually control the size of each partition in the video_interactions_by_user
table.
Again, the choice is completely arbitrary and is not a "natural key". It's just to show you ways to design tables. Cheers!
5 People are following this question.
Questions about DS220 Data Modeling course exercise 5.5 "Table Optimizations"
Can I get the solution for the Read Techniques unit of the DS220 Academy course?
How do I display the release_date in DS220 Exercise 5.4 in UTC format?
Can you explain the solution for Q2 of the "extend data model" exercise in the DS220 Academy course?
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use