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

TXN preload #11

Merged
merged 4 commits into from
Jul 5, 2017
Merged

TXN preload #11

merged 4 commits into from
Jul 5, 2017

Conversation

domodwyer
Copy link

Extends #10 - see #9 (comment).

Again, thanks to @jameinel for the hard work.

During 'recurse' loading all of the transactions to be done one-by-one
is actually rather expensive. Instead we can load them ahead of time,
and even allow the database to load them in whatever order is optimal
for the db.
When dealing with some forms of 'setup', the existing preload loads too
much data and causes a different O(N^2) behavior. So instead, we cap the
number of transactions we will preload, which gives an upper bound on
how much we'll over-load.
@domodwyer domodwyer changed the title Txn preload TXN preload Jul 4, 2017
@domodwyer domodwyer merged commit d3b6a6e into globalsign:development Jul 5, 2017
@domodwyer domodwyer mentioned this pull request Jul 26, 2017
libi pushed a commit to libi/mgo that referenced this pull request Dec 1, 2022
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

4 participants