dimanche 14 février 2016

Does every sql query need to be executed in another thread, and if not, how approximately be normal to be handled on main thread? [duplicate]

I have app, that saves note, and in that query i just saves note with title and body in database, and it seems for me that i doesn't have to put it in another thread. But on other side when i reads all notes, (that part i didn't do yet), do i need to put it to another thread, i don't have animation or similar to cause some lagging or similar?

MyMain question would be do i need for everysingle sql query no matter how long and complexity, to put in another thread, because that may be casual way to do it?

Aucun commentaire:

Enregistrer un commentaire