This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-26
Channels
- # babashka (12)
- # beginners (53)
- # cider (6)
- # clj-kondo (2)
- # cljdoc (18)
- # clojars (6)
- # clojure (72)
- # clojure-europe (27)
- # clojurescript (85)
- # component (2)
- # conjure (4)
- # datalevin (43)
- # graalvm (8)
- # hyperfiddle (17)
- # lsp (72)
- # malli (5)
- # off-topic (1)
- # pathom (6)
- # perun (6)
- # polylith (10)
- # releases (1)
- # shadow-cljs (30)
- # xtdb (10)
; Execution error (ExceptionInfo) at datalevin.binding.java.LMDB/clear_dbi (java.clj:356). ; Fail to clear DBI: "datalevin/eav" "Environment mapsize reached (-30792)"
That means it needs some space to clear the dbi. One may transact some more things to it, so the map (file) is enlarged, then do the clear.
as to using db instead of conn, sure, it was not my first choice, if people feel it is more natural to clear a conn, we can do that.
that is basically how I was setting things up - after that its basically shoveling data in.
“environment mapsize reached” is not something i see normally. During transaction, auto resizing will happen. not when clear
. Since you seem to see it a lot, you need to tell more about your environment.
I seem to see that spectre mostly after having loaded a singificant number of entiites. I continue to keep chugging through the ETL. Currently have roughly 12M datoms loaded, but that number creeps up as I progress
right now, we catch an exception when the map size is reached, then enlarge the map. this only happens in transact right now, so if other functions may trigger this, we can catch that and do the same
the transaction will trigger resizing, if that’s the reason, but it may be something else.
at this point, some number of transactions have completed, and I'm just hanging onto the cn
after the prior clear attempt, the cn was closed. Reopened it here, transacted something, and retried the clear
I haven't noticed that it cares if I keep transacting even large numbers of things. Or retracting for that matter. The clear gets in trouble though