This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-05
Channels
- # architecture (2)
- # aws (1)
- # bangalore-clj (4)
- # beginners (97)
- # boot (35)
- # cider (8)
- # cljsjs (3)
- # cljsrn (35)
- # clojure (190)
- # clojure-dusseldorf (4)
- # clojure-italy (7)
- # clojure-poland (1)
- # clojure-russia (17)
- # clojure-spec (74)
- # clojure-uk (30)
- # clojureremote (2)
- # clojurescript (298)
- # code-reviews (18)
- # component (18)
- # cursive (18)
- # datascript (3)
- # datavis (2)
- # datomic (24)
- # dirac (17)
- # emacs (3)
- # garden (7)
- # hoplon (51)
- # jobs (2)
- # jobs-rus (2)
- # leiningen (4)
- # luminus (11)
- # mount (24)
- # off-topic (1)
- # om (32)
- # onyx (25)
- # pedestal (1)
- # powderkeg (9)
- # protorepl (6)
- # re-frame (11)
- # reagent (15)
- # spacemacs (6)
- # sql (35)
- # uncomplicate (1)
- # unrepl (74)
- # untangled (130)
- # yada (6)
Is it a option to use amazon s3 as a storage option ?
as a file storage?
@rnandan273 It’s not built into Datomic as one of Datomic’s supported storages. However, it’s pretty common to write an application layer which stuffs larger blobs into S3 and stores content-addressed URIs in Datomic.
@luke thanks for your response. I had a customer who is biased towards simpleDB from amazon, so was wondering if i can push datomic with s3 as file storage
You’ll still need one of Datomic's offical storages as well. But Amazon DynamoDB sounds like a solid choice for them, then?
for them simpleDB is cost effective compared to DynamoDB
well all those equations will change when using Datomic, since Datomic stores index segments that are opaque to the underlying DB. It might be more or less expensive than “natively” using whatever storage you chose.
the fact is many people don't know about datomic and sometimes i have to do an alternate solution to show the datomic version working better
@robert-stuttaford greetings! do you by any chance know how to solve this? https://clojurians.slack.com/archives/C07V8N22C/p1491395330746925
i believe they are tested in the order they are declared (in the vector)
i can’t speak to possible disparity between Datomic and datascript
if there is a hit on dynamic rule - it returns both result and default (there is a snippet in #datascript next to message above)
ah, i see. i’m not sure. perhaps one of the Datomic officials can tell you, @marshall or @jaret
thinking of it: if there are 2 results on the rule - both are returned as well, so reducing the query result outside a query is somewhat inevitable and is ok...
another option would be to add default to each rule implementation
as soon, as any clause results to false (nil) - rule "shuts down" and is removed from result set.
Any guidance on how I can search for email addresses where I only have the domain name?
@camille: (d/q '[:find ?e :in $ ?pattern :where [?e :attr ?v] [(re-find ?pattern ?v]] db (re-pattern "@gmail.com"))
thanks @robert-stuttaford !
you can use re-pattern
to build a regex dynamically from an input string, which is why i include it here despite it being unnecessary in this case
because you could just use a regex literal #"@gmail.com"
this leverages datalog’s ability to call out to arbitrary functions