Async support in ServiceStack and OrmLite

There is currently an asynchronous ServiceStack branch that will allow you to create asynchronous services. But to get all the benefits of async, all IO-related operations must be asynchronous, so all database queries must also be asynchronous. I am currently using OrmLite with Postgresql, and so I would like to know if OrmLite supports asynchronous queries / operations? If not, what other .Net Micro-Orms support async operations?

+6
source share
3 answers

OrmLite has Async support in .NET v4.5 for SQL and MySQL providers. support for an asynchronous API alias has also been added for SQLite, as it is a popular option for quick memory testing.

+3
source

I recently started work on AsyncPoco , the fully asynchronous plug of the popular PetaPoco micro-ORM. It still needs some testing and some related docs / examples, but does not yet support PostgreSQL. UPDATE: AsyncPoco now has basic documentation and samples, and PostgreSQL is now supported!

Anyway, you asked about other micro-ORM.NET supporting async operations, so I thought I would call it one of them to keep an eye on it.

+2
source

Sorry if I misunderstood the question

but why can't you transfer calls using the TPL parallel task library or equivalent?

This is what I do, and I am very pleased with the results. At the end of the day, you request only data ...

thanks

-1
source

Source: https://habr.com/ru/post/924955/


All Articles