Fork me on GitHub
#datomic
<
2018-08-29
>
jarvinenemil09:08:09

Is it possible to make it so that queries that takes too long automatically fails after X seconds?

foobar09:08:59

How does d/squuid work?

foobar09:08:57

Do you create a random UUID and overwrite the significant 32 bits?

foobar09:08:03

Or is there more to it?

manutter5111:08:34

@jarvinenemil Yes, check out (doc d/query)

foobar12:08:54

? It doesn't seem to add anything

foobar12:08:19

Oh sorry my bad

conan13:08:21

@foobar squuids aren't really necessary any more (but i love writing the word, so i still use them): https://forum.datomic.com/t/general-product-questions/309/2

oscar18:08:39

I have a problem with client-cloud where it blows up if I pass it a transaction that contains a bigint. It gives me the error

clojure.lang.ExceptionInfo: Cannot write 10000 as tag null
     cognitect.anomalies/category: :cognitect.anomalies/incorrect
      cognitect.anomalies/message: "Cannot write 10000 as tag null"
    datomic.client-spi/context-id: "70f24fc6-922b-400e-89ae-6cbef0317ef1"
I'm betting it's a dependency issue but I don't know where to look.

oscar19:08:46

Hmm. I tore out all of my deps except for com.datomic/client-cloud {:mvn/version "0.8.63"} and org.clojure/tools.reader {:mvn/version "1.3.0"} and I'm still getting the error. My :tx-data is just [{:example/bigint 10000N}].

okocim15:08:38

fwiw, I see the same behavior as you when I try this. I also tried it with a java.math.BigInteger to no avail.