Oracle Client vs. Task-based Asynchronous Pattern (async/await)

前端 未结 3 1225
闹比i
闹比i 2021-01-12 07:53

I\'d like to write a bunch of methods querying the Oracle Database in the async/await way. Since ODP.NET seems to support neither awaitable *Async methods nor Begin/EndOpera

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 07:57

    As long as I know Oracle ODP is a sync wrapper for an async library. I found this post as I just wondering the same: Will the introduction of an async pattern for Oracle ODP calls improve performance? (I am using WCF on IIS NET TCP).

    But, as it have been said, as long as the introduction of the async pattern is done creating a new Task and the calling thread is already from the thread pool, no improvement can't be done, and it will be just a overhead.

提交回复
热议问题