datahike

silian 2024-12-03T00:07:53.277149Z

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).

whilo 2024-12-11T19:42:38.960869Z

Hey. Were you able to get it to work?

silian 2024-12-12T00:19:48.663969Z

Haven't attempted (working on other app issues) but I will! Thanks for checking in ☺️

silian 2024-12-03T00:15:23.523489Z

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).

whilo 2024-12-12T08:17:32.347629Z

👍

whilo 2024-12-03T22:52:11.810629Z

Do you have a writer setup?

whilo 2024-12-03T22:53:56.908979Z

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

whilo 2024-12-03T22:55:14.199899Z

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.

whilo 2024-12-03T22:55:45.093359Z

The setup is described here https://github.com/replikativ/datahike/blob/main/doc/distributed.md

silian 2024-12-03T23:12:10.549239Z

Thanks whilo

silian 2024-12-03T23:13:32.094239Z

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.

whilo 2024-12-03T23:14:41.706719Z

It should not be hard, I hope. Feel free to ask questions!

1
silian 2024-12-03T19:14:28.580419Z

Is there something like REBL for datahike? (Or can REBL be used with datahike?)

whilo 2024-12-07T03:42:50.524999Z

For sure. Depending on what REBL needs iDatahike might be a possible replacement for Datahike. I haven't used REBL yet.

silian 2024-12-03T19:16:13.306739Z

Sometimes it's nice to have a GUI.