Results 1 to 4 of 4

Thread: QSqlQueryModel and memory consumption

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSqlQueryModel and memory consumption

    Ho can i achieve that?
    Tthere is no function to do that.

  2. #2
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    17
    Thanked 90 Times in 88 Posts

    Default Re: QSqlQueryModel and memory consumption

    Try QSqlQuery::clear();

    I had a big memory load on the mysql-server side, because I didn't clear queries soon enough. I use QtScript to handle the queries (lots of them) and they are not deleted until the garbage collector picks them up, which is too late for me, so I had to use clear manually. Maybe it helps you, too.

    Johannes
    Last edited by JohannesMunk; 5th February 2010 at 12:14.

Similar Threads

  1. About QSqlQueryModel
    By vinny gracindo in forum Newbie
    Replies: 1
    Last Post: 11th December 2009, 23:27
  2. Replies: 0
    Last Post: 17th November 2009, 22:19
  3. QTableView memory consumption
    By LordQt in forum Qt Programming
    Replies: 7
    Last Post: 9th December 2008, 17:51
  4. Pixmap memory consumption
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 29th November 2007, 16:35
  5. Tracking memory consumption of plugins.
    By spud in forum General Programming
    Replies: 3
    Last Post: 7th September 2007, 14:14

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.