C++ (Qt)QSqlQuery query(db);qDebug() << query.exec("SELECT * FROM Composition;");qDebug() << query.size();
C++ (Qt) QSqlQuery query(db); QTime time; time.start(); qDebug() << query.exec("SELECT * FROM Composition WHERE C = 0.2 AND Si = 0.5 AND V = 0.03;"); qDebug() << time.elapsed(); int count = 0; while (query.next()) ++count; qDebug() << time.elapsed(); qDebug() << count;