I want to load huge text from database to RichViewEdit. for example one of books stored on my database has 2500 pages.
I use this code:
Code: Select all
RichViewEdit.AddText(MyQueryObject.FieldByName('BookText').AsString, 0);
My Database is SQLite.
Code: Select all
RichViewEdit.AddText(MyQueryObject.FieldByName('BookText').AsString, 0);
Because of bigness of my texts, I want to store the books page by page. I store each page as a record in database.Sergey Tkachenko wrote:You can save this field to a text file, then open in the ActionTest demo.
If it loads it faster, the problem is in your application.
If the loading time is the same, this is a maximal possible speed.
Please note that window width affects the speed of formatting. Usually, in the wider window, formatting is faster (because the number of lines is lesser).