Closed kahest closed 1 year ago
FYI for Room it doesn't make sense to implement this, as they have their own checks if the app is calling the database on the main thread, and they throw an exception if that's the case. So I crossed it out
After https://github.com/getsentry/sentry-android-gradle-plugin/issues/401 is solved via https://github.com/getsentry/sentry-java/pull/2722, DB on the main thread: SQLite
can be implemented
You may use Executor Service to perform DB queries on the background thread.
Performing DB queries on the main thread can lead to performance issues. To enable a performance issue detector on the backend to detect such queries, extend existing DB instrumentation to report whether the query was executed on the main thread.