Fork me on GitHub
#datalevin
<
2022-05-03
>
Josh21:05:39

Is it intentional to store datalevin’s lru caches globally and not clear them when a connection is closed? see https://github.com/juji-io/datalevin/blob/master/src/datalevin/db.cljc#L89 I am finding that opening a conn, running a large query, and then closing the conn results in hundreds of megabytes of data that is not able to be garbage collected.

🔥 1
Huahai22:05:26

Not intentional. It is a bug. It should be a simple fix. I can release a new version if you would like to send a PR. Thanks.

Huahai22:05:28

Or you can file an issue, and I will get around to it when my plate is more clear

Huahai22:05:40

Thanks for spotting it.

Josh14:05:49

Will try to put up a PR later today

Huahai16:05:39

@U018E92R0TY Sorry to bother you. I just wonder how’s the fix is going?

Josh19:05:22

Sorry I got caught up in other work, I am working on it now

Huahai19:05:26

Thanks 🙏