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

allow map_async option for faster write performance #1338

Merged
merged 3 commits into from Aug 14, 2019
Merged

Conversation

invisig0th
Copy link
Contributor

No description provided.

self.onfini(self.layrslab.fini)

self.spliceslab = await s_lmdbslab.Slab.anit(splicepath, max_dbs=128, map_size=mapsize, maxsize=maxsize,
growsize=growsize, writemap=True, readahead=readahead)
growsize=growsize, writemap=True, readahead=readahead, map_async=map_async)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in _onCoFini do we need to call self.lenv.sync(force=True) during teardown if this option is set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, he def does the sync for us :)

@vEpiphyte vEpiphyte self-assigned this Aug 13, 2019
@vEpiphyte vEpiphyte added this to the v0.1.22 milestone Aug 13, 2019
@codecov
Copy link

codecov bot commented Aug 14, 2019

Codecov Report

Merging #1338 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1338      +/-   ##
==========================================
+ Coverage   94.96%   94.96%   +<.01%     
==========================================
  Files         122      122              
  Lines       15434    15437       +3     
==========================================
+ Hits        14657    14660       +3     
  Misses        777      777
Impacted Files Coverage Δ
synapse/lib/lmdblayer.py 89.8% <100%> (+0.1%) ⬆️
synapse/lib/lmdbslab.py 98.83% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3cbca20...3d98b9e. Read the comment docs.

@vEpiphyte vEpiphyte merged commit f89ce39 into master Aug 14, 2019
@vEpiphyte vEpiphyte deleted the visi-mapasync branch August 14, 2019 16:10
@vEpiphyte vEpiphyte modified the milestones: v0.1.22, v0.1.23 Aug 14, 2019
vEpiphyte added a commit that referenced this pull request Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants