Results 1 to 6 of 6

Thread: QtConcurrent and QSqlQuery

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    70
    Thanked 59 Times in 57 Posts

    Default QtConcurrent and QSqlQuery

    Hi,

    Has anyone experienced on executing multiple INSERT sql queries into MySQL database using QtConcurrent?

    I have to store big data on every query and I want to know if using multiple threads that will execute an INSERT query with the data will increase the insertion speed.

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 47 Times in 43 Posts

    Default Re: QtConcurrent and QSqlQuery

    Hi Oscar,

    The general idea shall be like this, create a sql file with data and try to import using mysqlimport

    Hope it helps,
    Bala

  3. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    70
    Thanked 59 Times in 57 Posts

    Default Re: QtConcurrent and QSqlQuery

    Hi,

    Storing the data into a file and then insert the file data into the database? Are you sure that it will speedup my process?

    Thanks,
    Òscar Llarch i Galán

Similar Threads

  1. Replies: 2
    Last Post: 9th April 2013, 10:15
  2. Problem with QtConcurrent::run
    By januszmk in forum Newbie
    Replies: 5
    Last Post: 30th July 2011, 18:57
  3. Replies: 1
    Last Post: 18th July 2011, 13:12
  4. qtconcurrent
    By knishaq in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2009, 09:41

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.