Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not block UI thread on database requests #411

Open
paetz opened this issue Feb 23, 2023 · 1 comment
Open

Do not block UI thread on database requests #411

paetz opened this issue Feb 23, 2023 · 1 comment
Labels
feature New feature or request

Comments

@paetz
Copy link
Collaborator

paetz commented Feb 23, 2023

When writing to database, we are currently blocking the main thread. The better approach is to move this to a separate coroutine and display an hourglass in the UI (to still block user interaction).
The following actions should be considered:

  • Import Tourbook
  • Export Tourbook ??
  • Write elements to db during sector update
  • Reset db
  • Deletion of regions in the RegionManager
@paetz paetz added the feature New feature or request label Feb 23, 2023
@chrgernoe
Copy link
Member

We should definitely do this also for the tourbook export. Especially, if the tourbook is huge the app hangs a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants