l.r.s.p.DSDUpdater(TunableLoop) : class documentation

Part of lp.registry.scripts.populate_distroseriesdiff View In Hierarchy

Call DistroSeriesDifference.update() where appropriate.

The DistroSeriesDifference records we create don't have their details filled out, such as base version or their diffs.

Since this is likely to be much, much slower than the rest of the work of creating and initializing DistroSeriesDifference`s, it is done in a `DBLoopTuner.

Method __init__ See TunableLoop.
Method isDone See ITunableLoop.
Method __call__ See ITunableLoop.
Method _cutChunk Cut a chunk of up to chunk_size items from the remaining work.
Method _getBatch Retrieve a batch of `DistroSeriesDifference`s with given ids.

Inherited from TunableLoop:

Method run Undocumented
def __init__(self, log, store, commit, ids):
See TunableLoop.
ParameterslogA logger.
storeDatabase store to work on.
commitA commit function to call after each batch.
idsSequence of DistroSeriesDifference ids to fix.
def isDone(self):
See ITunableLoop.
def _cutChunk(self, chunk_size):
Cut a chunk of up to chunk_size items from the remaining work.

Removes the items to be processed in this chunk from the list of remaining work, and returns those.

def _getBatch(self, ids):
Retrieve a batch of `DistroSeriesDifference`s with given ids.
def __call__(self, chunk_size):
See ITunableLoop.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.