Re: [mongodb-user] performce on nested documents in mongodb

17 views
Skip to first unread message

Eliot Horowitz

unread,
Nov 16, 2012, 12:13:32 AM11/16/12
to mongod...@googlegroups.com
Technically a tiny bit, but I doubt you could actually measure it.

On Thu, Nov 15, 2012 at 4:54 AM, yi zheng <antzh...@gmail.com> wrote:
> Are there any performce differece between these two documents when query for
> a specific username if index is created on username field
>
>
> {
> account:{
> //_id:'',
> username:'zhengyi',
> passwd:'zhengyi',
> nickname:'alex',
> gender:'male',
> coins:100000,
> online:true,
> active:new Date(),
> friends:[]
> }
> dev:{
> os:'iOS',
> ver:'6.0',
> hw:'iPhone2,1'
> },
> app:{
> ver:'1.0',
> pver:'1.0'
> }
> }
>
> {
> username:'zhengyi',
> passwd:'zhengyi',
> nickname:'alex',
> gender:'male',
> coins:100000,
> online:true,
> active:new Date(),
> friends:[],
> dev:{
> os:'iOS',
> ver:'6.0',
> hw:'iPhone2,1'
> },
> app:{
> ver:'1.0',
> pver:'1.0'
> }
> }
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
Reply all
Reply to author
Forward
0 new messages