There is the next piece of code that takes data from the SQLite database, then loads it (as text) into the client application, but unfortunately loading the data takes too long, how to make it faster?
results = c.execute(select).fetchall() stroka = '' for line in results: stroka = stroka + str(line) + '\n' self.ui.textEdit.setText(stroka)
\n? Try one line:text = '\n'.join(str(line) for line in results)or sotext = '\n'.join(map(str, results)). String string slowerjoinworks. And the body in your code can be simplified through the operator+=like this:stroka += str(line) + '\n'- gil9red