Got problem with prepare statement in sqlite
-
You are trying to open your database twice.
Again, like already wrote before: open your connection once at application startup and then just do your queries. You'll avoid losing time with that.
As for performance, what else is your application doing ?
-
You are trying to open your database twice.
Again, like already wrote before: open your connection once at application startup and then just do your queries. You'll avoid losing time with that.
As for performance, what else is your application doing ?
wrote on 15 Nov 2017, 20:47 last edited by@SGaist I understand you but I failed to do it it doesnt see the db as opened (I opened it in constructor)
-
Then fix your database initialisation in the constructor rather than trying to work around.
-
Then fix your database initialisation in the constructor rather than trying to work around.
wrote on 15 Nov 2017, 20:53 last edited by@SGaist And what about not line by line code execution?
-
What do you mean by that ?
-
wrote on 15 Nov 2017, 20:59 last edited by
-
There's no way to evaluate why your application is slow based only on one function.
Do some profiling on your application to understand what takes so much time.
-
There's no way to evaluate why your application is slow based only on one function.
Do some profiling on your application to understand what takes so much time.
wrote on 15 Nov 2017, 21:08 last edited by@SGaist ADD function must execute first!!! But not
-
Full uppercased words and many exclamation marks are not the best way to communicate when people are trying to help you on their own time.
You are only providing a small part of your code and stating that your users find it slow. I already gave you some suggestions to make it a bit faster but you said that you couldn't make it work in some other unknown part of your code.
Now, how can you expect anybody to provide you with advices based on that ?
-
Full uppercased words and many exclamation marks are not the best way to communicate when people are trying to help you on their own time.
You are only providing a small part of your code and stating that your users find it slow. I already gave you some suggestions to make it a bit faster but you said that you couldn't make it work in some other unknown part of your code.
Now, how can you expect anybody to provide you with advices based on that ?
wrote on 15 Nov 2017, 21:26 last edited by mark_ua_1999@SGaist yes you are right sorry
16/16