Reputation: 339
I have recently updated Android Studio to version 4.1, since this version it's possible to watch the app database.
When I use this functionality, my Android emulator is very slow. The same scenario appear when I'm using a physical phone.
Slowest activities are those which get data from database with the Room library.
It is impossible to switch off "Database Inspector", I have to invalidate my cache and restart Android Studio.
Is there any solutions?
Upvotes: 3
Views: 1045
Reputation: 339
It's been a long time since I've worked on my project in native Android. In Android Studio version 4.2.2, it is now possible to stop the Database Inspector. This solves the problem perfectly ;)
Upvotes: -1
Reputation: 629
You will need to Invalidate Caches and restart. This will start the Android Studio again without loading the Database inpsector
Upvotes: 0
Reputation: 57
if you are using kotlin Use Coroutine to handle Database operation or if you are using java use thread to handle database operation.
if you want to learn more about coroutine go to youtube ,here available lot more information.
Upvotes: -3