You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "metesynnada (via GitHub)" <gi...@apache.org> on 2023/02/21 12:11:44 UTC

[GitHub] [arrow-rs] metesynnada opened a new issue, #3742: Support for Async JSON Writer

metesynnada opened a new issue, #3742:
URL: https://github.com/apache/arrow-rs/issues/3742

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   I want an async JSON writer to use it in an async context. The current implementation is blocking even if we are in the tokio environment.
   
   **Describe the solution you'd like**
   A writer using `tokio::io::AsyncWrite` might be the solution.
   
   **Describe alternatives you've considered**
   NA
   
   **Additional context**
   Na


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] alamb closed issue #3742: Support for Async JSON Writer

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #3742: Support for Async JSON Writer
URL: https://github.com/apache/arrow-rs/issues/3742


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on issue #3742: Support for Async JSON Writer

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #3742:
URL: https://github.com/apache/arrow-rs/issues/3742#issuecomment-1483132815

   `label_issue.py` automatically added labels {'object-store'} from #3


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on issue #3742: Support for Async JSON Writer

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #3742:
URL: https://github.com/apache/arrow-rs/issues/3742#issuecomment-1438690111

   Same as commented on the CSV writer ticket, https://github.com/apache/arrow-rs/issues/3740#issuecomment-1438682974, I would recommend implementing this by buffering an encoded batch in memory using the existing writer, prior to flushing it via async. This avoids code duplication, is more generic, and is likely significantly faster. It has been my experience that async does not optimise very well, especially in tight loops, and is best kept independent of the hot synchronous code.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on issue #3742: Support for Async JSON Writer

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #3742:
URL: https://github.com/apache/arrow-rs/issues/3742#issuecomment-1483132756

   `label_issue.py` automatically added labels {'arrow'} from #3


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org