Fork me on GitHub
#datomic
<
2019-01-06
>
rboyd00:01:22

if memcache and valcache properties are both set for a peer does it prefer one? does it use both? maybe fetch from valcache only if memcache misses?

marshall00:01:37

@rboyd you should only use one or the other, using both valcache and memcached is not supported

rboyd00:01:35

ok thanks

rboyd00:01:11

is there a way to warm the cache with the entire index+log?

marshall01:01:28

Run large queries

marshall01:01:51

Or walk indexes with the datoms api

👍 5
lambdam14:01:33

Hello, I struggle to find how to query against a collection. Something like this (just to show the intention):

(d/q '[:find ?e
       :in $ ?names
       :where [?e :user/team (in-collection ?names)]]
     db
     #{:foo :bar :baz})
Does someone knows how to do that?

lambdam15:01:07

Thanks. I see it in the Collection section.

dmarjenburgh14:01:20

@dam You can bind inputs to collections and tuples (https://docs.datomic.com/cloud/query/query-data-reference.html)

(d/q '[:find ?e
       :in $ [?name ...]
       :where [?e :user/team ?name]]
     db
     #{:foo :bar :baz})

lambdam14:01:38

Oh great. Thanks. My brain fits a bit more to Datalog than 10 min ago.

maybenot18:01:40

Is there any guide about connecting websocket gateway api with ions?

hlolli19:01:29

I was doing the datomic cloud setup week ago, and I was able to get all working and running, but now Im hit with error that I didn't get before when I'm connecting with client api (def client (d/client config)) the socks is running on a given port as systemd service.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See  for further details.
Syntax error (ClassNotFoundException) compiling at (form-init2453726782059748262.clj:12:13).
org.eclipse.jetty.util.thread.ThreadPoolBudget

hlolli19:01:28

ah nevermind, I think this is an old story of root -> user conflict with using systemd