Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lmdb): use lmdb for contract cache #21

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Conversation

dtfiedler
Copy link
Collaborator

@dtfiedler dtfiedler commented Jan 26, 2024

LMDB cache is more performant than LevelDB, particulary with the arns contract's large interaction count. This change also includes an update to tsconfig.json to get around loading the improperly exported types. There are some suggestions we can offer to their module that would also help.

LMDB cache is more reliable than level db, particulary with the arns contract. Also includes an update to typescript to avoid unnecessary workarounds loading the CJS module in this project. There are some suggestions we can offer to their module that would also help.
@djwhitt
Copy link
Collaborator

djwhitt commented Jan 26, 2024

@dtfiedler Oops, I was a little too hasty on the approve. Looks like there's a build issue.

…s named exports, so we are stuck telling tyepscript where to find them manually. This can be removed when their library is updated.
@dtfiedler
Copy link
Collaborator Author

dtfiedler commented Jan 26, 2024

@djwhitt - referenced the issue in the commit message, their package doesn't specify types in the named export so we need a workaround until this gets merged and released warp-contracts/warp-contracts-lmdb#27.

I offered the fix here warp-contracts/warp-contracts-lmdb#28

@dtfiedler dtfiedler merged commit 5bad8c8 into develop Jan 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants