This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-19
Channels
- # beginners (69)
- # boot (10)
- # cider (18)
- # cljsrn (6)
- # clojure (225)
- # clojure-austin (1)
- # clojure-dusseldorf (7)
- # clojure-france (2)
- # clojure-greece (3)
- # clojure-italy (9)
- # clojure-madison (6)
- # clojure-miami (1)
- # clojure-mke (2)
- # clojure-russia (58)
- # clojure-sg (36)
- # clojure-spec (25)
- # clojure-uk (54)
- # clojurescript (20)
- # core-async (15)
- # cursive (16)
- # datomic (71)
- # emacs (7)
- # hoplon (3)
- # jobs (5)
- # jobs-discuss (4)
- # klipse (3)
- # leiningen (2)
- # lumo (60)
- # mount (1)
- # off-topic (16)
- # om (6)
- # om-next (7)
- # onyx (21)
- # pedestal (15)
- # planck (1)
- # re-frame (3)
- # ring-swagger (4)
- # specter (33)
- # uncomplicate (31)
- # untangled (8)
- # vim (35)
via @whitchapman today if people have thoughts: https://blog.clubhouse.io/auditing-with-reified-transactions-in-datomic-f1ea30610285
kschrader: on a pedestal app, have a :tx-data key on request, that hold arbitrary tx info generated by interceptors, and a audit interceptor ;)
@kschrader Humm. I thought with the newer datomic, you dont need to use ād/tempidā - you can just use strings. A slight simplification.
No tempid
-> :db.part/user
.
He want to install this data on :db.part/tx
@bherrmann
Hello everyone... Does anyone have a quick answer to this: What data type should I use to store lattitude and longitude in Datomic?
@maleghast Depends on how you want to query it. Two decimal attributes seems like the most obvious. Datomic doesn't have any spatial-indexing capability, so if you're doing something like looking for entities within a range of latitude/longitude, it will be 2 index hits plus a join.
@stuartsierra Thanks that's very helpful š
If you need true geospatial indexing, you'll need to maintain a separate index in a tool that supports that.
*nods* I am building a postgis database to handle geospatial data, but I want to associate the data I am putting in Datomic with as many attributes as possible, so that the data is richer beyond the bare minimum. I am using Datomic to store daily meteorological observations from a number of measuring stations, and so in defining the stations I am including their location and elevation as attributes.
(count (seq (d/datoms db :aevt :db/txInstant)))
?
@robert-stuttaford If I'm honest, wanted to make sure that wouldn't blow up my box š
i can do this fine and we have in excess of 40 million
the problem is t
values are sparse, so its not a valid representation of the count at all
I have two databases, named ādevā and āprodā. Iāve backed up āprodā, and now I want to restore it over ādevā. I get the error āThe name ādevā is already in use by a different database.ā This is using Dynamo. Is it sufficient to delete and recreate the Dynamo DB, then restore to it?
Letās say I have a bunch of rules. They normally use an implicit database. However, I may want to query against a database and a seq of facts. Itās a little annoying to always have to type the $
arg as an argument to the rule. Is there a convenient way to do like, (with-db $2 ...)
Apparently, if I d/delete-database
then d/create-database
, I still canāt restore the database because itās already in use by the other database.
So, it seems if I want to dump and restore different databases, they have to have the same ending segment in the database URI.
Any known issues running Datomic in a Docker container on OSX via docker run my-image
based on Pointslope image? (https://github.com/pointslope/docker-datomic).
Exception on d/connect:
java.util.concurrent.ExecutionException: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused: localhost:4335" [90067-171]
Datomic seems to be running:
docker run 8f4db5ba0824
Launching with Java options -server -Xms1g -Xmx1g -XX:+UseG1GC -XX:MaxGCPauseMillis=50
Starting datomic:, storing data in: dev-data ...
System started datomic:, storing data in: dev-data
Exposed ports: 4334, 4335, 4336Managed to connect by mapping ports explicitly: docker run -p 4334-4336:4334-4336 0ac10e837e84
Now I'm getting Could not find mydb in catalog
so, Iām trying to initialize a database with a schema, but Iām getting errors about duplicate datoms in the transaction, but the ones it complains about are not duplicates.
{:d1 [63 :db/ident :user/guid 13194139534312 true], :d2 [63 :db/ident :user/email 13194139534312 true]}
I wasnāt able to reproduce it on my machine, itās only happening on my colleagueās system. Same version of datomic
this happened before with two unrelated attributes; I added the :db/id "user/guid"
to :user/guid and that worked
But this sometimes happens when the transactor itself creates a tempid, and the client-set and server-set tempids collide
are you sure this is exactly what hits the d/transact call? no other transformations (e.g. adding tempids) beforehand?
we have a starter license, and are planning on paying later (we are still only in development now)