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


##########
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:
   Did experiments result in  OOMs ? I think given that this is x-lang 
(execution is in Java) we could use the same batch size as Java.



-- 
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