l.c.i.b.IBranchListingQueryOptimiser(Interface) : interface documentation

Part of lp.code.interfaces.branch View In Hierarchy

Interface for a helper utility to do efficient queries for branches.

Branch listings show several pieces of information and need to do batch queries to the database to avoid many small queries.

Instead of having branch related queries scattered over other utility objects, this interface and utility object brings them together.

Method getProductSeriesForBranches Return the ProductSeries associated with the branch_ids.
Method getOfficialSourcePackageLinksForBranches The SeriesSourcePackageBranches associated with the branch_ids.
def getProductSeriesForBranches(branch_ids):
Return the ProductSeries associated with the branch_ids.
Parametersbranch_idsa list of branch ids.
Returnsa list of ProductSeries objects.
def getOfficialSourcePackageLinksForBranches(branch_ids):
The SeriesSourcePackageBranches associated with the branch_ids.
Parametersbranch_idsa list of branch ids.
Returnsa list of SeriesSourcePackageBranch objects.
API Documentation for Launchpad, generated by pydoctor at 2019-04-24 00:00:10.