TXN preload by domodwyer · Pull Request #11 · globalsign/mgo (original) (raw)
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.
…ance effect"
This reverts commit 2ecd4fc.
domodwyer changed the title
Txn preload TXN preload
mkorolyov pushed a commit to mkorolyov/mgo that referenced this pull request
libi pushed a commit to libi/mgo that referenced this pull request