flutterdartobjectboxflutter-objectbox

Should I use ObjectBox in a separate isolate so as not to block UI thread?


I'm going to use ObjectBox in my Flutter project. But I noticed that the get method is synchronous. So should I use ObjectBox in a separate isolate to avoid blocking the UI thread?


Solution

  • There's rarely a need to do so. ObjectBox achieves hundreds of thousands of read objects per second on mobile so you should be fine unless you're doing something very excessive.