Part of lp.registry.scripts.populate_distroseriesdiff View In Hierarchy
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 |
TunableLoop
.Parameters | log | A logger. |
store | Database store to work on. | |
commit | A commit function to call after each batch. | |
ids | Sequence of DistroSeriesDifference ids to fix. |