sql - Display large result set -
This is my problem: I need to store lot of log messages and think that It would be smart to keep it in a SQLite3 database to be able to search and filter it easily.
I will display the log message in a standard list widget (using wxWidgets). There will be several columns in the list and it can be sorted and filtered by the user.
Now, I'm not sure what is the best way to handle it. I am thinking of some potential solutions:
- Read all messages for the memory when there is a new or changed log message (on a random status in the list) Refresh the entire list The only thing to do when the user wants to filter the list or sort on a different column.
- Read all the IDs in an array and get the full log message on demand (when the user scrolls the list so that they are created
- Using SQL to get results on demand Use the SQL-Interface for which select the exact sub-result.
But in fact, I was not used to just work with this type of problem That's why any suggestions Is appreciated!
How about using pagination?
Select ... from logs where ... by order ... border offset, count Where offsets and counters are values you can choose You can use it to receive any entry entries. Then add the next button to see the user next page of the entries. Iltr and combined with a kind of ability can not be logged find a simple
Comments
Post a Comment