I'm having trouble using the :tiered storage with indexedDB in the browser. I get an assertion error -blob-exists? requires async, got env: {:sync? true} when I try to query it. I made a minimal repro of my problem https://github.com/madstap/datahike-indexeddb-repro/blob/main/src/repro/main.cljs.
Am I holding it wrong or is this a bug? I assume the former, but you never know...
I think I found the bug, will let you know once it is fixed.
Hey @madstap. Thanks for reporting! Remove https://github.com/madstap/datahike-indexeddb-repro/blob/main/src/repro/main.cljs#L9 and https://github.com/madstap/datahike-indexeddb-repro/blob/main/src/repro/main.cljs#L12. That should do the trick (I can check againif it doesn't). Only the backend needs to be async here. We probably should have better error messages for this... Lmk how it goes.
We basically use the memory store to keep the query engine runnable fully in synchronous mode (it cannot do async yet, one reason being is that we don't want to take a speed penalty by being async by default).
The behavior I'm seeing is that on first load it works and then on subsequent loads with the same uuid I get that error. If I try to remove those lines it's still broken in the same way.
Ok, I will take a closer look later.
Haven't gotten to it yet, hopefully on the weekend.