datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
Björn Ebbinghaus 2021-06-15T15:17:26.049200Z

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?

kkuehne 2021-06-16T17:15:18.050900Z

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.

Björn Ebbinghaus 2021-06-15T15:17:38.049300Z

(#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])

kkuehne 2021-06-15T17:21:55.049500Z

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

Björn Ebbinghaus 2021-06-15T20:55:24.049900Z

0.3.5

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

Björn Ebbinghaus 2021-06-15T21:00:12.050100Z

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 Ebbinghaus 2021-06-15T21:23:44.050700Z

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