You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
This is expected behavior, as you are setting an array and not a
sparse list.
If you set item #200 to a value, all of the preceding contents of the
array must be initialized. Since they have no value they get set to
null.
Alvin Richards
unread,
Nov 29, 2010, 12:08:50 PM11/29/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
This is expected behavior. You are setting an array not a hash /
sparse list. You are setting 200th element in the array and arrays are
zero based, so you will see 200 null elements before your element
appears.