TXN preload by domodwyer · Pull Request #11 · globalsign/mgo (original) (raw)

@domodwyer

@jameinel

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.

@jameinel

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.

@jameinel

@jameinel

…ance effect"

This reverts commit 2ecd4fc.

@domodwyer domodwyer changed the titleTxn preload TXN preload

Jul 4, 2017

szank

mkorolyov pushed a commit to mkorolyov/mgo that referenced this pull request

Jun 18, 2019

@ShaneHarvey @craiggwilson

libi pushed a commit to libi/mgo that referenced this pull request

Dec 1, 2022

@domodwyer