This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-26
Channels
- # arachne (4)
- # beginners (70)
- # bigdata (1)
- # boot (373)
- # braid-chat (3)
- # cider (4)
- # cljs-dev (10)
- # cljsjs (6)
- # cljsrn (27)
- # clojars (11)
- # clojure (114)
- # clojure-austria (1)
- # clojure-czech (2)
- # clojure-dusseldorf (2)
- # clojure-greece (7)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-russia (15)
- # clojure-serbia (11)
- # clojure-spec (92)
- # clojure-uk (5)
- # clojurescript (183)
- # component (9)
- # cursive (28)
- # datomic (36)
- # editors (4)
- # emacs (1)
- # garden (11)
- # hoplon (155)
- # lein-figwheel (7)
- # mount (47)
- # om (97)
- # onyx (25)
- # proton (3)
- # rdf (3)
- # re-frame (80)
- # reagent (9)
- # ring-swagger (9)
- # spacemacs (1)
- # untangled (145)
- # vim (2)
i know that you can release a connection
the doc string seems to suggest that it's not designed for this though
@zane @robert-stuttaford I’d be interested in what the use case is for that
@marshall: re: https://stackoverflow.com/questions/39688899/if-you-discover-a-fact-after-the-fact-how-do-you-datomic/39690195#39690195 I think he's more interested in how to efficiently access historical values. I know datomic uses AVET for as-of
lookups with datetimes. Is there a way to efficiently use that index to give you the datom at or immediately before a particular value? Or is there an optimized query for datetimes that does the same?
Never mind. I was thinking for some reason that historical values would be in the live AEVT index.
(Thinking was, you're given some date X by the user, you want to do an AEVT lookup to get the closest date prior to X)
@marshall this person ( @bmays ) wanted to delete a time-sharded database and purge all its cache, and start a new time-sharded database. the question is, how to purge that cache
ah, my explanation was off: I’m noticing entities in the cache after restoring the database to a previous version.
his words are about a page up 🙂
yeah. so he's restoring, and that's why he's having issues
you can use restore to put a ‘new’ DB (i.e. not a backup of the same db) into storage
i'm guessing because uuids
@marshall thanks for the reply. The use case is that we have a ETL process for large data sets into different logical DBs that share a transactor. We don’t want to consume transactor resources to do the ETL so we want to simply ‘replace’ the database periodically. We’d like to avoid restarting the peers/stopping the transactor, because we have another database serving reads/writes to a web service.
We can live with a JVM restart but it does feel like we’re abusing the restore functionality
@bmays Are you replacing the database that serves the web service or a separate one? Do the same peers serve both?
@bmays If you had dedicated peers to the DB in question I’d say you should take down the peer, delete the db, call gc-deleted-dbs, restore, then restart the peer. I’m thinking that won’t work well if the other (web service) DB is also served by those same peers.
We considered having dedicated peers for the DBs but it’s not worth it at the moment. We’re going to just do a staggered reboot of the peers post restore
thanks for your help @robert-stuttaford
happy to learn along with ya!