Complete the code to define a column family named 'stats' in a Bigtable schema.
column_families = { '[1]': {} }The column family name 'stats' is used to group related columns in Bigtable.
Complete the code to set the row key prefix for efficient Bigtable reads.
row_key = '[1]#user123#2024-06-01'
Using 'user' as a prefix helps group rows by user for faster access.
Fix the error in the Bigtable schema definition by completing the blank.
column_families = { 'stats': { 'gc_rule': [1] } }MaxVersionsGCRule expects an integer for the number of versions to keep.
Fill both blanks to create a Bigtable row key with reversed timestamp and user ID.
row_key = '[1]#[2]'
Using a reversed timestamp first helps distribute writes evenly, followed by user ID.
Fill all three blanks to define a Bigtable schema with a column family, GC rule, and row key prefix.
schema = {
'column_families': {
'[1]': {
'gc_rule': [2]
}
},
'row_key_prefix': '[3]'
}The column family 'stats' uses a GC rule to keep 5 versions. The row key prefix 'user#' groups rows by user.