mongoDB Resource Type

3 views
Skip to first unread message

Sayat Satybaldiev

unread,
Oct 31, 2013, 9:05:46 PM10/31/13
to BG-Social...@googlegroups.com
While running BG on MongoDB and analyzing created datastore, I noticed that BG inserts some random data resource type. For example, mine resource looks like that:
{
    "_id" : 13,
    "creatorid" : "5",
    "walluserid" : "72",
    "type" : "' !84/=-*$((.-5#<0%!6/>\"*>04*114!&:=2'.6?'7$(!8-3&:-49#&14?<,,2%0?=#.0'7)#802)).)\"!8%90)>17/&):6: +:",
    "body" : "<7\"8%0-<9/)#5/:*-5&72;>:3?!: 9?\"4&1---6%<<' 3''. 0+7!2,1!%$.7474/!#*97#)303+;$0')=*0:'//&6$:8+'>$./>",
    "doc" : "575+2!(#21/;\"6\".73+2&>%29%)+87,(?$9# ;?/0= 20$=5')*6,-<!3/=,//77&7*  !/&8$8!?*9=5\"$-7,7*%, !,\"4:.'\"\""
}


My question, shouldn't be resource type be something meaningful i.e. comment,status etc? Or it's a bug somewhere in my mongoDB client?

BTW I haven't modified mongoDB client. I'm using the one that comes with BG. 

Shahram Ghandeharizadeh

unread,
Oct 31, 2013, 9:47:25 PM10/31/13
to BG-Social...@googlegroups.com
Hi,
The random value for certain attributes is intentional.  The idea is to expedite generation of data as the length of some attributes is more important than their value (as they are not queried). 
Shahram.

Sayat Satybaldiev

unread,
Nov 1, 2013, 1:24:37 AM11/1/13
to BG-Social...@googlegroups.com
Thank you for the prompt answer. That make much more sense now!
Reply all
Reply to author
Forward
0 new messages