So the reason my locally running app connected to the prod datahike db (AWS) does not reflect a tx submitted via the live web app is because on local browser reload I am not fetching a fresh conn somehow (though I thought using @conn would somehow achieve that).
Hey. Were you able to get it to work?
Haven't attempted (working on other app issues) but I will! Thanks for checking in ☺️
The current app was built with Cursor/Claude and I am somewhat regretting that choice bc one does not fully grasp some of its design choices (or makes choices unfamiliar to oneself).
👍
Do you have a writer setup?
If you do not explicitly setup a writer you need to manually set the connection to not streaming: https://github.com/viesti/clj-lambda-datahike/blob/main/src/clj_lambda_datahike/core.clj#L36
I am not fully sure how to simplify that, in a way it makes really sense to setup a writer, even if you don't transact on the clients. That way you never accidentally transact on the readers, which will likely overwrite your database with the local one and might cause you to lose data.
The setup is described here https://github.com/replikativ/datahike/blob/main/doc/distributed.md
Thanks whilo
This is a new concept for me. (Haven't been using this idea in my designs at all.) I have to read into this. Thank you.
It should not be hard, I hope. Feel free to ask questions!
Is there something like REBL for datahike? (Or can REBL be used with datahike?)
For sure. Depending on what REBL needs iDatahike might be a possible replacement for Datahike. I haven't used REBL yet.
Sometimes it's nice to have a GUI.