Fork me on GitHub
#datomic
<
2016-08-14
>
robert-stuttaford14:08:10

@marshall et al, is there any conceivable reason why d/tx-range would return txes outside of the given start and end when both are of type Date?

robert-stuttaford14:08:55

i'm busy working on an epic task to rebuild a database from the first transaction, and integrate a separate database into it as i go

robert-stuttaford14:08:51

i'm trying to find txes in Database Two that are between the current tx for Database One and the next tx for Database One. but, bizarrely, Database Two is giving me a tx from before the start

robert-stuttaford14:08:19

(seq (d/tx-range tx-log2
                 #inst "2012-12-20T12:32:38.900-00:00"
                 #inst "2012-12-20T12:32:41.244-00:00"))

  ({:id #uuid "...",
    :data
    [#datom[13194139534503 50 #inst "2012-12-20T12:14:12.391-00:00" 13194139534503 true]
     ...],
    :t 1191,
    :tempids
    {...}})

robert-stuttaford14:08:14

given a ~3 second timespan, it gave me a tx from 18 minutes earlier 😞

robert-stuttaford14:08:27

seems like something is off with one particular transaction. seeks in other areas behave well. given the age of the transaction, it's possible that the tx in question would no longer be accepted by current version of Datomic.