This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-22
Channels
- # aws (1)
- # beginners (102)
- # boot (5)
- # cljs-dev (59)
- # cljsjs (1)
- # clojure (154)
- # clojure-australia (1)
- # clojure-brasil (1)
- # clojure-dusseldorf (4)
- # clojure-greece (36)
- # clojure-italy (10)
- # clojure-poland (5)
- # clojure-romania (1)
- # clojure-russia (7)
- # clojure-spec (32)
- # clojure-uk (113)
- # clojure-ukraine (3)
- # clojurescript (107)
- # cursive (13)
- # data-science (25)
- # datomic (23)
- # emacs (3)
- # events (1)
- # fulcro (72)
- # funcool (10)
- # graphql (1)
- # leiningen (1)
- # luminus (2)
- # lumo (38)
- # off-topic (14)
- # onyx (78)
- # planck (4)
- # re-frame (55)
- # reagent (1)
- # ring (3)
- # ring-swagger (2)
- # rum (19)
- # shadow-cljs (89)
- # spacemacs (101)
- # sql (2)
- # unrepl (88)
I’m getting an error Caused by: com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (16,642,439 > 4,194,304). You can change this value on the server by setting the 'max_allowed_packet' variable.
trying to restore to an Aurora (mysql) database in AWS
if I have, say, three entities with [1.2, 2.0, 4.0], running (sum) on that produces the expected 7.2
@ghaskins Datomic generally group bindings on value - treating them as a set of values :with
can help with controlling the grouping http://docs.datomic.com/query.html#with
@ghaskins always remember that Datomic is set based. This has bitten me tonnes of times. You sort of have to drum that into your head. So you if you get identical tuples, and don't use :with
then they will appear as one tuple.
Yeah, I had read about the :with clause and it wasnt helping me…then I realized that my result was the same with or without the :with clause because I wasnt targeting it properly
with datomic rules, how would i pass the db as an arg to rules, and then to a function in a rule? like so:
[(chat-about-subject $ ?subject ?chat)
[?subject :email ?email]
[(= (some-fn $ ?chat)
?email)]]
i keep getting “unable to find symbol $” in this context
or even just pass the db to a function
generating specs for scalar attributes is pretty trivial, but refs get complicated pretty quick
Hey all, is there a way to free up resources associated with a datomic connection so that my process doesn't hang on exit? I have a lein task that looks just like this:
(ns slow-lein-because-datomic.core
(:require [datomic.api :as d])
(:gen-class))
(defn -main []
(println "about to connect")
(d/create-database "datomic:)
(d/connect "datomic:)
(println "connected"))
It prints "connected" and then hangs for a very long time before exiting. I thought maybe datomic.api/release
would help, but it appears not to, and I can't find many docs around it, or examples.@kbaribeau The hang is caused by the clojure agent pool, which things in datomic use. (This is a general clojure problem, not datomic specific). See docs for datomic.api/shutdown, which may help you.
generating specs for scalar attributes is pretty trivial, but refs get complicated pretty quick