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?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.
(#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])
hi @mroerni, could you share your configuration and version? I would have a look then.
0.3.5
{:name "dev-db"
:store {:backend :file
:path "/Users/bjebb/Development/decide3/_data"}}
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.
datoms
returns a seq of datoms as if the db weren’t in a historic database. And then the expected datoms