Hi guys I have been working on a program that will populate and index a database. The populating doesn’t take too long, but the indexing does. My question is: Is there a better approach to indexing this table than the one I’m using right now?
I’m doing this through QtSql.
for (int i = 0; i < headers.size(); ++i) {
q.exec(“ALTER TABLE temptable ADD INDEX(” + headers[i] + “);”);
}
Thanks in advance,
Ed.