mercredi 6 avril 2016

QSqlTableModel removeRows() very slow on Windows

I have some code that takes 30 milliseconds on OS X but it takes 12 seconds !!! on Windows.

I am using a local sqlite db:

db_ = QSqlDatabase::addDatabase("QSQLITE");

I have a QSqlTableModel:

    records_.removeRows(0,50);
    records_->submitAll();
    records_->select(); 

with an edit strategy of manual and I cannot understand the huge difference between the two platforms.

Anyone have any experience with this?

Aucun commentaire:

Enregistrer un commentaire