I have a KV namespace with values like:  ``` car:golf1.4 -> {brand: VW, power:...... }  car:F150

I have a KV namespace with values like
 car:golf1.4 -> {brand: VW, power:...... } 
  car:F150   ->  {brand: Ford, power: ...}

I'd like to be able to select by brand and randomly. What's the best approach
To use an additional KV as index
    brand:VW - >  [golf1.4, ...]  
   brand:Ford -> [F150, ...]

Or to insert the brand in the key and then use the list method:  
  car:VW:golf1.4  ->   ..
  car:Ford:F150  ->

But this is more expensive and cannot randomize them, right?
Was this page helpful?