I use mongo for saving my attributes , now the question is i want to save the attributes like this
{
title:"new product"
...
...
attr:[
{
name:"color",value:"red"
},
{
name:"size",value:6
},
....
]
}
now if i create index for value field is it bad index design? should i separate the integer fields from string fields and then index separately ?