Fork me on GitHub
#datomic
<
2017-08-14
>
malcolmsparks12:08:53

is there a way of restoring a database to a specific t? - the docs say no > Note that you can only restore to a t that has been backed up. It is not possible to restore to an arbitrary t.

malcolmsparks12:08:06

but is there another more long-winded way?

dm312:08:44

@malcolmsparks retracting all datoms after t?

uwo14:08:52

any reason why I would see (:db/unique (d/entity db :my-attr)) => :db.unique/identity, but also (:db/index (d/entity db :my-attr)) => nil?

favila14:08:03

just means it was transacted like {:db/unique :db.unique/identity}

favila14:08:11

datomic doesn't try to make them consistent

uwo14:08:37

gotcha. so even though (:indexed (d/attribute db :my-attr)) => false it’s still actually indexed

favila14:08:16

double-check with (:has-avet (d/attribute db :my-attr))

favila14:08:22

should be true

uwo14:08:05

yeah, it’s true. thanks