-
Type:
Bug
-
Resolution: Done
-
Priority:
Critical - P2
-
None
-
Affects Version/s: 1.0.2
-
Component/s: None
-
Environment:Both Ubuntu & Amazon Linux
-
None
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
I have an array in Mongo with a large number of values (e.g. I'm storing some json WebGL models where there are an array of vertices, very big and due to the specification no changes aloud there).
The mongo driver works well with uploading but when downloading via libbson my arrays get truncated.
E.g. I have a document with an array of size 1250 amongst other significant stuff. When I run through it with a bson_iter I only count 1185 elements.
The problem is much much worse when I try to run bson_to_json as the array gets truncated down to ~214 and whats worse there is a trailing comma at the end of the list (I think it collapsed an empty element due to the first truncation) and it won't parse.
I am well well under the size limit of the document (4kb BSON) and expect to be able to deal with arrays of size O(100,000).