/srv/irclogs.ubuntu.com/2012/11/11/#launchpad-dev.txt

=== Ursinha-afk is now known as Ursinha
cjwatsonHmm, apparently r16253 left buildbot broken over the weekend :-(11:59
czajkowskioops12:02
czajkowskicjwatson: afternoon12:02
cjwatsonHi.  Not here for long; pub lunch beckons.12:03
czajkowskienjoy12:05
wallyworld_wgrant: any ideas you have for speeding up that garbo job (PopulateLatestPersonSourcepackageReleaseCache) would be great. i essentially just replicated the live query but added in maintainer or creator to the mix. perhaps i should drop out maintainer/creator from the distinct and select all distinct archive/series/spn records into a temp table and then requery the temp table?23:14
wgrantwallyworld_: Well, I'd probably just slice into the recent pubs, pull out their data, grab the relevant cache records, and compare the times.23:20
wgrantWe coalesce non-distinct records into a single row in the cache table based on the timestamp anyway, so the DISTINCT ON in the query is pointless23:21
wallyworld_so a simple query order by date desc23:21
wgrantRight23:22
wallyworld_ok, i'll rework it and see how it turns out23:22
wgrantI'm not sure I understand what purpose your SPR watermark serves today23:23
wgrantI'd just slice into the SPPHs, grab the SPRs and their earliest publication IDs, exclude any SPPHs that aren't the latest publication, grab the relevant cache rows, update any cache rows that need updating23:24
wallyworld_to limit the sprs considered23:24
wallyworld_earliest publication ids?23:25
wgrants/latest publication/earliest publication/23:27
wallyworld_s/earliest publication/latest publication/ maybe?23:28
wallyworld_since we only want the most recent ones23:28
wgrantDon't we only care about the first publication of an SPR?23:28
wgrantThe latest publication for the cache key, but the first publication for the SPR23:29
wallyworld_um. perhaps i misunderstand the data model23:29
wgrantWhat is your understanding of it?23:30
wallyworld_each time a source package is published, a spr is created and also a spph record is created23:31
wallyworld_?23:31
wgrantNo23:32
wallyworld_:-(23:32
wgrantA source may be copied, in which case there's a new SPPH but no new SPR23:32
wallyworld_when does a copy occur and where it is copied to?23:33
wgrantwhen someone requests that a copy happens :)23:33
wgrantIt may be copied to anywhere23:33
wgrantAnd archive, any distroseries, any pocket23:33
wallyworld_uploaded_archive is the original archive published to, not any copied one, right?23:34
wgrantRight23:34
=== Ursinha is now known as Ursinha-afk
wallyworld_so, the main garbo job query could be on spr?23:35
wallyworld_is each record in spr table known/guaranteed to be published?23:36
wallyworld_if so, why the join to spph?23:36
wgrantBecause we need to only show SPRs that have ever had an SPPH23:37
cjwatsonDid you folks notice the buildbot failure?  I guess Abel won't be around for a while yet23:37
wgrantBlah23:38
* wgrant reverts23:38
wallyworld_wgrant: so when would a spr record be created when there is no publication?23:38
wgrantwallyworld_: When it's waiting in a queue to be approved23:38
wgrantOr rejected23:38
wallyworld_ok23:38
wallyworld_can i easily tell which spph are for copied sprs?23:39
wallyworld_to filter out those in any spph query?23:39
wgrantNo23:40
wgrantBut even if you could it probably wouldn't be worth it23:40
wgrantThe extra expense in filtering afterwards is going to be minimal23:40
wgrantBecause we have the SPPH.id watermark23:40
wallyworld_so the main query should be on spph joined to spr?23:41
wgrantI think the set of three SELECTs I outlined earlier is reasonable23:42
wgrantYou could possibly grab the SPRs in the first SELECT, but it doesn't really matter23:42
wallyworld_ok, will see what falls out, thanks23:42

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!