Results 1 to 5 of 5

Thread: SQL slow query - table update

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Davao City, Philippines
    Posts
    77
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    16
    Thanked 4 Times in 4 Posts

    Default Re: SQL slow query - table update

    Quote Originally Posted by lasher View Post
    It works nice but sometimes I have slow query (30-60s, there are few milion rows in database) and I want to update table during query to show partial result.
    What about MySql's 'slow query log'?

    http://dev.mysql.com/doc/refman/5.1/...query-log.html

  2. #2
    Join Date
    Sep 2009
    Posts
    20
    Thanked 2 Times in 2 Posts

    Default Re: SQL slow query - table update

    Hi,

    Thx for reply, but I don't use MySQL, I use PostgrSQL, this query log consists only slow query statements.

    I want to update QTableView with QSqlQueryModel, when I execute query (setQuery())
    I have to wait till end of this query to get result (sometimes more than 30s), so I want to refresh QTableView (let say every second) and get partial result updated every second till final end of my query.

    Greetings!

Similar Threads

  1. Best way to abort long SQL query?
    By wdezell in forum Newbie
    Replies: 1
    Last Post: 11th September 2009, 22:05
  2. SQL query - navigation buttons
    By apffal in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2009, 08:38
  3. MS SQL Query
    By baray98 in forum General Programming
    Replies: 0
    Last Post: 14th July 2009, 04:25
  4. long sql result slow QTableView
    By skuda in forum Qt Programming
    Replies: 1
    Last Post: 20th January 2009, 08:41
  5. QTableWidget Sql Query 25.000 records
    By aekilic in forum Qt Programming
    Replies: 2
    Last Post: 12th August 2008, 14:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.