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

QSqlQuery::next() is too slow.

    XMLWordPrintable

Details

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

    Description

      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?

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes