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

SQL: client should request first pages on query execution instead of first cursor read

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1
    • None
    • sql
    • None

    Description

      Currently we request first data blocks form server nodes on first cursor access. However, user code might want to execute a query, and access the cursor after some delay, in hope that asynchronous execution will do the trick.

      For this reason, we should start requesting pages eagerly on "execute" command rather than on cursor access.

      try (QueryCursor cursor = cache.execute(...)) { // <-- Should be here
          ...
          for (List<Object> row : cursor) {           // <-- But currently here
              ...
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: