/srv/irclogs.ubuntu.com/2013/03/15/#launchpad-dev.txt

StevenKwgrant: So, are you nervous enough about my change in https://code.launchpad.net/~stevenk/launchpad/productseries-preload-for-merges/+merge/153052 ? I spent most of yesterday fighting with strange LocationErrors01:24
wgrantStevenK: Mmm01:25
wgrantIt's safe01:25
wgrantWas just slightly concerned about the possibly late preloading01:25
wgrantBut this can't make it worse01:25
wgrantr=me01:25
=== jtv1 is now known as jtv
StevenKwgrant: Wasn't Curtis talking about patching zconfig for bug 481512?04:41
_mup_Bug #481512: race condition when rotating logs <canonical-losa-lp> <lp-foundations> <qa-untestable> <webapp-infrastructure> <Launchpad itself:Triaged> <ZConfig:Fix Released by fdrake> < https://launchpad.net/bugs/481512 >04:41
wgrantStevenK: Yes, he was talking to upstream about it04:45
wgrantMight have eventually given up04:45
StevenKI can recall him mentioning just patching it into ours04:46
wgrantYup04:46
StevenKBut I don't recall the condition04:46
wgrantThat's what you do once you give up talking to upstream04:46
StevenKwgrant: So, back to our argument about Archive:+delete-packages, you mentioned a change to the query of doom, but I can't recall it04:48
wgrantStevenK: A possible optimisation is to find sources where scheduleddeletiondate is null04:49
wgrantSince that should include any that have published binaries04:49
StevenKwgrant: I was pondering a new column in SPPH that links to published BPPHs, but that may result in you murdering me.04:50
wgrantStevenK: How would that be a) stored, and b) kept up to date?04:51
StevenKwgrant: a) as int[], b) probably via newPublication, c) I haven't considered how overrides fit in04:52
wgrantIt's just about impossible to keep that consistent without very big locks04:52
wgrantAnd I like to keep my publishing tables consistent04:52
StevenKwgrant: http://pastebin.ubuntu.com/5615641/05:16
wgrantStevenK: What's the query?05:20
StevenKwgrant: http://pastebin.ubuntu.com/5615648/05:22
StevenKMy index on DF didn't work :-(05:23
StevenK                           ->  Seq Scan on sourcepackagepublishinghistory  (cost=0.00..67337.11 rows=49673 width=135) (actual time=16.419..2005.405 rows=2893 loops=1)05:23
StevenK                                 Filter: ((scheduleddeletiondate IS NULL) AND (archive = 32))05:23
StevenKCREATE INDEX temp_spph ON sourcepackagepublishinghistory(archive, scheduleddeletiondate); being the index I created05:25
wgrantIt probably decides that the uncondemned pubs are dense enough that it's not worth it05:25
wgrantThough with those counts it seems unlikely...05:25
StevenKI wonder if an (scheduleddeletiondate, archive) index will work05:26
wgrantwon't make a difference05:27
wgrantarchive WHERE scheduleddeletiondate IS NULL might05:27
StevenK                           ->  Seq Scan on sourcepackagepublishinghistory  (cost=0.00..67337.11 rows=49673 width=135) (actual time=16.185..1321.371 rows=2893 loops=1)05:30
StevenK                                 Filter: ((scheduleddeletiondate IS NULL) AND (archive = 32))05:30
wgrantWhat's archive 32?05:30
StevenK~ubuntu-langpack/+archive/ppa05:31
wgrantOnly 126k total pubs05:31
StevenKYes, it's the pathological case05:32
wgrantAnyway, the idea of the scheduleddeletiondate bit was to hopefully *replace* the binary check, not augment it05:34
StevenKOh05:34
StevenK(SourcePackagePublishingHistory.scheduleddeletiondate IS NULL OR SourcePackagePublishingHistory.status IN (1, 2)) ?05:35
wgrantYou can probably drop the latter05:37
wgrantSince a published or pending pub won't be condemned05:37
StevenKwgrant: Sorry, I'm having trouble visualising the query with the published binaries clause killed05:38
wgrantStevenK: Just drop the whole AND (EXISTS ... OR status IN (1, 2)) bit05:42
wgrantscheduleddeletiondate handles both of those, if things are working correctly05:42
StevenKTime: 414.243 ms05:43
StevenKI can paste the EXPLAIN ANALYZE for that if you wish05:44
wgrantNot particularly. If it's using the index there's probably not much improvement to be made05:45
StevenKIt's using                                 Recheck Cond: (archive = 32)05:46
StevenK                                 Filter: (scheduleddeletiondate IS NULL)05:46
StevenK                                 ->  Bitmap Index Scan on securesourcepackagepublishinghistory__archive__status__idx  (cost=0.00..2395.95 rows=128988 width=0) (actual time=32.526..32.526 rows=126534 loops=1)05:46
StevenK                                       Index Cond: (archive = 32)05:46
wgrantBlah05:46
wgrantThat doesn't make much sense05:46
wgrantIt's using an index, so it has no reason not to use the complete one05:46
StevenKNeither of the indexes I tried didn't work05:46
StevenKwgrant: Do we care for a full index?05:54
StevenKpostgres seems hell bend on not using one05:54
wgrantI'm not sure why it won't use it, but it should be OK05:54
StevenKwgrant: http://pastebin.ubuntu.com/5615680/05:54
StevenKI'm not sure I care enough to Storm-ify it, but should be much easier now05:56
wgrantVery easy05:56
StevenKwgrant: Means the prejoin crap dies too05:58
wgrantYes, just use load_related05:58
StevenKwgrant: It uses SPR.version for ordering06:00
wgrantYes, but that's separate from the prejoin06:00
wgrantYou could use DRS to avoid the load_related06:00
wgrantGiven that you have to select SPN and SPR anyway06:00
lifelessstub: o/06:25
stublifeless: yo!06:25
StevenKwgrant: Hmm, I think I'm bashing into sampledata stupidity06:27
=== yofel_ is now known as yofel
=== noodles785 is now known as noodles775
=== wedgwood_away is now known as wedgwood
=== wedgwood is now known as wedgwood_away
=== wedgwood_away is now known as wedgwood
=== Ursinha_ is now known as Ursinha
=== Ursinha-afk is now known as Ursinha
=== almaisan-away is now known as al-maisan
=== Ursinha-afk is now known as Ursinha
=== al-maisan is now known as almaisan-away
=== Ursinha-afk is now known as Ursinha
=== wedgwood is now known as wedgwood_away

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