Fork me on GitHub
#datahike
<
2021-06-15
>
Björn Ebbinghaus15:06:26

I get duplicate datoms when asking a db with since.

(d/datoms (d/since (d/db conn) #inst"2021-06-01")
    {:index :aevt
     :components [:argument/id]})

; => (result in thread)
Can someone explain, if it should do that?

Björn Ebbinghaus15:06:38

(#datahike/Datom[652 :argument/id #uuid"60bb68ba-420d-49d6-95c5-afc9a52a9e87" 536871590 true]
 #datahike/Datom[654 :argument/id #uuid"60bb6905-fbb0-423d-8819-c2078215a677" 536871591 true]
 #datahike/Datom[656 :argument/id #uuid"60bbac6b-239b-4218-8de4-e2a57182ce5f" 536871592 true]
 #datahike/Datom[658 :argument/id #uuid"60c0ec0c-ebd3-472b-a22b-a6e923dd079c" 536871642 true]
 #datahike/Datom[660 :argument/id #uuid"60c11ea1-94f7-407e-bc07-1077259c7f28" 536871643 true]
 #datahike/Datom[662 :argument/id #uuid"60c1230b-c4a4-45ed-9ae1-f74dd46691a3" 536871644 true]
 #datahike/Datom[652 :argument/id #uuid"60bb68ba-420d-49d6-95c5-afc9a52a9e87" 536871590 true]
 #datahike/Datom[654 :argument/id #uuid"60bb6905-fbb0-423d-8819-c2078215a677" 536871591 true]
 #datahike/Datom[656 :argument/id #uuid"60bbac6b-239b-4218-8de4-e2a57182ce5f" 536871592 true]
 #datahike/Datom[658 :argument/id #uuid"60c0ec0c-ebd3-472b-a22b-a6e923dd079c" 536871642 true]
 #datahike/Datom[660 :argument/id #uuid"60c11ea1-94f7-407e-bc07-1077259c7f28" 536871643 true]
 #datahike/Datom[662 :argument/id #uuid"60c1230b-c4a4-45ed-9ae1-f74dd46691a3" 536871644 true])

kkuehne17:06:55

hi @U4VT24ZM3, could you share your configuration and version? I would have a look then.

Björn Ebbinghaus20:06:24

0.3.5

{:name "dev-db"
 :store {:backend :file
         :path "/Users/bjebb/Development/decide3/_data"}}

Björn Ebbinghaus21:06:12

Because of reasons (mainly I didn’t think this through) I always transacting the schema on startup.. But as you can see in the Screenshots it seems like there are the latest Datoms are the duplicates.

Björn Ebbinghaus21:06:44

datoms returns a seq of datoms as if the db weren’t in a historic database. And then the expected datoms

kkuehne17:06:18

This might be a bug that we had in this version based on the upsert feature that increased our transaction speed. Let me check with the latest version.