This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-26
Channels
- # aleph (2)
- # aws-lambda (18)
- # beginners (81)
- # boot (3)
- # cider (25)
- # cljs-dev (274)
- # cljsjs (10)
- # clojars (25)
- # clojure (65)
- # clojure-austin (1)
- # clojure-brasil (2)
- # clojure-dev (33)
- # clojure-dusseldorf (6)
- # clojure-gamedev (3)
- # clojure-italy (17)
- # clojure-poland (3)
- # clojure-russia (7)
- # clojure-spec (48)
- # clojure-uk (45)
- # clojured (1)
- # clojurescript (26)
- # core-logic (2)
- # data-science (4)
- # datascript (6)
- # datomic (58)
- # defnpodcast (2)
- # docker (1)
- # duct (14)
- # figwheel (2)
- # fulcro (130)
- # graphql (3)
- # leiningen (1)
- # liberator (15)
- # luminus (5)
- # nrepl (1)
- # numerical-computing (1)
- # off-topic (45)
- # onyx (15)
- # re-frame (9)
- # reagent (3)
- # ring (1)
- # shadow-cljs (91)
- # spacemacs (8)
- # sql (23)
- # unrepl (38)
- # videos (2)
- # vim (12)
Any good tools for visualizing datomic schemas?
Or maybe a quick explanation why ppl wouldn’t normally want that?
Datomic schema only exists on the attributes; that's just not enough information to get a useful ETL-style visualization
Entities don't have types, so domain (what kind of entity an attribute can appear on) and range (possible value-space of an attribute) are both unexpressable
You can do it, but you need your own conventions on top so any visualizer cannot be general
This video describes one way: https://www.youtube.com/watch?v=sQCoTu5v1Mo
Thanks for getting back to me! i didnt see your reply until now.
Ah i think i understand. After some thought, i guess it would be useful to just have a map of what was, rather then what could be.
in my use case.
or maybe its so simple that it goes without saying lol
clojure.lang.ExceptionInfo: Transactor request timed out {:db/error :peer/request-timed-out, :request :create-database, :result #object[java.lang.Object 0x5d32f5db "java.lang.Object@5d32f5db"]}
4335 is only for dev storage. It's the "storage" port peers use to talk to the embedded h2 db using sql.
4336 is the port for the web-based embedded sql GUI provided by h2. You can use it to look inside the embedded h2 db (not that there's much value in this)
hello! how can you excise an entity when using datomic cloud api? is there something similar to db/excise?
no excision is supported on Cloud as far as i know, @georgiana.mania
thanks @robert-stuttaford. I was hopping that they would support it.. because otherwise it can no longer be used to store data of EU citizens 😞
@georgiana.mania see: https://forum.datomic.com/t/support-for-excision-or-similar/323
Thanks!
low priority, but there is a dangling closing square bracket on this code example in the docs: https://docs.datomic.com/on-prem/best-practices.html#set-txinstant-on-imports
I have data in MongoDB, and a script to generate a Datomic schema and migrate it and the data into Datomic. But if I run the script twice, it creates twice the entities because of auto-ids when transacting maps. How best to modify my script to ignore entities that already exist in Datomic?
I'm just getting started, and could use some help. I have a database available, and I have created a simple app to run a query. Currently, it just runs a hard-coded query. How do I create Datalog queries dynamically?
Either pass the data into the query using bound variables, or generate the query (which is just data) programmatically.
@U8J1APQ9Z are you using Client or peer?
You might want to review https://github.com/cognitect-labs/day-of-datomic-cloud/blob/master/tutorial/building_queries.clj
Note that the map form provides an easy path to generate the whole query programmatically; you can build up your query map with regular clojure data structure manipulation
@U05120CBV I’ll start there. Thanks!
@alex438 You may want to watch Stu’s talk on ETL and Datomic for inspiration: https://www.youtube.com/watch?v=oOON--g1PyU https://github.com/stuarthalloway/presentations/wiki/Simplifying-ETL-with-Clojure-&-Datomic
and the resulting importer: https://github.com/Datomic/mbrainz-importer
The key is to make the import idempotent, so that it can resume wherever it left off
The specifics of how you do that will depend on your particular data source and schema
I’ve watched the video, I don’t remember anything addressing my problem beyond “query for things, detect differences, and insert/update appropriately “, but that doesn’t answer my question.
one thing that particular ^ import job does is key individual transactions with a UUID
in particular, I believe that is done here https://github.com/Datomic/mbrainz-importer/blob/5d2d90f9a35789824675a4cc86a9a433527cb41b/src/datomic/mbrainz/importer.clj#L261
I guess that’s what I’m missing. I’ll think about that and see where it gets me, thanks
also, here is the bit that looks at an existing import in-progress to find things that have already been completed https://github.com/Datomic/mbrainz-importer/blob/master/src/cognitect/xform/batch.clj#L46
This looks like a typo at the beginning of this paragraph in the docs: https://docs.datomic.com/on-prem/transactions.html#list-forms