Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-7154

.NET: Thin client: Async queries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 2.4
    • 3.0
    • platforms, thin client

    Description

      IGNITE-7109 adds async cache operations, but query methods remain synchronous.

      We should look for ideas at Entity Framework ToListAsync and ToArrayAsync .

      1. Create IAsyncQueryCursor and IAsyncFieldsQueryCursor interfaces:

          public interface IAsyncQueryCursor<T> : IQueryCursor<T>
          {
              Task<IList<T>> GetAllAsync();
          }
      

      2. Provide async counterparts for queries: Task<IAsyncQueryCursor> ICacheClient.QueryAsync(...)

      This way both initial query and data retrieval can be made asynchronous.

      Attachments

        Issue Links

          Activity

            People

              gurustron Sergey Stronchinskiy
              ptupitsyn Pavel Tupitsyn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: