derrickaw commented on code in PR #38376:
URL: https://github.com/apache/beam/pull/38376#discussion_r3288635001


##########
sdks/python/apache_beam/yaml/yaml_io.py:
##########
@@ -723,3 +717,50 @@ def write_to_tfrecord(
           num_shards=num_shards,
           shard_name_template=shard_name_template,
           compression_type=getattr(CompressionTypes, compression_type))
+
+
[email protected]_fn
+@yaml_errors.maybe_with_exception_handling_transform_fn
+def write_to_mongodb(
+    pcoll,
+    *,
+    database: str,
+    collection: str,
+    connection_uri: str = "mongodb://localhost:27017",
+    batch_size: int = 100,

Review Comment:
   Java has 1024, but python has a higher memory footprint, so went down to 
100. Would you prefer we keep these the same? Thanks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to