Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-27098

QSqlQuery::next() is too slow.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.1
    • SQL Support
    • None

      1. Using QSqlQuery to access Orcale database from a remote DB Server, the code slice like following:
      QSqlQuery query("SELECT * FROM artist");
      while (query.next())
      {
      doSomething();
      }

      2. The problem is:
      query.next() function was running too slow.
      In my case, I used next() function to get about 7000 records, it spent about 7 seconds, and I'm sure it is not a problem of network.
      Does it a bug of qt? or can anyone give me a suggestion?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mabrand Mark Brand
            xiaogang.wang@foxmail.com Xiaogang.Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes