PDA

View Full Version : database slow



ganeshgladish
20th June 2013, 07:41
hi, i have created qt database ...the driver is sqlite....i have maintain 100 students datas, whenever i retrieve this database the opening time going very slow ...what can i do

ChrisW67
20th June 2013, 21:54
Work out where it is slow and fix it. We cannot see your code, your environment, your data... what do you expect us to do about it?

ganeshgladish
22nd June 2013, 13:44
thank you for your reply....
i found my problem....the problem is i have maintain my database in c++....i retrieve and viewing data from c++ to qml(screen) through QQuickView setcontextproperty ....so i retrieve as function through listview ....so this listview have for loop ......for i have maintain 100 students detais ...so this for loop running more time so only it is slow....please provide sollutions

anda_skoa
24th June 2013, 09:06
I am afraid I don't understand: the listview has a loop?

Have you tried exporting your data through a model? Maybe using one of Qt's SQL models or QStandardItem model?

Cheers,
_