stream_geo_device = {
format = {
{ 'bucket_id', 'unsigned' }, --1
{ 'stream_id', 'unsigned' }, --2
{ 'geo', 'string' }, --3
{ 'device', 'unsigned' }, --4
{ 'value', 'scalar' }, --5
{ 'expire_at', 'unsigned' }, --6
},
shardingKeyParts = { 'stream_id', 'geo', 'device' },
expirationType = 'expire_at',
indexes = {
primary = {
type = 'tree',
unique = true,
parts = { 'stream_id', 'geo', 'device' }
},
bucket_id = {
type = 'tree',
unique = false,
parts = { 'bucket_id' }
},
}
},